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: Using CCS of PC code

Tool/software: Code Composer Studio

Hi,

As CCS is based on Eclipse, I was wondering if there was a way to use it to develop some standard PC applications, using an external compiler (MinGW gcc for instance). It seemed reasonably easy using CCSv5, by using CCS as a plugin rather than a standalone installation, but I didn't see this option in the latest version (but maybe I just missed it ?). And if I go the other way round, I can't find how to indicate to CCS where my make is, and therefore it fails to build a simple Hello World app.

Bonus question : Is there a way to get to switch between a PC build and an MCU build as 2 different configurations of the same project ? (my PC application uses some MCU source code)

Thank you very much,

Adrien

  • Adrien thurin said:
    It seemed reasonably easy using CCSv5, by using CCS as a plugin rather than a standalone installation, but I didn't see this option in the latest version (but maybe I just missed it ?)

    CCSv5 was the last version that allowed you to install CCS as a plugin to an existing stock Eclipse installation. It was simply a functionality that very few customers used so support for it was dropped.

    However, later versions of CCS does still ship with stock Eclipse and many Eclipses plugins would still work when dropped into CCS.

    Adrien thurin said:
    And if I go the other way round, I can't find how to indicate to CCS where my make is, and therefore it fails to build a simple Hello World app.

    Assuming you are using a standard C make project (and not a CCS project), you can configure that make utility and path as shown below:

    Adrien thurin said:
    Bonus question : Is there a way to get to switch between a PC build and an MCU build as 2 different configurations of the same project ? (my PC application uses some MCU source code)

    If you want one project that has one build configuration to build for PC and the other for you MCU, that is not supported. The device is specified at the project level, not build configuration level.

    Thanks

    ki

  • In CCS 7 if you use File -> New -> Project you get to a dialogue where you can either select a Makefile Project with Existing Code or a C or C++ Project which uses the MinGW GCC toolchain:

    To get the option to to debug a native (local) application you need to enable "CDT GDB debugging" in CCS as detailed on develop a PC application with CCS

    Note that I just checked that the options exist in the Windows version of CCS 7.2, I haven't actually used them to create and debug a native application.

  • Thank you very much. This works perfectly.
    I guess I'll find a workaround to use the same code in 2 different projets.