Hi Jared,

nRF5340 has a 24-bit internal RTC counter. I need to keep track of the real-time when MCU is sleeping. My current implementation design is to have a base epoch value from the network and add the offset ms value from the RTC counter.

I need to reset the RTC counter when a new epoch value is received from the network but I am not able to find any support for it.

“counter_stop” does not clear the RTC count value. Do you have any information to reset the RTC counter value?

Or do you have any other ideas to maintain the RTC time?

Many Thanks

    Hi dilawar I know there was some talks of an RTC API but I’m not sure how far along it is.

    If there is nothing in NCS to use the onboard RTC you may need to write your own code to manage it. I know in some cases the LFCLK is managed by the Bluetooth stack so you may have to be careful in that regard.

    My best suggestion is to raise your issue on Devzone.

    Terms and Conditions | Privacy Policy