I'm trying to get a time stamp using app_timer_cnt_get(&ticks), but the ticks always equals 0. And I have called APP_TIMER_INIT() to init the app timer. I have no idea why. Someone can help?
I'm trying to get a time stamp using app_timer_cnt_get(&ticks), but the ticks always equals 0. And I have called APP_TIMER_INIT() to init the app timer. I have no idea why. Someone can help?
Have you set up a timer and called app_timer_start() on it? RTC1 doesn't run unless there's an active timer.
Have you set up a timer and called app_timer_start() on it? RTC1 doesn't run unless there's an active timer.
I have called app_timer_start(m_battery_timer_id, BATTERY_LEVEL_MEAS_INTERVAL, NULL), any other clue ? Thanks!
And that timer is still running? If it's a repeating one it should be, if single shot then it may have stopped and then RTC1 stos. Is your timer firing ok?
@RK Hi, I have the same problem. I have called app_timer_start(), and the timer is APP_TIMER_MODE_REPEATED. I debugged it, and traced to the function rtc1_counter_get()
, but the NRF_RTC1->COUNTER
is ZERO. Could you give me any hints?