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

For Flash operation in nRF51822,PSTROEAGE program have limited question.

Hell. I will use flash from pstoreage.c . but seem to only use for bondmange. I find an define: #define PSTORAGE_MAX_APPLICATIONS 2 This is just for "mp_flash_bond_info" and "mp_flash_sys_attr", if I add my application, is it OK? I can use pstoreage.c for my flash application. above SD110 v6.0.0 and SDK 5.1.0. Thanks!

Parents
  • Hi James,

    PSTORAGE_MAX_APPLICATIONS is a part of the platform file to permit configuration based on requirement. Therefore, if you want to add one or more modules that needs to use flash, you should configure PSTORAGE_MAX_APPLICATIONS according to your requirement.

    If you look at alert notification example that also requires persistent data storage of bonded ANS serves, it uses a PSTORAGE_MAX_APPLICATIONS of 3, 2 for bond manager and for ANS client. Hope this helps!

Reply
  • Hi James,

    PSTORAGE_MAX_APPLICATIONS is a part of the platform file to permit configuration based on requirement. Therefore, if you want to add one or more modules that needs to use flash, you should configure PSTORAGE_MAX_APPLICATIONS according to your requirement.

    If you look at alert notification example that also requires persistent data storage of bonded ANS serves, it uses a PSTORAGE_MAX_APPLICATIONS of 3, 2 for bond manager and for ANS client. Hope this helps!

Children
No Data
Related