Question
How to check at runtime if a debugger is connected ?
Posted on January 18, 2017 at 19:24
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.
#check-debugger-connected-programmatically