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/EK-TM4C1294XL: How to use the J-Link to debug in CCS v8?

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: SEGGER

Tool/software: Code Composer Studio

Hi, Ti E2E Team,

In the "ARM® Cortex®-M4F-Based MCU TM4C1294 Connected LaunchPad™ Evaluation Kit", I disconnect the 0 Ohm resistance in JTAG line between TM4C1294NCPD and TM4C123G.

Connect the TCK, TMS, TDI, TDO, RESET, GND, 3.3V in TM4C1294NCPD to TCK(pin9), TMS(pin7), TDI(pin5), TDO(pin13), RESET(pin15), GND(pin4), VTref(pin1) in J-Link.

Open the CCS project in CCS v8 software, then click "Run->Debug", the following picture appears,

Then I select the "SEGGER L-Link Emulator/CORTEX_M4_0(Disconnected: Unknown)", right click and select the "Connect Target", it shows,

It seens connect, but can not debug in main.c file(such as take a break). I have searched in SEGGER about J-Link connecting with CCS(https://www.segger.com/products/debug-probes/j-link/technology/ides/ti-code-composer/), I modify the configuration as below,

I want to know why it can not connecte?  Are there any other collocations in CCS?

I am waiting for your reply.

Thank you.

Regards,

Eric

  • Eric,

    It doesn't look like you have loaded the program yet.

    A typical debug launch would start the debugger, connect to the device, load the program and run to main().  That would all happen automatically.  Given that you are having to manually connect to the target they you will also need to manually load the program and run to main().  The load program button is 2 buttons to the right from the connect button.

    If you are able to load the program ok manually then we should figure out why that is not happening automatically.  The default settings for a project debug launch would have done that so something has changed.

    If you click the down arrow beside the bug button on the toolbar there will be an entry called Debug Configurations.  Select that.

    When the debug configurations dialog opens look for an entry that matches your project name on the left.  Click on it.

    Then select the program tab on the right.  Make sure the M4 is selected in the Device drop down (i.e. not the DAP).  Ensure that the load program option is selected.

    Next click on the target tab.  Make sure main is in the box beside run to symbol.  The box "on a program load or restart" should be checked.  Under launch options the option to connect should be checked.

    Regards,

    John

  • Hi, John,

    Thank you for your reply, my problem is resolved according to your suggestions.

    Regards,

    Eric