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.

RTOS/CC1352P: Set RTC Sec and Subsec values after BIOS_start

Part Number: CC1352P

Tool/software: TI-RTOS

Hello TI community,

I want to know if there is any reason I shouldn't set the values of the RTC sec and subsec using :

HWREG(AON_RTC_BASE + AON_RTC_O_SEC) = u32_RTC_SavedSec;
HWREG(AON_RTC_BASE + AON_RTC_O_SUBSEC) = u32_RTC_SavedSubSec;

after a BIOS_start(), when the OS is running ?

Is there any real time risk doing so ?

I would like to restore the value of the RTC in case of a reset. (which seems to set the RTC time to 0, the BIOS_start seems to reset the value to 0 as well, am I right ?)

I intend to do it as the first thing I do in my application.

Thnaks for your advice !