- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In my proyect, addresses added to whitelist in peripheral are erased when turn off device.
Is there anyway to save this whitelist to flash memory and this way not to loose addresses in it ?
Thank you,
Asier.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When using bonding after pairing (set "Bonding requeriment: Bonding" in BLE component), whitelist is fill automatically. Then we can do CyBle_StoreBondingData function to write whitelist in RAM to the flash. When power fault reset, whitelist and bondlist will be updated from flash automatically.
If I had known those, I had solved some hours coding manually write/read operations in flash.
I hope this information keep somebody beginning not spending time.
Regards,
Asier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can write the addresses to user flash. Every time you power on the device, you can retrive the addresses from user flash and add them to the whitelist again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have any example for writing/reading SFlash ?
Thanks !!
Asier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When using bonding after pairing (set "Bonding requeriment: Bonding" in BLE component), whitelist is fill automatically. Then we can do CyBle_StoreBondingData function to write whitelist in RAM to the flash. When power fault reset, whitelist and bondlist will be updated from flash automatically.
If I had known those, I had solved some hours coding manually write/read operations in flash.
I hope this information keep somebody beginning not spending time.
Regards,
Asier.