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/TMS320F28027: Build date update via CCS

Part Number: TMS320F28027

Tool/software: Code Composer Studio

Dear Champs,

I'm using CCS5.2 for F2802x/F2803x devices, now I'd like to update the build date and firmware version via CCS automatically once click on build option, can you please help on this?

Here is the micros that I defined in C or header files.

#define VERSION_NUMBER 14

#define REVISE_VERSION_NUMBER 1 

#define VERSION_YEAR 18 
#define VERSION_MONTH 10 
#define VERSION_DAY 22 

  • Jack,

    I can think of a couple ways to do this.

    You could run your own prebuild step that runs a script to update a .h file.

    You could also make use of the build in eclipse build variable called current_date.  Using this you could add a build option like this:

    Here I added a #define via the build options and set its value to current_date.  This contains both the date and the time.

    Regards,

    John

  • Hi John,

    Thanks for sharing this solution with me.

    Can you please give some guideline on how to run prebuild step that runs a script to update a .h file?

  • Jack,

    The second option is the more simple one.  As far as running a script you can setup pre-build steps here:

    You could have a pre-build step that ran a Perl script or something similar that updated the .h file that is then used by the build.

    Regards,

    John