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

fstorage is busy appears when BLE sends and receives data

ble_app_uart_test_fst_is_busy.rar

I use SDK16.

test fstorage write data.I find fstorage is busy appears when BLE sends and receives data.

for example main.c :

line 206:  fst_erase_test();
line 207:  NRF_LOG_INFO("FST Test.");

I don't know how.pls help me. thank you!

Parents Reply
  • Hi,

    fstorage calls the SoftDevice flash API's, so you cannot give it higher priority than the event handler where you are waiting for it in now (which is also given by the SoftDevice priorities). Instead, you should wait for it outside of an interrupt context, i.e.: in your main loop. This is a common mistake, and the golden rule is that whenever you wait for something, you must wait in a lower priority (prefrably thread mode / main context).

Children
Related