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

problem with bond and pstorage............?

hai, i am using mbed to program my nrf51822.

i need the following requirements

1.store some data on nrf51822 flash memory using pstorage.

2.setup bonding for security using securitymanager.

now i am able to do both these separately. but when i combine this two there are some issues with the flash memory. when i use a single page of flash for store my data then the bonding information overwrite my data in flash. so i have initialised two pages and the second page is used for data storage. but the store and load operations failed when the load and store functions called before the initialisation of ble. but which works fine if the store and load functions are called after ble initialisation. but i need the data from flash to initialise the ble.

so i need to know the following information

  1. can i assign some portion of memory for bonding information.
  2. why i can't load data from flash before initialise ble.