This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: How to synchronize RTC with real-world current time

Part Number: CC2340R5

Tool/software:

Novice question here- how do you suggest I synchronize the system time with the real world's time?

My brain thought: oh, write the current epoch time to TIME524M, but it's read only. So, I think an offset is necessary 

Say a smartphone syncs with my processor- I would save the real-world current time into a variable

currentUnixEpochTimestamp = 1743909922;

Then, I'd reset RTC, and do something like 

currentTime = RTC.TIME524M + currentUnixEpochTimestamp;
?

Curious how the pros do it in a way which can't be upset by a system reset Slight smile