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

nrf flash_fstorage

hi. I use sdk16 and ble sample like kb or mouse.  i want to save some data in ic. with flash_fstorage. 

i see flash_fstorage example .it can use SOFTDEVICE_PRESENT for save.

but i use in ble sample, it can not save .it happen "app_error_fault_handler". 

if i do not use SOFTDEVICE_PRESENTflash_fstorage can save data .but if use  SOFTDEVICE_PRESENT in ble sample, it can not.

why? please.

Parents
  • Hi,

    You need to select the backend for fstorage when you initialize it. In the fstorage example, the SOFTDEVICE_PRESENT symbol is used to determine if the project is used with or without softdevice to initialize the correct backend. 

    How do you configure and initialize the fstorge library in the BLE example?

    If you build the application in debug mode (DEBUD flag defined) and have logging enabled, the exact function and error code should be output on the log when you end up in the error/fault handler.

    Best regards,
    Jørgen

Reply
  • Hi,

    You need to select the backend for fstorage when you initialize it. In the fstorage example, the SOFTDEVICE_PRESENT symbol is used to determine if the project is used with or without softdevice to initialize the correct backend. 

    How do you configure and initialize the fstorge library in the BLE example?

    If you build the application in debug mode (DEBUD flag defined) and have logging enabled, the exact function and error code should be output on the log when you end up in the error/fault handler.

    Best regards,
    Jørgen

Children
No Data
Related