Skip to content

Date and Time #62

Answered by phoddie
Sineos asked this question in Q&A
Dec 27, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

@Sineos – congratulations! Very complex, indeed. ;)

The date/time of the MCU is in initialized in a couple of different ways:

  • On a debug build, the computer sends the current time to the MCU when the debugging connection (xsbug) is established. This is automatic and behind the scenes. It is very convenient for development. If you run a debug build disconnected from a computer, it cannot get the time that way, of course. Then you are in the same situation as the next point.
  • On release and instrumentation builds, there is no debugging connection so the time needs to come from somewhere else.
    • On boards with a battery-backed Real-time Clock component the host initializes the time as part of…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@phoddie
Comment options

@ralphwetzel
Comment options

@phoddie
Comment options

@Sineos
Comment options

@phoddie
Comment options

Answer selected by Sineos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants