We are trying to get an RTC working on the ble_peripheral_server_bond example.
In the firmware reference, the following code lines are provided as examples:
Sys_RTC_Config(0, RTC_RESET | RTC_ALARM_1S |RTC_ENABLE |RTC_CLK_SRC_RC_OSC);
With the function Sys_RTC_Value() the current RTC value can be read.
If I do this, I always get back the value 0. I tried different start_values but didn’t succeed. Is there anything I missed?
The goal would be that we can build a freeRTOS application with BLE and other tasks which happen to need RTC timers.