Firmware Version update

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Firmware Version update

556 Views
danielecortella
Contributor V


Hello all,

 

i have a question if it is possible use the eclipse template or others for update a constant value define as:

 

static const unsigned short firmware_version =  0001;

 

for update automaticaly(for example) every time i debug it increasing it of +1. This for track the firmware version

 

 

Thanks

Labels (1)
0 Kudos
2 Replies

350 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Daniele,

You could also run a post-build command where you rename the generated binary file with a version number. Take a look to the following post created by a colleague that explains how to execute multiple post-build commands:

Executing Multiple Commands as Post-Build Steps in Eclipse | MCU on Eclipse

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 Kudos

350 Views
bobpaddock
Senior Contributor III

I explain how to do that with Make (the underlying build system) here:
Software Safety: Automatic Serial Number for Test Driven Development. Makefile Tip #0