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