cancel
Showing results for 
Search instead for 
Did you mean: 

Hard fault error while step into or step over, But not during free run of debuggging

NSyed
Associate

During the debugging of my code, I see a strange behavior.

I am using STM32F767ZI and trying to debug using ST-Link flashed with jlink firmware.

While debugging the firmware using the gdb, at a particular assembly instruction, the control jumps to hardfault.

But if I keep a break point after that assembly instruction (Or equivalent C code), the debugging works fine. The issue only happens when we do a step into or step over at that particular point.

If change the code, the issue can be seen at some other part of code and make life hard while debugging.

Did any one face such kind of issue or know a work around?

Thanks In Advance,

Nasir

0 REPLIES 0