This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

internal RTC example

I am using the nRF9160dk development board and I could not find a test or example for the internal RTC. could you provide a simple example of using the internal RTC.

Parents
  • Sigrud

    yes I know how to use the timers. that is not what I want here. I will use the timers for other things in the application. I want a real time clock that knows it is March 17,202 and will know months, days, leap years etc. I loaded and ran the RTC example you pointed me to. it did nothing so I assume I did not do the following.

    Starting nrfx rtc sample!
    To run in non-secure mode, you need to add RTC0 to spm.c

    I did not understand what this meant. what do I need to add and where do I add it to spm.c. if this is a real RTC then this is what I need. I could not find the supporting documention (apis, etc.).

  • I want a real time clock that knows it is March 17,202 and will know months, days, leap years etc.

    The RTC is not a real time clock, its a real time counter. For this calendar use-case, please have a look at this and this post.

Reply Children
No Data
Related