Set boot address on stm32f446 nucleo
Hi there!
I want so offset the application in the flash at 0x08004000, so that I can use the first sector 0 for individual persistent data. I found out that I have to change the following lines:
FLASH (rx) : ORIGIN = 0x8004000, LENGTH = 496K (Linker Script)
#define VECT_TAB_OFFSET 0x4000 (system file of stm32f446)
So direct after flashing, the program is running (blinking led), but after power-cycling the stm, it does not start again. Could it be that the bootloader is still configured to start the application at 0x08000000? If this is the last problem I have here, how can I modify the address there?
With help of the stm utility tool, I can open the option bytes but it seems that the BOOT_ADD0 option is locked ! (See picture in attachment)
Is it this address ofset there which has also to be 0x4000?
In the datasheet, I can also not see an option to set an address for the bootloader in the FLASH_OPTCR Register. There are only options which I already can edit in the option bytes window of the stm utility tool.
I really would appreciate your help! Thanks.
Best Regards
