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

Alternative to use sd_flash_page_erase using FDS

Hi there,

On my project I was working using sd_flash_xxx functions to write the whole flash pages or erase it, so I added peer manager to my project and I had to switch my functions from sd_flash_xxx to FDS, because I was getting hangs on my code when using sd_flash.

Are there a sd_flash_page_erase equivalent using FDS?

How can I select the address to write or erase using FDS functions?

and What is the max number of pages I can use? can I use 40 pages? I was using 40 writing/erasing about 40 flash pages using sd_flash_xxx functions.

Thanks

Arepa

Parents
  • Hi Hung, I am using SDK 13. It looks nrf_fstorage_sd.c is only available for SDK 14 and not 13. When I added Fstorage to my project I used the fstorage_example_ascii as base. I read the ble_app_hrs, But I could find calls for fs_erase or fs_write. the only thing I found:

    // Dispatch the system event to the fstorage module, where it will be
    // dispatched to the Flash Data Storage (FDS) module.
    fs_sys_event_handler(sys_evt);
    

    That means I need to register a FDS callback for the fstorage events? instead of use fstorage callback?

Reply
  • Hi Hung, I am using SDK 13. It looks nrf_fstorage_sd.c is only available for SDK 14 and not 13. When I added Fstorage to my project I used the fstorage_example_ascii as base. I read the ble_app_hrs, But I could find calls for fs_erase or fs_write. the only thing I found:

    // Dispatch the system event to the fstorage module, where it will be
    // dispatched to the Flash Data Storage (FDS) module.
    fs_sys_event_handler(sys_evt);
    

    That means I need to register a FDS callback for the fstorage events? instead of use fstorage callback?

Children
No Data
Related