Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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: Howto run a standard C++ project in CCS on macOS

Tool/software: Code Composer Studio

I need to run some standard (console) C++ applications in CCS alongside with my embedded MSP430 applications. I followed the indications provided in the CCS documentation (Development Tools/CCS/Projects and Build/Project and Build Handbook, link below). This all works fine I can generate a C++ Hello World application it compiles fine, but then I want to launch it...

- In the reference linked below they say to go to Run > Run Configurations and select C/C++ Application option, this option is not available.

- If I go into Project Properties, Run/Debug settings, I can add a new configuration; this time I have the C/C++ option, however after I created and saved this configuration when I quit project properties and open it again, the configuration disappeared.

Is this a CCS bug ? Any help would be much appreciated...

dev.ti.com/.../

  • Is this what you were following?  I didn't any info on this in the handbook but it did have a reference to this:

    Try switching to the C/C++ Edit perspective.  I first enabled the capability but that may not be necessary:

    Then from the Window menu you can change the perspective to the C/C++ perspective.  The Run -> Run Configuration menu will now show up.  When I select it I get an error but it still goes to the dialog and I can create a Remote C/C++ configuration and it will save and be there the next time I open the dialog.

    Regards,

    John

  • Hi John,

    yes definitely, this eclipse documentation is linked from inside the CCS documentation.

    At least I got one step further, I had indeed to enable the CDT GDB Debugging capability, and then suddenly in Debug/Run Configuration I get the 'C/C++ Application' option, and my disappeared configurations re-appeared.

    However, when launching the application I get this:

    Error with command: gdb --version
    Cannot run program "gdb": Unknown reason

    I am wondering why you write about 'Remote C/C++ Application', isn't it supposed to be simply 'C/C++ Application' ?

    Regards,
    Marc
  • Marc,

    C/C++ Remove Application is what shows up in the configuration dialog for me.

    Maybe my project was created differently.  I actually don't have the project building.  I have never built for the host on my Mac.  I get an odd error:

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    As far as the error you are getting it doesn't look like gdb is in the system path.  I did a search on it and found this:

    www.ics.uci.edu/.../mac-gdb-install.html

    However that article is pretty old and it looks like there is an option for using LLDB in Eclipse now:

    Regards,

    John 

  • Well, I think that was part of the issue.

    The problem comes from Apple not using gdb debugger anymore in XCode, installing gdb via homebrew or macports may or may not work, I choose to use the experimental lldb debugger feature, as described here : wiki.eclipse.org/.../FAQ

    And finally my program ran.

    I want to stress here how important this feature is if you want to run unit tests over your code. Sure, you can't test everything, I test more or less 80% of all of my code on my host machine (so far under Xcode, now maybe directly in eclipse).