2025-06-10 4:36 AM - last edited on 2025-06-10 5:01 AM by Andrew Neil
Hi ST Community,
I’m working on a secure boot implementation for the STM32U3 series and need to replace the factory ROM bootloader with my custom secure bootloader. Here’s what I’d like to clarify:
Can We Fully Remove the Factory Bootloader?
2025-06-10 5:00 AM
No, you can't replace it.
2025-06-10 6:18 AM
> The STM32U3’s ROM bootloader (System Memory) is in masked ROM, so is it even possible to erase or disable it completely?
Read-only Memory (ROM) is read only and cannot be changed.
> If not, what’s the most secure way to bypass it and ensure the MCU always boots from my custom bootloader in Flash?
Change the option bytes such that the chip always boots to user flash, regardless of pin settings. Look at AN2606 and change NBOOT0 = NSWBOOT0 = 0 to avoid bootloader patterns.