This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Starting the timer without BLE

Situation: SES, SDK 16, nRF52832

I'm developing a pre-production test program without BLE. I'm using APP_TIMER_V2 and noticed that the timer events do not not happen even after following the BLE example code. It turns out there's some legacy calls in the BLE startup that make the timer work. The sequence of calls that seem to work is:

app_timer_init();

app_timer_create(&mTM, APP_TIMER_MODE_REPEATED, eventHandler);

nrf_drv_clock_init();

nrf_drv_clock_lfclk_request(NULL);

app_timer_start(mTM,  ..., NULL);

Now the repeated events happen. The 2 nrf_drv_clock calls were hidden in BLE startup code.

Related