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.

  • Resolved

Compiler/CC2650: Debugging support in CCS

Part Number: CC2650

Tool/software: TI C/C++ Compiler

Hello,

I use CCS 7v1 with TI's toolchain and for  1st time gave a try to debugger.  I wonder if it is possible to use something like gdb console to query e.g. pointers, dereferencing them, casting to structures (sometimes different than base pointer type) and everything else one familiar with gdb can do with gdb and program, process, (thread -  whatever) being debugged.

Regards

  • Guru 124160 points
    Hi,

    The command-line tool that creates a GDB server instance to be used with a GDB-compatible debugger (including CCS) is called the XDS GDB Agent. For details, please check:
    processors.wiki.ti.com/.../XDS_GDB_Agent

    Hope this helps,
    Rafael

    When posting, click on the link Insert Code, Attach Files and more... to attach images, files or use nice formatting.

    If my reply answers your question please click on the green button "This resolved my issue".

    Search the wiki or go to useful pages for SDOWP, Compilers, CCSv3, CCSv4, CCSv5, CCSv6, CCSv7
  • In reply to desouza:

    Hi,

    Thanks for this tip. It might work except that

    Code Generation Tools Updates - http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/codegen/Updates/p2linux

    contains arm-gcc for windows (who cares) and os-x but linux - what is wrong ?

    why there is no bare *-gcc (small cortex target) for linux ?

  • In reply to Krzysztof Blaszkowski:

    I did not notice that I had installed arm-*-gcc for os-x already and when I gave a try to *-gdb I saw "exec format error" message. Yet another tool gave exact reason for the failure message and it was: "arm-none-eabi-gcc: Mach-O 64-bit x86_64 executable"

    Just in case of some TI employee did not know that os-x executable will not run under linux I will remind that native executable file format for Linux is ELF but Mach-O. And some reference url on OS-X vs Linux userland differenecs:
    unix.stackexchange.com/.../what-makes-osx-programs-not-runnable-on-linux

    So final Question is - why TI did not release gcc toolchain for Linux OS - was it caused by poor IT employees knowledge or due to other political reasons ? And if these reasons were related to policies then why the CCS was released for Linux ? why does TI bother ?
  • Guru 124160 points

    In reply to Krzysztof Blaszkowski:

    Hi,

    If you selected ARM GCC during install, CCS should have installed it under ccsv7/tools/compiler/gcc-arm-none-eabi-4_9-2015q3

    Krzysztof Blaszkowski

    Code Generation Tools Updates - http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/codegen/Updates/p2linux

    contains arm-gcc for windows (who cares) and os-x but linux - what is wrong ?

    why there is no bare *-gcc (small cortex target) for linux ?

    Can you send a screenshot of what you see? This update site should only contain TI branded compiler versions.  

    GCC updates are usually left for the user to install and configure CCS to discover them. They can be obtained either from ARM Launchpad or from Linaro

    Krzysztof Blaszkowski
    So final Question is - why TI did not release gcc toolchain for Linux OS - was it caused by poor IT employees knowledge or due to other political reasons ? And if these reasons were related to policies then why the CCS was released for Linux ? why does TI bother ?

    The GCC compiler installed with CCSv7.1 is indeed a Linux valid executable. 

    Therefore Occam's razor applies here. Perhaps your system has other compilers installed in the path that are being picked up instead? Or perhaps your project points to specific paths to compilers? 

    Regards,

    Rafael


    When posting, click on the link Insert Code, Attach Files and more... to attach images, files or use nice formatting.

    If my reply answers your question please click on the green button "This resolved my issue".

    Search the wiki or go to useful pages for SDOWP, Compilers, CCSv3, CCSv4, CCSv5, CCSv6, CCSv7
  • In reply to desouza:

    Hi Rafael,

    I can't say what went different during CCS installation however when I check "show only soft. applicable to target environment" then I could see just nothing and now I can see OS-X only. This is freaky.
    And the GCC for OS-X has Mach-O x86_64 format indeed.


    file:///home/kb/Pictures/sreenshot/Screenshot%20from%202017-03-13%2015-48-34.png


    file:///home/kb/Pictures/sreenshot/Screenshot%20from%202017-03-13%2015-48-09.png

    On ubuntu like you.

    Regards,
    Krzysztof
  • In reply to Krzysztof Blaszkowski:

    How to attach a screenshot ?
  • In reply to Krzysztof Blaszkowski:

    got it
  • In reply to Krzysztof Blaszkowski:

  • In reply to Krzysztof Blaszkowski:

    "Installation details" pointed that I had some ARM GCC installed. I uninstalled the package and then I could see also ARM GCC for linux in "install" dialog window. I tried to install proper version (however OS-X should not be shown for Linux still) and this attempt ended up with an error like included. What does this mean ?

  • In reply to Krzysztof Blaszkowski:

    Installing arm-gcc 4v8 was successful

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.