AnsweredAssumed Answered

How to check at runtime if a debugger is connected ?

Question asked by katzenberger.michael on Jan 18, 2017
Latest reply on Dec 13, 2017 by Andrew Neil

Hi all !

I would like to know if there is a possibility to check at runtime if a debugger is connected to the STM32.

I have to distinguish between two use cases in software:

  • application connected to a debugger via 4 pin header (SWD and power 3.3V / GND)  -> no battery protection needed
  • appliction is running in normal operation state with connected battery - battery protection (to greater than 3.3V) needed

 

Any help/hints are appreciated - thanks !

 

Best regards,

Michael.

Outcomes