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. So, I change the expression of this question. I assign my data to file id & key set like below.

    576 byte * 7 set(that is, 1 file id and 7 key, data size for 1 set is 576 byte, so total size is 4032 byte)
    
    774 byte * 1 set(that is, 1 file id and 1 key, data size for 1 set is 774 byte, so total size is 774 byte)
    
    691 byte * 2 set(that is, 1 file id and 2 key, data size for 1 set is 691 byte, so total size is 1382 byte)
    
    144 byte * 1 set(that is, 1 file id and 1 key, data size for 1 set is 144 byte, so total size is 144 byte)
    

    And I uses the peer manager.

    What is the enough number for FDS_VIRTUAL_PAGES to store all above data.

    (I have thought 1 file id & key set uses 1024 byte. This must be wrong according your(Mr. Petters') explanation.)

    Thank you.

Reply
  • Ok. So, I change the expression of this question. I assign my data to file id & key set like below.

    576 byte * 7 set(that is, 1 file id and 7 key, data size for 1 set is 576 byte, so total size is 4032 byte)
    
    774 byte * 1 set(that is, 1 file id and 1 key, data size for 1 set is 774 byte, so total size is 774 byte)
    
    691 byte * 2 set(that is, 1 file id and 2 key, data size for 1 set is 691 byte, so total size is 1382 byte)
    
    144 byte * 1 set(that is, 1 file id and 1 key, data size for 1 set is 144 byte, so total size is 144 byte)
    

    And I uses the peer manager.

    What is the enough number for FDS_VIRTUAL_PAGES to store all above data.

    (I have thought 1 file id & key set uses 1024 byte. This must be wrong according your(Mr. Petters') explanation.)

    Thank you.

Children
No Data
Related