Firmware Version update

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Firmware Version update

944 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

738 次查看
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 项奖励
回复

738 次查看
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