Build Time and Date

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

Build Time and Date

487 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rcazalis on Fri Jul 16 06:37:45 MST 2010
Hi,

is there a way to get the build time and date in the code with CodeRed's compiler?
Something like __DATE__?

Original Attachment has been moved to: 1100543_log.txt.zip

0 Kudos
2 Replies

431 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rcazalis on Fri Jul 16 11:41:55 MST 2010
Thanks Zero again,

for some reason it did not compile last time... I don't understand...

Come to Paris any time... ;-)
0 Kudos

431 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 16 10:14:00 MST 2010
What about good old-fashioned including it in an UART or USB message like

[LEFT][SIZE=2]putstring([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"DOG-LCD Version 1.4 "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]putstring(__DATE__);[/SIZE]
[SIZE=2]putstring([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]putstring(__TIME__);[/SIZE]
[SIZE=2]putstring([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"\n\r"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE][/LEFT]


('putstring' is my own simple function to buffer strings before I send them via UART or USB)
0 Kudos