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: CCS7 debugging with gcc

Other Parts Discussed in Thread: EK-TM4C123GXL

Tool/software: Code Composer Studio

Hi,

I'd like to debug my code on hardware (EK-TM4C123GXL) with the gcc compiler.

When I select the TI compiler everything is good, I can debug my C code and my code works on the Tiva C Launchpad (EK-TM4C123GXL) but when I trying to debug my project with the GNU compiler (Linaro) it does nothing. It seems it does not work (I can't use step-by-step debug). Or I have to change some settings?

 Version: 7.0.0.00042

  • Attila Csosz said:
    but when I trying to debug my project with the GNU compiler (Linaro) it does nothing

    Could you please give us more details on what "does nothing" means? It would be helpful if you could provide details of the specific symptoms you see when debugging a GCC compiled project. Does the code reach "main" when the debugger is launched, what happens when you step through the code, etc.

  • 1. Connect the hardware
    2. Create a project with the followng settings: CPU: TM4C123H6PM, compiler: GNU v4.9.3 (Linaro), empty project with main.c
    3. Press build
    4. Press the Debug button on the toolbar

    Now I deleted my workspace before adding the new simple project and the scenario is a bit different.
    Now I have a new dialog to setup the debugging

    Which item should I choose for the Connection? When I choose the [Default] I have got an error message ( can be seen on the screenshot )

    Here is the link for the screenshot
    postimg.org/.../

    I have installed CCS7 only. Should I install any other tool for debugging?
  • Maybe I have to use the Stellaris ICD.
    When I choose the Stellaris ICD and the compiler is the TI compiler the debugger works (the first line to be executed is highlighted and I can step-by step debug).

    However when the compiler is GNU, the debugger does not work (the first line to be executed is not highlighted so I can't step-by-step debug)
    See the screenshot (when I pressed the Debug button)
    postimg.org/.../


  • Attila Csosz said:
    Maybe I have to use the Stellaris ICD.

    Yes, Stellaris ICDI is the correct connection to be used for the EK-TM4C123GXL.

    Attila Csosz said:
    However when the compiler is GNU, the debugger does not work (the first line to be executed is not highlighted so I can't step-by-step debug)

    If the program doesn't reach main there is something wrong with the project configuration. You may be encountering Known issue when using CCS 6.1/Linaro GCC 4.8.4; try one of the changes on the referenced Wiki page.

  • I have the exact same issue. I am using CCSv7.2 and I have installed the latest updates.  The code clearly compiles when using the GNU compiler.  I know this because I can reset the board and the code will run, blinking simple LED's.  The resume (or green "play" button) in CCS is not active as described by Attila Csosz.  There are so many debugging options in the menu.  Could this problem be solved by changing the Project Properties? If so, how? Or is this a bug in CCS?  Thanks for your reply in advance.

  • Specify the entry point under -e option for the linker (under Project Properties->Build->GNU Linker->Basic). This can be set to _start or ResetISR