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

stuck on sd_flash_write in with fstorage and fds libraries

Hi,

I tried to use fstorage to store some data in flash. From now, I was able to read and write data before advertising starts, but when I try to write data to flash after the ble_advertising_start(BLE_ADV_MODE_FAST) function, my code is stuck to the sd_flash_write function. I guess it is related to a problem of dealing with the softdevice for taking time to write to flash without disturbing the radio. I tried to use sd_ble_gap_adv_stop() to stop advertising before writing to the flash but the MCU is stuck at this function in that case, I think it's related to another problem.

For the moment I only try to store one word.

Could you please help me to solve this issue ?

I am using sdk v11, softdevice S130 and my target is an nRF51822-QFAC.

Best regards,

Guillaume

Related