Firmware Version update

cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware Version update

216 Views
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

10 Views
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

10 Views
Senior Contributor II

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