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.
@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?
@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?