I am using 28075 MCU.
What I want to know is if there is a #Define or register flag that can distinguish when I am running Debugging Mode through CCS.
I look forwad to hearing from you.
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.
I assume you are looking for a way for your target application to determine if the target has a debug connection with CCS. This may be possible by reading a register or something like that. It would be very device specific. I will bring this thread to the attention of the device experts for more comment
Based on what is present in the reference manual, I do not see any register that can be used to see if the device is in debug mode. I will forwards this to the JTAG expert to see if there may be some other way to detect this.
I do not think that there is a better way than commenting/uncommenting some #define statement. If that does not work for your situation, you could have the device read some GPIO with a pull-down resistor, and then make sure to drive that GPIO high when the debug probe is connected.