Hi,
I am facing some issues on enabling timer1 with s132 (nrf52832 pca10040) enabled. i am using the basic timer0 example code as reference and it was working without the softdevice. but when i have tried to add timer1, its not giving the interrupt. i have also tried app timer which is working with my code, but the accuracy is very low since its based on rtc clock.i have also tried configuring bit width for timer as 16 bit and tried timer2,3. it seems i am missing something :( i am using sdk14.0
nrf_drv_timer_config_t timer_cfg = NRF_DRV_TIMER_DEFAULT_CONFIG;
err_code = nrf_drv_timer_init(&TIMER_LED, &timer_cfg, timer_led_event_handler);
APP_ERROR_CHECK(err_code);
time_ticks = nrf_drv_timer_ms_to_ticks(&TIMER_LED, time_ms);
nrf_drv_timer_extended_compare(
&TIMER_LED, NRF_TIMER_CC_CHANNEL0, time_ticks, NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, true);
nrf_drv_timer_enable(&TIMER_LED);
void timer_led_event_handler(nrf_timer_event_t event_type, void* p_context) { flag = 1; }