Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

JMZorko
Level 1
First reply posted First question asked Welcome!
Level 1

 

Hello, all ...

If I set the RTC and do a warm boot, the RTC is correctly preserved. On cold boot, however, it's set to Jan 1, 2000. I'd like to have it set to a different date on cold boot. How do I specify the value it should be set to on cold boot only? The values in the PSoC Creator RTC generated code (project/GeneratedCode/RTC.c) don't seem to be applied. What am I missing?

Regards,

John

0 Likes
1 Solution
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

John,

You could set it to the __TIME__ and __DATE__ of the last file modification.

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
1 Reply
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

John,

You could set it to the __TIME__ and __DATE__ of the last file modification.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes