Debug launch appears to end up in bootloader
I have a NUCLEO-L4R5ZI board with an STM32L4R5ZIT6P MCU. I have been successfully building and debugging using CubeIDE 1.9.0 with a USB connection to the onboard ST -LINK debugger. However, I've suddenly encountered a situation where after the debug load, break at main() and continue sequence, the program doesn't execute and control looks to have ended up in the system boot memory. For example, when suspending execution, the traceback shows:
0x1fff16da
0x1fff2c76
I was wondering if anybody might have any ideas as to what could be happening.
A few more data points:
- The Flash is being correctly programmed by the debugger. If I power cycle the board, letting it run without the debugger, the program executes properly.
- I can do a debugger attach on the running program and successfully debug.
- This happens on more than one board.
- This appears to be somewhat random, as I have older projects that don't fail.
Thanks and best regards,
Tim Butler
