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.
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.
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
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
Oh right. I misunderstood the define, looking at the source, it is indeed correct. Thanks