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.

CODECOMPOSER: How to attach to a running program

Part Number: CODECOMPOSER


Hi,
I am utilizing CCS 12.3.0.
I would like to know, is it possible to attach to a running program and debug it in Code composer studio?
I'm using it without Debugger, and I'm thinking of attaching it for analysis on the way.
I'd like to ask you to teach.

  • Hello,

    I would like to know, is it possible to attach to a running program and debug it in Code composer studio?

    Can you provide more details on your use case? Do you wish to attach the debugger non-intrusively (without halting the processor)? If so, then you kind of debug visibility are you looking for while the target is left running? What device is being used?

    Thanks

    ki

  • Thank you for your reply.
    The following is a usage example.
    1 Write the program to the board and remove the debugger.
    2 Operate the board and check the operation.
    3 In the process of checking the operation, find unexpected behavior (bug).
    4 I want to access internal information and set up watches and breakpoints while running the program.

    The devices use the MSPM0XX series and the CC23XX series.

  • Thank you for your reply.
    The following is a usage example.
    1 Write the program to the board and remove the debugger.
    2 Operate the board and check the operation.
    3 In the process of checking the operation, find unexpected behavior (bug).
    4 I want to access internal information and set up watches and breakpoints while running the program.

    yes, this is all fine. For step 4, you would want to do a manual debug launch:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_debug-main.html#manual-launch

    The big question is if you want to make sure that the target is NOT halted when you connect to the target. By default, it will halt on connect. For some devices it is possible to connect non-intrusively (connect without halt) but for others it is more of a challenge. For M0 and CC23xx it may be tricky to connect non-intrusively.

  • Thank you for your kind support.
    You can now attach it by the method of presentation. This matter will be resolved.