Suggestion: Build code or SVN code

When working on embedded HW it is always easy to loose track of what exactly is running. A common trick is to include the SVN rev number, timestamp or some other counter.

Right now the system seems to track the build number. Is this exposed; so we can do something like

printf("Started (Build #" __BUILD_NO__ " - compiled " __DATE__ "\r\n");

Thanks,

Dw.

Replies

28 Oct 2010

Another vote for this. It would be very handy to be able to check the build number!

28 Oct 2010

Hi Dirk, Ian,

We don't support this, but we could do something like it. Would a timestamp be acceptable for you (e.g. a UNIX timestamp)?

Cheers,

Simon

28 Oct 2010

Its workable.

i'd like to be able to printf it so that i can identify a 'build number' in the final system.

23 Jan 2011

You can already printf the TIME macro (or variable?):

    printf("******** [%s] *********\n",__TIME__);
23 Jan 2011

Excellent point Hendrik,

See more: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0041c/Babbacdb.html

We will still look at including our own data in the build in the future.

Dan

Please log in to post a reply.