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

Peer Manager: FDS_VIRTUAL_PAGES set to 3?

Hello,

the FDS_VIRTUAL_PAGES is set to 3 in all examples which use the Peer Manager module. The parameter's comment says

Number of virtual flash pages to use. One of the virtual pages is reserved by the system for garbage collection. Therefore, the minimum is two virtual pages: one page to store data and one page to be used by the system for garbage collection. The total amount of flash memory that is used by FDS amounts to (FDS_VIRTUAL_PAGES * FDS_VIRTUAL_PAGE_SIZE * 4 bytes):

So one page is the Peer Manager's FDS, one is for garbage collection. What is the extra page?

The original Device Manager + Pstorage combo required just two pages (data and swap).

Thank you,

Adam

Related