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

Storing static passkey in flash

I have implemented static passkey onto ble_app_uart.

I would like to configure this passkey through uart, then store it in the flash. I am confused at the choices available - persistent storage, flash data storage, flash storage, section variables.

I have peer manager running on ble_app_uart. Peer manager uses fstorage and fds. Will using fstorage to store other config settings conflict with flash storage used by peer manager? What are things that I should take note?

Which is the recommended choice for my use case? Which is the most appropriate example I can refer to for storing passkey in flash? I am using SDK11 s130 on nRF51-dk.

Related