Hello everyone,
I have inherited a project from my coworker. It uses NRF51822 QFAAH0, SDK 4.4.2 and S110 5.2.1. My device is scheduled to: advertise, collect the data from a sensor.
Now I would like to store sensor data in flash then transfer them via BLE if there is a connection. As I have searched in this forum: fstorage, pstorage are preferred (to avoid conflicts between flash writing and BLE communcation). However, due to some reasons, I still have to use SDK 4.4.2 and S110 5.2.1 instead of other SDKs and Softdevices which support fstorage and pstorage functions.
My question is:
- In my case (SDK 4.4.2 and S110 5.2.1), how can I store data in flash?
- Could someone explain the use of flash_word/page_write function? I saw it is used in ble_bondmngr.c but I can't find and document about it. This may be a solution for me. If yes,
- Can I define a fixed area in my flash for storing data? BLE may use some spaces in flash for storing its own bonding and attribute information. And I don't want them to be stored in my data area.
Thank you for spending time.
Best regards.