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

ERROR 3735928559 [Unknown error code] at E:\nRF5_SDK_14.2.0_17b948a\components\drivers_nrf\timer\nrf_drv_timer.c:160

Hi

I'm using nrf52DK board with SDK 14.02. 

I wanted to use PWM Library with softdeivce but  I'm getting this <error> app: ERROR 3735928559 [Unknown error code] at E:\nRF5_SDK_14.2.0_17b948a\components\drivers_nrf\timer\nrf_drv_timer.c:160

I am not able to point out what is getting wrong here.

void nrf_drv_timer_enable(nrf_drv_timer_t const * const p_instance)
{
    ASSERT(m_cb[p_instance->instance_id].state == NRF_DRV_STATE_INITIALIZED); //line 160
    nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_START);
    m_cb[p_instance->instance_id].state = NRF_DRV_STATE_POWERED_ON;
    NRF_LOG_INFO("Enabled instance: %d.", p_instance->instance_id);
}

I tested pwm library example in sdk and it is working fine. 

Parents
  • Hi,

    The assert indicates that the timer driver was not initialized by app_pwm_init(). Are you checking the return value from this function call to verify that the library was correctly initialized? 

    Note that the library does not use the dedicated PWM peripheral, but creates the output signal with TIMER+PPI+GPIOTE. I would recommend you to use the PWM driver instead

Reply
  • Hi,

    The assert indicates that the timer driver was not initialized by app_pwm_init(). Are you checking the return value from this function call to verify that the library was correctly initialized? 

    Note that the library does not use the dedicated PWM peripheral, but creates the output signal with TIMER+PPI+GPIOTE. I would recommend you to use the PWM driver instead

Children
Related