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

nRF52832 reset when wakeUp from sd_app_evt_wait()

Hello Nordic team,

I am working on nRF52832 chip. My device goes in power_manage mode. Device wakeUp on pin interrupt but when pin interrupt occur device first reset and then execute the interrupt handler.

Could you please help me to resolve this issue? I am using hrs_dfu, SDK-11.

I have the same question as below link:

https://devzone.nordicsemi.com/f/nordic-q-a/15711/sd_app_evt_wait-resets-nrf52832/59980#59980

Thanks,

Rajneesh

  • Hello,

    Are you sure that you are only in the sd_app_evt_wait(), and not in sd_power_system_off(), which is called after the advertising timeout, APP_ADV_TIMEOUT_IN_SECONDS, times out?

    Because in the sd_power_system_off() state, you will get a reset on wakeup.

     

    I read through the case that you linked to. Are you debugging while this is happening? Is this happening after you hit a breakpoint? This will cause the softdevice to miss some time critical operations, which will cause an assert, and a reset.

     

    Another possible issue is that one of your APP_ERROR_CHECK(err_code); gets an err_code != 0 (NRF_SUCCESS), which may also cause a reset, depending on your project settings.
    Try to define "DEBUG" in your preprocessor defines, and set a breakpoint on line 54 in app_error.c. If it stops there, then it is in fact an APP_ERROR_CHECK() that has caught an error.

    If you look at the .line_num, .p_file_name and .err_code, it should give you some information on where the error is located.

     

    Best regards,

    Edvin

     

Related