Flashstorage made for Duo
kasperv79 Mon Jan 09, 2017 9:54 pm
kasperv79 Mon Jan 09, 2017 9:54 pm
RogerClark Tue Jan 10, 2017 3:04 am
mrburnette Tue Jan 10, 2017 1:21 pm
kasperv79 Tue Jan 10, 2017 3:38 pm
Manny Tue Jan 10, 2017 4:23 pm
RogerClark Tue Jan 10, 2017 8:58 pm
victor_pv Fri Jan 13, 2017 10:28 pm
We already have a library for such, and I think there is some older thread commenting on it.
Also there is an example of using it:
Arduino_STM32/STM32F1/libraries/EEPROM/examples/EEPROM_example/EEPROM_example.ino
Word of caution, an eeprom can be written to many hundreds of thousands of times, while flash can be written to only a few thousand times.
Also to write a byte in flash you normally need to erase and rewrite the block. So a write to any byte in the block counts as a write to every byte of the block. If you plan on writing a value once a week and read it many times, you are probably ok, but if you plan on writing often, you may wear out the block of flash.
ahull Fri Jan 13, 2017 10:58 pm
The answer to those two questions will let us know what type of flash or eerom is best suited to your task.
victor_pv Sat Jan 14, 2017 3:54 am
In reality there is only Flash on most MCUs
RogerClark Sat Jan 14, 2017 8:35 am
Thanks for the clarification
kasperv79 Tue Jan 24, 2017 9:16 pm
Im aware of the rewrite cycles.
For this project its only a few integers I new to write 1-3 times a week. So I think the flash should be okay to use.