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 !