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.

CCS/CC2642R: Attach to running target (CC26XX) for debugging?

Part Number: CC2642R

Tool/software: Code Composer Studio

Hi,

Is there any way to attach the XDS110 debugger to a running CC26XX target and debug/read register values?

I only use the (default for example projects) debug configuration in CCS that does the program load/reset, but I want to be able to connect to an already running/programmed unit and read registers. I cant find any info about attaching to a running device. Thanks

  • Hello,
    In most cases, CCS should attach to a running target non-intrusively - meaning if the target is running when connecting, it should respect the current state and connect without halting the target. But be aware that there debugger options that you can enable/disable which specify if the debugger should halt a running target on connect. Also be aware of your startup GEL file. There is a callback function in there called OnTargetConnect() which gets called when the debugger is connecting to the target. It is common for there to be code to halt/reset the target when the target is connected. Hence you would need check this also.

    Finally, note that on cortex-M devices, you can access target memory while the target is running. But you need to be halted to access registers.

    Thanks
    ki