Firmware Version update

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Firmware Version update

942件の閲覧回数
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 返答(返信)

736件の閲覧回数
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 件の賞賛
返信

736件の閲覧回数
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