I updated a working project based on nRF52832_xxAA 32Mhz crystal, from nRF5 SDK 14.2.0 to nRF5 SDK 16.0.0
now the timer is 6 times faster,
the code hasn't changed
is there any setting i miss?
const nrf_drv_timer_t TIMER_SYS = NRF_DRV_TIMER_INSTANCE(1); #define TIMER_PERIOD 10 /**< Timer period. System timer will expire every 10 ms */ void TIMER_Init(void) { uint32_t time_ticks; uint32_t err_code = NRF_SUCCESS; //Configure TIMER for 10ms interval nrf_drv_timer_config_t timer_cfg = NRF_DRV_TIMER_DEFAULT_CONFIG; err_code = nrf_drv_timer_init(&TIMER_SYS, &timer_cfg, timer_sys_event_handler); APP_ERROR_CHECK(err_code); time_ticks = nrf_drv_timer_ms_to_ticks(&TIMER_SYS, TIMER_PERIOD); nrf_drv_timer_extended_compare( &TIMER_SYS, NRF_TIMER_CC_CHANNEL0, time_ticks, NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, true); nrf_drv_timer_enable(&TIMER_SYS); }