2021-07-14 06:20 AM
Dear experts,
I hit a strange problem when debugging in CubeIDE code with a bootloader on Nucleo STM32H753.
The bootloader sits in sector 14. The boot address of STM32H7 is redirected there via the option bytes. The main code starts at sector 0 (a.k.a. the default start address 0x08000000).
Very often after starting debug session the bootloader gets hardfault very early.
The debugger in use is ST-LINK server, with all settings default.
Without debugger connected, the bootloader works as expected and jumps to main code.
Also, in a different arrangement with bootloader in sector 0 and main code elsewhere, debug session usually starts well.
Anybody seen this behavior and can offer some advise?
--pa
Solved! Go to Solution.
2021-07-14 05:06 PM
> Very often after starting debug session the bootloader gets hardfault very early.
Debug the hardfault as usually.
JW
2021-07-14 05:06 PM
> Very often after starting debug session the bootloader gets hardfault very early.
Debug the hardfault as usually.
JW
2021-07-16 08:37 AM
Sorry. It was a stupid error in my debug config ((. It happens.