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

FDS_PHY_PAGES_RESERVED in fds_internal_defs.h

Line 93 in SDK/components/libraries/fds/fds_internal_defs.h

#define FDS_PHY_PAGES_RESERVED      ((FDS_VIRTUAL_PAGES_RESERVED * FDS_VIRTUAL_PAGE_SIZE) / FDS_PHY_PAGE_SIZE)

doesn't seem to be right.

Parents
  • Hi,

    In what way does it not seem to be right?

    * FDS_PHY_PAGES_RESERVED is the number of actual flash pages needed.
    * FDS_VIRTUAL_PAGES_RESERVED is the number of "virtual pages".
    * FDS_VIRTUAL_PAGE_SIZE is the size of one "virtual page".
    * FDS_PHY_PAGE_SIZE is the size of one actual flash page.

    To me the calculation looks right.

    Regards,
    Terje

Reply
  • Hi,

    In what way does it not seem to be right?

    * FDS_PHY_PAGES_RESERVED is the number of actual flash pages needed.
    * FDS_VIRTUAL_PAGES_RESERVED is the number of "virtual pages".
    * FDS_VIRTUAL_PAGE_SIZE is the size of one "virtual page".
    * FDS_PHY_PAGE_SIZE is the size of one actual flash page.

    To me the calculation looks right.

    Regards,
    Terje

Children
Related