[SOLVED] Crash if BOOT0 pin is high
Hello Dear Experts,
I have strange behavior on my STM3210 board.
I flash my binary using STLink and it works well.
Then I toggle BOOT0 pin in order to use the standard bootloader in the system memory and I reset the system.
The bootloader starts and listens UART.
I send the "GO" command over UART from the CubeProgrammer app (no flashing/reading, only "GO" command).
In debugger I see that it jumps to the main() function as expected.
BUT after calling a few functions it crashes somewhere and the PC register becomes "0x1fffeade".
If I disable the BOOT0 pin and restart - everything works well again.
I've no idea how to debug that, please help.
Thank you.
UPD: Thanks to @Community member just realized that "0x1fffeade" address is in the system memory region => Looks like the "crash" is actually "restart".
By why does it restart?
