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

Peer manager flash write disabling

Hello,

i am writing an application which uses the SDK13 peer manager library for bonding. The Nordic chip is acting as a peripheral.

Is there an easy way to prevent the peer manager from saving every change to flash memory? For instance, when enabling notifications from the central device, the CCCD descriptor write is saved to flash every time, which consumes time and battery capacity. And, considering that the notification state is per connection, the same operation is performed whenever notifications are enabled on a new connection.

Also, the bonding data in case of the application i am working on is deleted after every connection, so the flash writes related to bonding are also quite redundant.

I can of course comment out all flash related operations from the peer manager, which produces quite a lot of test cases, so it would be best if i could just disable the flash usage from the SDK or module configuration.

It seems like the peer manager is lacking a configuration option for disabling flash memory usage when deemed not necessary by the programmer, or i just have not found it.

So, is there such an option? If such an option does not yet exist, would it be possible to be included in future SDK revisions?

BR, tommi

Related