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.

  • I store 1 bond.

    data with the bond is like below.


    define SEC_PARAM_BOND 1 /**< Perform bonding. */

    define SEC_PARAM_MITM 1 /**< Man In The Middle protection not required. */

    define SEC_PARAM_LESC 0 /**< LE Secure Connections not enabled. */

    define SEC_PARAM_KEYPRESS 0 /**< Keypress notifications not enabled. */

    define SEC_PARAM_IO_CAPABILITIES BLE_GAP_IO_CAPS_DISPLAY_ONLY /**< No I/O capabilities. */

    define SEC_PARAM_OOB 0 /**< Out Of Band data not available. */

    define SEC_PARAM_MIN_KEY_SIZE 7 /**< Minimum encryption key size. */

    define SEC_PARAM_MAX_KEY_SIZE 16 /**< Maximum encryption key size. */

Reply
  • I store 1 bond.

    data with the bond is like below.


    define SEC_PARAM_BOND 1 /**< Perform bonding. */

    define SEC_PARAM_MITM 1 /**< Man In The Middle protection not required. */

    define SEC_PARAM_LESC 0 /**< LE Secure Connections not enabled. */

    define SEC_PARAM_KEYPRESS 0 /**< Keypress notifications not enabled. */

    define SEC_PARAM_IO_CAPABILITIES BLE_GAP_IO_CAPS_DISPLAY_ONLY /**< No I/O capabilities. */

    define SEC_PARAM_OOB 0 /**< Out Of Band data not available. */

    define SEC_PARAM_MIN_KEY_SIZE 7 /**< Minimum encryption key size. */

    define SEC_PARAM_MAX_KEY_SIZE 16 /**< Maximum encryption key size. */

Children
No Data
Related