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.

CC2652P7: How to know if debugger is connected?

Part Number: CC2652P7

I want to implement a super low power scheme/shutdown but I know that will disrupt the debugger, and honestly, I have found that if I do this I spend an inordinate amount of time getting the XDS/device to show back up in CCS. Therefore, I want to know when the debugger is attached (/running?) so I don't interrupt it.

Of all places, ChatGPT told me to read bit 31 of the "Device Identification" (DEV_ID) register and it is located at memory address 0x50001200, but that doesn't work nor is it documented. Is there a way to do this without implementing a separate "debug" GPIO to know if I'm in a debugging vs. deployed environment?