Skip to main content
Visitor II
April 3, 2006
Question

How to add real date to compilation (Cosmic)

  • April 3, 2006
  • 3 replies
  • 911 views
Posted on April 03, 2006 at 20:10

How to add real date to compilation (Cosmic)

    This topic has been closed for replies.

    3 replies

    akelAuthor
    Visitor II
    April 3, 2006
    Posted on April 03, 2006 at 13:49

    Hi,

    It is possible to get by compiler

    real date from computer RTC

    and put to defined place in Flash

    memory.

    I want to use it as version identifiction

    Regards

    Andrew

    ST Employee
    April 3, 2006
    Posted on April 03, 2006 at 15:21

    I dont think it is possible, but there is no reason to do that, isn't it better to put your own version number into FLASH and increase it in case you have made some changes into the source code?

    Visitor II
    April 3, 2006
    Posted on April 03, 2006 at 20:10

    look for __DATE__ in the document clanguage.pdf that is in your compiler installation; that should allow you to somehow insert the compilation date into your executable.

    Regards,

    Luca (Cosmic)