cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 - How to tell if debugger is attached?

n2wx
Senior

So I was handed code that breaks when debugging, but to fix the breakage breaks a power control on the board. Rev A only has this problem but Rev A is what I'm stuck with . Nice, right?

So I need a way to tell at run time whether the debugger is attached.

Does anyone have any idea how to accomplish this without changing the hardware?

This discussion is locked. Please start a new topic to ask your question.
11 REPLIES 11

So all this time you're practicing the Murphy Law...

Murphy had a better time than me. When it breaks I change it and usually wind up doing the wrong thing. Don't ask me about my ham rig which keeps breaking down in interesting and creative ways. That worked great until I plugged a (supported) 4 ohm speaker in and now the audio is all screwed up.