In mesh example project “dimming_server”,I have added functions: mesh serial, SAADC(use ppi) and compie pass.However,when debugging,an error is happened in the function"nrf_drv_timer_init(&m_timer, &timer_cfg, timer_handler);"below" void saadc_sampling_event_init(void)" in the step of Init. The error tip is"<t: 366006>, app_error_weak.c, 87, Application memory access: 230462:256" . I have enabled timer 0 and timer1 already. Most code is transplanted from SDK. Now,I have no ideal to solve this issue,Can help me?Thanks in advance.
/* Part code below*/
static void initialize(void)
{
。。。
ERROR_CHECK(app_timer_init());
。。。
gap_params_init();
conn_params_init();
mesh_init();
user_init();
uint32_t status = app_pwm_init(&PWM0, &m_pwm0_config, NULL);
APP_ERROR_CHECK(status);
m_pwm0_max = app_pwm_cycle_ticks_get(&PWM0);
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "PWM max ticks: %d\n", m_pwm0_max);
}
void user_init(void)
{
saadc_init();
saadc_sampling_event_init(); // Debug error happen in its function nrf_drv_timer_init(...) Line 105 <---see here
saadc_sampling_event_enable();
}