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: Link C code and subversion revision

Tool/software: Code Composer Studio

Hi,

I would like to know if there is any way for including the revision number in the source code.

Code composer:  5.5
Repository: SVN Subversion

Goal should be having something similar to:
uint16 revision;
revision = svn:revision; //or any how

I already installed Eclipse Subversive

Thanks in advance

  • Nicholas,

    If the Eclipse subversive plug-in adds a build variable that contains the version you could make use of that.  You can see the variables in the project properties dialog.  Select build in the tree on the left and then the variables tab.  Make sure to check the box to show system variables.  In this capture you can see the git variables.  These get populated by Eclipse at build time.  Basically you could have a -D in your project that was set to the variable value.

    If it does not add a variable then you would have to do something like what is described in this thread:

    Regards,

    John