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

sd_softdevice_disable in hardfault.

Hi, I want to logg faults on my system so in the app_error_handler I want to store some data to flash. This location in flash is erased earlier when no error was present so I only want to do a write here. I want to call sd_softdevice_disable and then nrf_nvmc_write_bytes but sd_softdevice_disable hangs the system. Is there any other way to shut down the softdevice that I can do while in error state?

Parents
  • You cannot call softdevice calls in softdevice assert handler. Softdevice assert handler is running in the hard_fault context. That explains the system lock up. I am more concerned about the softdevice_assert that was triggered. That should not have happened in normal conditions. Can you tell me the file_name and line number values in sd_assert_handler? how and when was it triggered?

Reply
  • You cannot call softdevice calls in softdevice assert handler. Softdevice assert handler is running in the hard_fault context. That explains the system lock up. I am more concerned about the softdevice_assert that was triggered. That should not have happened in normal conditions. Can you tell me the file_name and line number values in sd_assert_handler? how and when was it triggered?

Children
No Data
Related