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.

TMS320F2800156-Q1: Attach to a running target

Part Number: TMS320F2800156-Q1


Tool/software:

Hello:

I am trying to attach the debugger to a running F2800156 microcontroller without loading the program or resetting it.

I am using the latest version of the Code Composer ( 20.1.0.6 ) and the XDS110 Debug.

I have tried to modify the GEL file and the debug options inside the project's properties but I can't achieve it.

Is there any step-by-step guide to do this?

Regards,

Fernando

  • Hi Fernando,

    A few things to check:

    1. For OnTargetConnect() in the gel file (ti\ccs2010\ccs\ccs_base\emulation\gel\f2800156.gel):
      1. Are you commenting out the GEL_Reset() call?
      2. Are you commenting out the RAM initialization lines?
    2. In CCS > Project Properties > Debug > Connection Options:
      1. Do you have "Reset the target on a connect" unchecked?
    3. Are you starting a Project-less Debug session?
      1. Right click the ccxml and select "Start Project-less Debug"
      2. Then connect to the CPU1 core

    Are there any other changes you're making?

    Best,

    Matt

  • Hi Matt:

    I have tried these steps, I have managed to connect to the MCU without resetting but it still halts

    I have also unchecked the Halt on Connect from the Debug properties.

    What could be still missing?

    Thanks in advance,

    Fernando

  • Hi Fernando,

    I think you could try commenting everything in the OnTargetConnect() function. Please see if combining that with the above instructions resolves your issue. 

    Best,

    Matt

  • Hi Matt.

    I have tried commenting everything in the OnTargetConnect() but it halts the same when I Connect to the Running MCU

    What else could I try?

    Thank you

  • Hi Fernando,

    On CCS v12.8.1: Following the steps I provided above, along with modifying the debug configuration to "Load symbols only" and connecting through a debug session (rather than manually connecting to the device i.e. a project-less debug session), I was successfully able to connect to CPU1 without halting the device.

    I will be looping in the CCS team to see if a similar method is possible on CCS v20

    Best,

    Matt

    • For OnTargetConnect() in the gel file (ti\ccs2010\ccs\ccs_base\emulation\gel\f2800156.gel):
      1. Are you commenting out the GEL_Reset() call?
      2. Are you commenting out the RAM initialization lines?
    • In CCS > Project Properties > Debug > Connection Options:
      1. Do you have "Reset the target on a connect" unchecked?

    These are all good steps. I can confirm that I can connect non-intrusively to my F2800157 LaunchPad with both CCS 12.8.1 and CCS 20.1.0 with the above steps (I actually am not using a startup GEL script at all).

  • I can confirm that I can connect non-intrusively to my F2800157 LaunchPad with both CCS 12.8.1 and CCS 20.1.0 with the above steps (I actually am not using a startup GEL script at all).

    Here is a video for CCS 20.1.0

  • On CCS v12.8.1: Following the steps I provided above, along with modifying the debug configuration to "Load symbols only"

    To do this, you would have do this in the launch configuration fil with the "loadSymbolsOnly" option.

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

  • Hello Ki,

    Thank you for the video. I do the same steps, but when I connect. It halts the MCU.

    I am not using the Launchpad. I am using the F2500156-Q1 64PM using the 14-Pin header. I don't know if that is relevant or not.

    Regards,

    Fernando

  • I reviewed everything, and I wasn't doing the same. I was starting from the Project Explorer, and I wasn't changing the properties from the Threads. Now it works.

    Many thanks