2025-10-22 7:45 AM
Hi,
I attempt to free the 1st sectors of the MCU flash by relocating the firmware and its interrupt vector table to further sector (e.g sector 5 at 0x08040000 address). For that purpose, I updated
This configuration is only working from my debugger. The system does not start, neither in standalone, neither from the Go command of the system bootloader.
However, the Reset Handler address is well available at the 0x08040004 address.
If
the system is able to start, either in standalone, either from the Go command of the system bootloader.
What did I miss to get the system starting correctly from the sector 5 ? IS it really impossible to free the sector 0 ?
Many thanks in advance.
Best regards
2025-10-22 8:32 AM - edited 2025-10-22 8:33 AM
Seems like you have some typos, could be the issue.
> e.g sector 5 at 0x08040000 address
> the boot address option byte BOOT_ADD0 (set to 0x2001 to get the 0x0804000 boot address)
0x2001 will select 0x8004000 as the boot address, not 0x08040000
0x2010 will select 0x8040000 as the boot address.
When the program "doesn't work" you can always attach a debugger without resetting/downloading code to see where it's at.