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

ble_app_uart -> Flash Data Storage

Hi,

I am developing an app using the base module "ble_app_uart". In our application we would like to store data in the flash memory.

I am using "Flash Data Storage" examples in my project and it stopped my BLE to advertise. I have attached my code, could any one help me how to store, update, delete and read in flash.main.c

Siva

Parents
  • My guess is that you have called fds_init() without waiting for the event FDS_EVT_INIT before calling the other fds functions. If I am right, those function call return values are FDS_ERR_NOT_INITIALIZED.

    To solve this, set a global flag in the fds event handler and only proceed to write/gc etc after that flag is set.

    Hope this helps,

    E

Reply
  • My guess is that you have called fds_init() without waiting for the event FDS_EVT_INIT before calling the other fds functions. If I am right, those function call return values are FDS_ERR_NOT_INITIALIZED.

    To solve this, set a global flag in the fds event handler and only proceed to write/gc etc after that flag is set.

    Hope this helps,

    E

Children
No Data
Related