Tool/software:
Is it possible to detect if debugger is connected by polling some register of the device? I mean using only HW capabilities rather that a debugger script.
Regards,
Eugene
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Is it possible to detect if debugger is connected by polling some register of the device? I mean using only HW capabilities rather that a debugger script.
Regards,
Eugene
Hi Eugene,
If you want to check whether XDS110 debugger is connected with PC, you could go to windows device manager to check whether XDS110 is found:

If you want to further check whether XDS110 (debugger) could normally connect to the MCU, you could follow below steps in CCS to see whether connect successfully.


No. This is not what I asked. I want to test if debugger is connected in the code running on the target. Ideally, that should not involve any debugger script (GEL or otherwise) and be debugger agnostic. However, if that is not possible then example for debugger script to do that would be helpful.
Eugene
Hi Eugene,
In Debug section of MSPM0 G-Series 80-MHz Microcontrollers Technical Reference Manual (Rev. C), there is debug power up(PWRUPIFG) and debug power down(PWRDWNIFG) interrupt for debug module, I think you could enable these two interrupt to detect debug connection, or polling these two filed on RIS register to detect debug connection. Please check whether it works for you.
