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

fstorage_sd fails to execute a FLASH operation

Hi,

we are porting code of our project from SDK 14.2 to SDK 15.3.0, and have encountered unexpected behavior from the fstorage module. Even though SoftDevice and BLE stack are initialized properly and all fstorage functions also return NRF_SUCCESS on each call, the actual FLASH operations are not executed.

The first operation is an attempt to erase one 4096 byte page of FLASH, the address of which is chosen so that it does not interfere with bootloader / FDS / application areas. nrf_fstorage_erase call returns NRF_SUCCESS, however nrf_fstorage_is_busy keeps returning true forever. This behavior has been replicated on nRF52832 and nRF52840 chips.

We have also tried using the fstorage_sd example project, however its behavior is also erroneous (or we are not using it right) as we are unable to store and retrieve string data, the string is either empty or has only few characters right, while the other ones are gibberish.

Thanks in advance for any tips.

Best regards,

PJ

Related