wait_for_flash_ready(&fstorage)

Hi,

I am trying to store a data using fstorage, but the code gets stuck at  wait_for_flash_ready(&fstorage) when called outside the main().

Kindly help me to solve the issue.

nRFMesh v5

nRFDDK v117

Hardware : nRF52 DK

Regards,

Zolu

Parents
  • Hi,

    I have tried calling the erase and write function along with wait_for_flash_ready(&fstorage) in main() and now I am able to write the data, but getting an error "Event received: ERROR while executing an fstorage operation." while erasing.

    The very first time after programming the board it's working fine, but when I am trying to store any other data (second cycle) it's throwing error.

    Kindly help.

    Regards,

    Zolu

Reply
  • Hi,

    I have tried calling the erase and write function along with wait_for_flash_ready(&fstorage) in main() and now I am able to write the data, but getting an error "Event received: ERROR while executing an fstorage operation." while erasing.

    The very first time after programming the board it's working fine, but when I am trying to store any other data (second cycle) it's throwing error.

    Kindly help.

    Regards,

    Zolu

Children
Related