I plan to use RTC for a simple counter. No need for interrupt nor event. I don't use SoftDevice. It's 52840.
I just need to set it to run, and periodically read the counter. No need to detect overflow, just need to let it wrap around.
Below is my simple initialization. To my surprise, whenever I read the counter value, it's always 0.
Any idea what I missed?
Thank you in advance.
Have you enabled the clock source ? Either crystal or RC
Thanks a lot, yes, it's configuration issue. I found that the internal RC wasn't running. It's works OK now.