Why do we need this FlashStorage_RTL8720 library
Features
The FlashStorage_RTL8720 library, inspired by Cristian Maglie's FlashStorage, provides a convenient way to store and retrieve user's data using FlashStorage, from the non-volatile flash memory of Realtek RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards.
The flash memory, generally used to store the firmware code, can also be used to store / retrieve more user's data and faster than from EEPROM. Thanks to the buffered data writing and reading, the flash access time is greatly reduced to increase the life of the flash.
Currently supported Boards
- Realtek RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards
Changelog
Releases v1.0.0
- Initial release to support Realtek RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards
Examples
- FlashStorage_Clear
- FlashStorage_CRC
- FlashStorage_get
- FlashStorage_iteration
- FlashStorage_put
- FlashStorage_read
- FlashStorage_update
- FlashStorage_write
- FlashStoreAndRetrieve
- StoreNameAndSurname
Example StoreNameAndSurname on Rtlduino RTL8720DN
1.1 First Start
Start StoreNameAndSurname on Rtlduino RTL8720DN
FlashStorage_RTL8720 v1.0.0
FlashStorage length: 4096
EEPROM is empty, writing WRITTEN_SIGNATURE and some example data:
Insert your name : First_Name
Insert your surname : Last_Name
<< Your name: First_Name. Your surname: Last_Name >> have been saved. Thank you!
1.2 After Restart
Start StoreNameAndSurname on Rtlduino RTL8720DN
FlashStorage_RTL8720 v1.0.0
FlashStorage length: 4096
Hi First_Name Last_Name, nice to see you again :-)
Clearing WRITTEN_SIGNATURE for next try
Done clearing signature in FlashStorage. You can reset now