BLE + FDS write fail

Hi,

     I have a problem, When I first initialize Bluetooth and then initialize FDS for writing, it will fail. However, if I first initialize FDS and write data ,it is OK,  then initialize Bluetooth, the two peripherals are normal,

that is why? what  I  use package is  "nRF5_SDK_17.0.2"  and  I  used FDS backend.

Thanks!

Parents
  • Hi,

    The order of initialization should not matter. The only thing I can think of is if the issue here is using FDS before and after the SoftDevice is enabled. If you use the fstorage implementation which is intended to be used without SoftDevice (nrf_fstorage_nvmc.c), that will not work when the SoftDevice is enabled. And similarly, the backend that is ntended to be sued with a SoftDevice (nrf_fstorage_sd.c) will not work without it.

    I would double check that you use nrf_fstorage_sd.c, and that you enable the SotDevice before you initialize FDS. This is the approach that is used in all the SDK exmaples that support pairing, for instance. There FDS is enabled as part of enabling the peer manager library, which is done after enabling the SoftDevice.

    If this does not help, then please let me know a bit more about your application (order of initialization), and elaborate on how things fail (for instance "function X returns error code Y").

Reply
  • Hi,

    The order of initialization should not matter. The only thing I can think of is if the issue here is using FDS before and after the SoftDevice is enabled. If you use the fstorage implementation which is intended to be used without SoftDevice (nrf_fstorage_nvmc.c), that will not work when the SoftDevice is enabled. And similarly, the backend that is ntended to be sued with a SoftDevice (nrf_fstorage_sd.c) will not work without it.

    I would double check that you use nrf_fstorage_sd.c, and that you enable the SotDevice before you initialize FDS. This is the approach that is used in all the SDK exmaples that support pairing, for instance. There FDS is enabled as part of enabling the peer manager library, which is done after enabling the SoftDevice.

    If this does not help, then please let me know a bit more about your application (order of initialization), and elaborate on how things fail (for instance "function X returns error code Y").

Children
No Data
Related