This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

current time on LPC 2132

Hi,

i am using LPC 2132 and LPC 2134 as microcontrollers. Is there a way to print current time/system time on console logs.

Parents
  • But how did you expect us to know that?

    Remember, nobody knows anything about you, your experience, your project, etc, other than what you clearly & explicitly state in your posts!

    There are some good books to study here: http://www.keil.com/books

    Also look out for training opportunities with local suppliers; eg, http://www.keil.com/events/

    NXP have a lot of training materials on their website, YouTube, through their distributors, etc...

    "C functions like time() or get_time_of_day etc don't execute on this MC"

    No functions run on any platform unless they have been loaded onto it!

    With a PC, you have a vast amount of support from Windows or Linux or whatever;

    On an embedded microcontroller, you have to provide it all - either by writing it yourself, or by including 3rd-party code.

    The Compiler Manuals tell you what support is provided by the compiler's own libraries (its run-time libraries; RTL) - and what support you need to provide yourself to enable those functions to work. Keil call this Retargetting.

    Keil's Manuals are available online here: http://www.keil.com/support/man_arm.htm

    There are lots of supporting resources here: http://www.keil.com/support/

Reply
  • But how did you expect us to know that?

    Remember, nobody knows anything about you, your experience, your project, etc, other than what you clearly & explicitly state in your posts!

    There are some good books to study here: http://www.keil.com/books

    Also look out for training opportunities with local suppliers; eg, http://www.keil.com/events/

    NXP have a lot of training materials on their website, YouTube, through their distributors, etc...

    "C functions like time() or get_time_of_day etc don't execute on this MC"

    No functions run on any platform unless they have been loaded onto it!

    With a PC, you have a vast amount of support from Windows or Linux or whatever;

    On an embedded microcontroller, you have to provide it all - either by writing it yourself, or by including 3rd-party code.

    The Compiler Manuals tell you what support is provided by the compiler's own libraries (its run-time libraries; RTL) - and what support you need to provide yourself to enable those functions to work. Keil call this Retargetting.

    Keil's Manuals are available online here: http://www.keil.com/support/man_arm.htm

    There are lots of supporting resources here: http://www.keil.com/support/

Children
No data