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
  • It is line 189 in timeslotmanager. This happens when I pause the program when dubbging(Which is how I force a fault to test the fault logging function) but it also happens some times when i run the program. I think it may have something to do with flash writes that locks the chip for some time which results in my timeslot deadline not beeing met.

Reply
  • It is line 189 in timeslotmanager. This happens when I pause the program when dubbging(Which is how I force a fault to test the fault logging function) but it also happens some times when i run the program. I think it may have something to do with flash writes that locks the chip for some time which results in my timeslot deadline not beeing met.

Children
No Data
Related