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

Softdevice assertion failed!

I am writing some code for a customer using the nrf52840.

The Softdevice asserts immediately after a call to nrf_fstorage_write().

The write address is OK, alignment is OK, size is multiple of 4. 

nrf_fstorage_erase() works perfectly. 

nrf_fstorage_write() returns success. I never get the callback. I get
app: SOFTDEVICE: ASSERTION FAILED
Looking for a fix.
Regards,
Raz
UPDATE: I just figured out that if I write 3600 bytes in one call to nrf_fstorage_write() it works. If I write 4096 it crashes. I should be able to write 4096 since I have this
#define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
Related