Hi,
I am seeing some random behavior on FDS write:
1.sometimes it won't receive any callback for 2 seconds
19:57:49 - logMessage: "Fds_Write_Async 2"
19:57:51 - logMessage: "Fds_write timeout"
Hi,
I am seeing some random behavior on FDS write:
1.sometimes it won't receive any callback for 2 seconds
19:57:49 - logMessage: "Fds_Write_Async 2"
19:57:51 - logMessage: "Fds_write timeout"
Hello,
If you are using FreeRTOS you should be aware that FDS is not thread safe by itself, so I know there are some special considerations that should be done before and after executing FDS calls. If you think it may be FreeRTOS related, I may need to transfer this case to someone with in-depth experience with FreeRTOS.
1.sometimes it won't receive any callback for 2 seconds
Typically flash operations have the second lowest (fourth) priority compared to other softdevice activities, see here:
https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/priorities_and_events_intro.html
Can it be that you have other activities with high priorities that may delay or cause the flash operation to timeout? If you experience timeout you may try to increase NRF_FSTORAGE_SD_MAX_RETRIES.
If the activity that prevents the flash operations to be executed immediately is stopped, you may suddenly get multiple flash operations completed in a row afterwards. They may have been queued until success.
Best regards,
Kenneth