Hello Jeffery,
The only way to know for sure that SRTC has been started is by enabling RTC_EN bit. If you check our SDK drivers you will find SNVS_HP_RTC_StartTimer API that does the following to make sure the RTC was correctly enabled.
static inline void SNVS_HP_RTC_StartTimer(SNVS_Type *base)
{
base->HPCR |= SNVS_HPCR_RTC_EN_MASK;
while (0U == (base->HPCR & SNVS_HPCR_RTC_EN_MASK))
{
}
}
Hope it helps!
Best regards,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------