cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Weird behavior debugging STM32H753

Pavel A.
Evangelist III

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

1 ACCEPTED SOLUTION

Accepted Solutions

> Very often after starting debug session the bootloader gets hardfault very early.

Debug the hardfault as usually.

JW

View solution in original post

2 REPLIES 2

> Very often after starting debug session the bootloader gets hardfault very early.

Debug the hardfault as usually.

JW

Pavel A.
Evangelist III

Sorry. It was a stupid error in my debug config ((. It happens.