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.

How to inject SW. Version into binary file as part of build process

Hi

I would like the Software Version of my application to be updated inside my code and be visible in a designated location in the binary file, i.e in the last 4 bytes.

It should be something like [assembly: AssemblyVersion("2.7.*.*")] in Visual Studio, but in Code Composer.

Should it be a linker comment? or definition in the DATA Segment ?

I would like to open the Binary file on a PC using somthing like fopen function and read the last 4 bytes injected by gmake/ CCS.

Thanks,

Roee