Would you please tell me which timer had been used by ESB and app_timer_init() function?
Which register can I get the current timer count value of above timer?
I had found app_timer is use RTC0.
I had try to read the values of RTC0 register value (ex. EVENTS_COMPARE[~, CC~), but the value is always "0x00000000".
I can make sure the app_timer is active because I use app_time to print register value.
Would you please tell me why I can not read the value?
the HW resources used by the ESB protocol is listed here. You need to read the COUNTER register, not the EVENTS_COMPARE registers.
I try to get "NRF_RTC0->COUNTER" in main loop by following program.
gRTC_Value.COUNTER = NRF_RTC0->COUNTER;
And I had print "gRTC_Value.COUNTER“ value in 1 sec app_timer, but the value is always 0.
Would you please tell me how can I get correct RTC0 COUNTER?
the Application Timer library uses RTC1, not RTC0, see nRF5 SDK v15.3.0: Application Timer. Try reading the RTC1 counter instead.