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

Fstorage erase/write event callback function not invoked

Hi,

 I am using fstorage api and for write and erase operations I am not receiving events. The event callback function is not invoked. I am using SDK 16.0.0.

In the sdk_confic.c the below macros are enabled

NRF_SDH_ENABLED

NRF_FSTORAGE_SD_ENABLED

NRF_SOC_ENABLED

Soft device is enabled in my application. I checked the map file nrf_fstorage.c, nrf_fstorage_sd, nrf_sdh_soc.c, nrf_sdh.c, nrf_sdh_ble.c  are included in the project and compiled. 

What am I missing in the setting? Could you help me to fix this problem?

Thanks.

 

Parents
  • Thanks, Jared. The above issue is resolved. I was calling fstorage functions when interrupts are disabled. So, fstorage call back function wasn't catching the events.

    I have one more question. I am using nrf_fstorage_sd as a backend. so If softdevice is not enabled/initialized then calling fstorage to erase and write function will create any problems? Like throwing exceptions, or nrf_fstorage_is_busy(p_fstorage) always returning true, or write/erase events don't happen.

Reply
  • Thanks, Jared. The above issue is resolved. I was calling fstorage functions when interrupts are disabled. So, fstorage call back function wasn't catching the events.

    I have one more question. I am using nrf_fstorage_sd as a backend. so If softdevice is not enabled/initialized then calling fstorage to erase and write function will create any problems? Like throwing exceptions, or nrf_fstorage_is_busy(p_fstorage) always returning true, or write/erase events don't happen.

Children
Related