Since uVision does not support
__BUILD__
I need a kind of BUILD-Counter which increments automatically. The Build should be an array of chars which can be included into the project. Any idea?
"The bad (sic) thing about __DATE__ and __TIME__ is that they require the specific file to be always recompiled"
Yes, of course; but that's easily achieved in uVision - you just check 'always build' in the file options.
I routinely have a file called "timestamp.c" for exactly this purpose!
I think you would have to do the same with the Custom Translator?
Interesting - I must have missed that I can force "always build" for a single file. A lot of IDE don't support that, so the user must remember to do a full build, or use a pre-build rule to delete the output file.
One system I used - I have forgotten which - did always run the pre-build rules before each debugging session, so it always complained that the target binary was old :)