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/CC2640R2F: Makefile script GCC command line for linux

Part Number: CC2640R2F


Tool/software: Code Composer Studio

Hi,

I don't feel comfortable programming with CSS. Too slow and with far more features than I really need.

Is there any script or Makefile to just run "make hex" "make install" ... ? 

Thanks in advance.

  • As a similar type of user, I discovered and tried out CCS Cloud and found it really to my liking.
  • Thanks for your reply.
    However I am a command line user, I usually develop in vim/nano and feel confortable without UI and without Internet.

    I'm new to CCS and Ti CC26xx, and for "ME" CCS is too overloaded after being developing in AVR/GCC and makefiles.
    I don't see the point of using a gigabyte app bloated with Java to compile C files and upload.
    I don't even understand why should I click Debug icon to upload the binary. Where is the "Just upload/install hex" option ?

    I would like to have a makefile, gcc and only the necesary files. Is it possible ?

    Thanks for your patience and support.
  • Hi,

    I suspect you are in for a bit of self-punishment :) but you can download the SDK separately from CCS (as well as all its dependencies), install it in Windows (I don't see a Linux install) and copy it to your Linux machine (something that was done for the BLE stack and others). I don't know if this SDK uses GCC or the TI compiler.

    The example SDK projects are in a format called *.projectspec, which is an XML-like file easily readable by a text editor and contains all the information the project would contain in CCS. You can parse this file and populate the compiler and linker options of your own makefile.

    On the other hand, you can save this manual work by installing CCS and running it from the command line, which will allow you to import and build projects directly from its interface. In Linux this has become even easier as CCS now is 64-bit and only requires a single 32-bit library. A good reference for that is:

    processors.wiki.ti.com/.../Create

    One detail: when a project is built for the first time from CCS, it creates a makefile at its output directory that allows you to simply run make from the command line to rebuild it. Perhaps that could be part of your workflow. Obviously that, if you change compiler/linker options and add/remove files from the project, this makefile needs to be re-generated.

    BTW, you can manually load code to a target using CCS. Just check the section that talks about Manual Launch of the page below:

    processors.wiki.ti.com/.../Debug_Handbook_for_CCS

    --Cheers