PSoC6 RTC default value after cold boot

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

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

 

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
Level 9
Beta tester 500 solutions authored 1000 replies posted

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
Level 9
Beta tester 500 solutions authored 1000 replies posted

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