Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash Data Storage (FDS): What is the Page size?

FDS_VIRTUAL_PAGE_SIZE

The size of a virtual flash page.

Expressed in number of 4-byte words. By default, a virtual page is the same size as a physical page. The size of a virtual page must be a multiple of the size of a physical page.

Following options are available:

  • 256 - 256 (nRF51 family only)
  • 512 - 512 (nRF51 family only)
  • 1024 - 1024
  • 2048 - 2048

http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__fds__config.html#ga94b7203878878277663b572bded3499d

So how do we know what the size of a physical page is?

I can't see any FDS API or symbolic definition that will give this - so do we just have to hard code it as a magic number?

Related