2021-10-21 04:42 AM
If I have a bootloader that resides at 0x8000000 and the main program starts at 0x8008000 I can load it with the debugger and all is fine. I can run it in standa alone mode with the bootloader jumping to it as well. However, if I try to restart and rerun the program with the debugger it doesn't work and I have to reprogram. Is there a way to set up the debugger so that I don't have reprogram each time please?
FWIW doing this on a L476.
Thanks!
Solved! Go to Solution.
2021-10-21 09:03 AM
Hi, thanks for the reply. I should really have said that I'd already tried that to no avail.
A colleague came up with the idea of putting;
set $pc=Reset_Handler
In Restart Configurations. That seems to work and is surprisingly, not ephemeral.
2021-10-21 05:22 AM
Hello
In STM32CubeIDE 1.7.0, when you create a debug configuration for "STM32 Cortex-M C/C++ Application" there is a Startup tab. In "Runtime options": try to set start address 0x08008000 in "Set program counter (hex) :" or "Specify vector table (hex):" (if you have moved the Interrupt vector table to 0x08008000).
2021-10-21 09:03 AM
Hi, thanks for the reply. I should really have said that I'd already tried that to no avail.
A colleague came up with the idea of putting;
set $pc=Reset_Handler
In Restart Configurations. That seems to work and is surprisingly, not ephemeral.