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.

Added date/time to a #define in every build

Other Parts Discussed in Thread: LM3S1968, PMP

Hi,

I am using CCS4 with LM3S1968.

Currently, I have a #define with a date/time string in the code to indicate the version of the firmware built. This string is displayed on the OLED when the device is powered on.

I would like to know if there is an automatic way to put this #define value into the compiler argument/parameter, such that the date/time is updated everytime the project is built? Thanks.

Best regards,
Wilson Fok, PMP