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

fs_event_handler callback is delayed


It takes time for fs_event_handler to be called back after nrf_fstorage_erase is executed.

In SDK13.1.0, it didn't take much time, but in SDK15.3.0 currently being developed, it takes time to be called back.

The priority cannot be set in the fstorage config of SDK15.3.0.
It is assumed that there is a delay due to not setting here.


*SDK13.1.0 
    FS_REGISTER_CFG(fs_config_t fs_config) =
    {
        .callback = fs_event_handler,
        .num_pages = PDL_PAGE_NUM,
        // We register with the highest priority in order to be assigned
        // the pages with the highest memory address (closest to the bootloader).
        .priority = 0xFE //***************this config*****************//
    };

*SDK15.3.0
    NRF_FSTORAGE_DEF(nrf_fstorage_t fs_mainte_config) =
    {
        .evt_handler = fs_event_handler,
        .start_addr = 0xD5000,
        .end_addr = 0xF6000,
    };

Parents Reply Children
No Data
Related