My application is based of the UART example, I have a repeating app timer that fires every 5 min's to do some tasks, I also utilise single fire timers (initiated for events that come from the 5 Min timer.
I also require access to some sort of system time - these times are only required occasionally - right now I provide these via a repeating app timer at 1 second intervals (updating a 'system_time' variable).
It seemed wasteful to wake the system up every second to update the time, so I thought I could use the RTC to run in the background and just poll for the counter value when I need the system time. So thats where my problems start!
Trying to enable the RTC, as soon as I enable RTC0 in the sdk_config.h it causes my code to race with interupts (at least I think thats whats happening), I have tried two methods of initilising the RTC - The way shown in the RTC example (but setting all interupts/overflows to false) and without initilising it at all (NRF_RTC0->TASKS_START = 1;) I realise I might just be being stupid (this is my first nRF project) Is it possible to run the RTC, app timer and softdevive at the same time? Would I be better to switch to using the RTC and not the app timer at all?
Thanks guys... this should be my last question......
this year ;)