This generally applies to programming BIOS, hardware drivers, communication drivers ... For even more on the subject, you may like our STM32 Bootcamp series on bare-metal STM32 programming.
If you’re pairing a tiny Linux computer to a few peripherals — perhaps you’re building a reasonably custom Pi-powered device — it’s rightfully tempting to use something like an STM32 for ...