chaya kumar
chaya kumar

Reputation: 59

Program received signal SIGTRAP, Trace/breakpoint trap in atollic true studio

I'm new to the atollic truestudio. I have running a C code for STM32 MCU, but unfortunately the code stops its execution at the same point everytime when I debug the code even though there is no breakpoint applied. I have attached an image below for reference. Could anyone tell me how to resolve this breakpoint trap issue.

Thank you

enter image description here

Upvotes: 1

Views: 2516

Answers (1)

harry courtice
harry courtice

Reputation: 209

This question is a bit old now, but if someone finds it like I did trying to solve this problem:-

The trigger seems to be trying to add too many breakpoints.

The fix was:

  • Disconnect the ST-LINK debugger,
  • Remove power from the board
  • Then restart everything.

I suspect there is a breakpoint register somewhere in the core that the debugger "forgets" about, and it needs a power cycle to clear that register.

Upvotes: 1

Related Questions