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

Pstorage and device manager

Hi everybody.

I am making an application using ANCS, I saw that the original ANCS application saves some data to flash memory via device manager module and the parameters module are: block_size = 92, block_count = 7.

In my extent application, I would like to save other data which is got from BLE to flash memory with different parameter(block size, block count) using pstorage. Could you please show me how to config for the memory to avoid conflict with data from device manager module ?

Thank you very much!!!

Parents Reply Children
  • Chao Mr Hung. Thank you for your answer. I already read that topic and also implemented to my application. However, I curious about the difference between data of bonding (from device_manager) and my application data because of different parameter(i.e., block count and block size). I am worry about the overlapping between those two data will make this application not work well. So could you please show me how to solve that problem to avoid that overlapping. Thank you !

  • Hi Minh,

    It has been discussed in the documentation here.

    If you have data you want to store, you first have to register the "Application Module". With that module you can define number of block and number of byte per block. The pstorage module will automatically allocated a (or multiple) pages in flash for you and it's not overlapping the area occupied by other Module (for example the device manager module).

Related