How to boot code from Sector 5 on Nucleo-F446RE after reset?
I'm using a Nucleo-F446RE board and have successfully flashed my application code to Sector 5 of the internal flash memory. The code runs correctly right after flashing, but it does not run after a reset or power cycle.
It seems the MCU still boots from the default start address (Sector 0), and doesn't automatically jump to Sector 5.
:question_mark:My main questions are:
-
How can I make the STM32F446RE boot from Sector 5 after every reset?
-
Is it necessary to place a custom bootloader at Sector 0 that manually jumps to the application code at Sector 5?
-
Is there any other way?
Any guidance would be very helpful.
Thanks!
