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

Flash write with SDK 4.4.2 + S110 5.2.1

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:

  1. In my case (SDK 4.4.2 and S110 5.2.1), how can I store data in flash?
  2. 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,
  3. 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.

Parents
  • Thank you for your reply. What is the risk of using incompatible SDK and SD for chip revision? I'm sorry for this question since I'm really new for Nordic chip.

    One more question is: Can I upgrade the SoftDevice and Bootloader over the air? Some boards are now fixed in the machine so I can't plug it out to upgrade SD and botloader. It's the reason why I have to use current SDK and SD.

Reply
  • Thank you for your reply. What is the risk of using incompatible SDK and SD for chip revision? I'm sorry for this question since I'm really new for Nordic chip.

    One more question is: Can I upgrade the SoftDevice and Bootloader over the air? Some boards are now fixed in the machine so I can't plug it out to upgrade SD and botloader. It's the reason why I have to use current SDK and SD.

Children
No Data
Related