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
  • On nRF52 chip, each flash page is 4kB so 40000 pages equal 160 MB, I don't think our chip could have that much of flash :)

    If you want to access flash directly, please use fstorage. You can declare your own area of flash that you want to use with fstorage. fds also use fstorage as it back end.

    You can use any flash page as long as it's not softdevice, or application. Basically any page after your application and before the area where peer manager data located (usually right before the bootloader or the end of the flash if there isn't any bootloader)

Reply
  • On nRF52 chip, each flash page is 4kB so 40000 pages equal 160 MB, I don't think our chip could have that much of flash :)

    If you want to access flash directly, please use fstorage. You can declare your own area of flash that you want to use with fstorage. fds also use fstorage as it back end.

    You can use any flash page as long as it's not softdevice, or application. Basically any page after your application and before the area where peer manager data located (usually right before the bootloader or the end of the flash if there isn't any bootloader)

Children
No Data
Related