Hardware Description:
MKBN02A00 module based on nRF52832 SOC
Software Description
nRF SDK 15.2.0 , SoftDevice S112
Application
I'm logging sensor data in external flash memory with the timestamp. I used RTC2 to count time in the application. The module is battery powered.
Whenever I perform softreset or OTA, and later try to read RTC2 COUNTER and capture/compare 0 registers (without initializing RTC again), The value is 0 for both the registers. And therefore I lose track of time.
Question:
I wanted to know if the RTC register value is reset during Softreset and OTA process.
And also if there is any other solution to keep track of time on nRF52832.