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

I don't know softdevice error reason.

Hello, Nordic!

I'm developing with nrf52840, s340, sdk 15.3.0

I made my app_error_fault_handler. It is very good for me.

I sometimes got an error. So I saw that log 

Received a fault! id: 0x00004001, pc: 0x00000000, info: 0x2003e9b4
ERROR 4 [NRF_ERROR_NO_MEM]

pc is softdevice region so I don't know the reason why to happen.

Let me know how to deal pleaze.

Thank you

Parents
  • I believe you are experiencing an assert in the application, NRF_ERROR_NO_MEM is a very common softdevice return error code while developing your project. I think you need to check that you have defined DEBUG and are using the app_error_fault_handler() as implemented in the SDK, then you can:

                assert_info_t * p_info = (assert_info_t *)info;
                NRF_LOG_ERROR("ASSERTION FAILED at %s:%u",
                              p_info->p_file_name,
                              p_info->line_num);

Reply
  • I believe you are experiencing an assert in the application, NRF_ERROR_NO_MEM is a very common softdevice return error code while developing your project. I think you need to check that you have defined DEBUG and are using the app_error_fault_handler() as implemented in the SDK, then you can:

                assert_info_t * p_info = (assert_info_t *)info;
                NRF_LOG_ERROR("ASSERTION FAILED at %s:%u",
                              p_info->p_file_name,
                              p_info->line_num);

Children
Related