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

How large is the size peer manager uses?

I'm trying to determine DFU_APP_DATA_RESERVED and FDS_VIRTUAL_PAGES. According to this Q&A, DFU_APP_DATA_RESERVED must be the same FDS_VIRTUAL_PAGES, if FDS_VIRTUAL_PAGE_SIZE is 1024.

My application uses 11 pages, so 11+the size peer manager uses must be FDS_VIRTUAL_PAGES( and DFU_APP_DATA_RESERVED). Is this right?

However, I cannot find how large size peer manager uses is.

Would you tell me the size?

Parents
  • Where did you get "if FDS_VIRTUAL_PAGE_SIZE is 1024" from?

    Do you want to reserve your complete application? Don't you just wanted to reserve the part of flash that FDS uses?

    You should find the value of FDS_VIRTUAL_PAGES in your application, you can search for it, but usually it is found in sd_config.h, and unmodified the value is 3. Then DFU_APP_DATA_RESERVED should be set to 3.

  • Ok.

    FDS_VIRTUAL_PAGES should be whatever you set it to. I can't tell you how many flash pages you need to store you application data in addition to other data (the Peer Manager uses FDS to store bond information for example). Please be aware that this is a file system, it is not 11 pages for application and 2 pages for Peer Manager, they share 13 pages of flash (if FDS_VIRTUAL_PAGES is set to 14 (one page is swap page)).

    DFU_APP_DATA_RESERVED should be set equal to FDS_VIRTUAL_PAGES yes.

Reply
  • Ok.

    FDS_VIRTUAL_PAGES should be whatever you set it to. I can't tell you how many flash pages you need to store you application data in addition to other data (the Peer Manager uses FDS to store bond information for example). Please be aware that this is a file system, it is not 11 pages for application and 2 pages for Peer Manager, they share 13 pages of flash (if FDS_VIRTUAL_PAGES is set to 14 (one page is swap page)).

    DFU_APP_DATA_RESERVED should be set equal to FDS_VIRTUAL_PAGES yes.

Children
No Data
Related