Flashstorage made for Duo

kasperv79
Mon Jan 09, 2017 9:54 pm
Flashstorage library made for Duo.
Can this be converted :)

https://github.com/sebnil/DueFlashStorage


RogerClark
Tue Jan 10, 2017 3:04 am
kasperv79 wrote:Flashstorage library made for Duo.
Can this be converted :)

https://github.com/sebnil/DueFlashStorage


mrburnette
Tue Jan 10, 2017 1:21 pm
RogerClark wrote:
Anything can be converted if you have the time.

kasperv79
Tue Jan 10, 2017 3:38 pm
RogerClark wrote:kasperv79 wrote:Flashstorage library made for Duo.
Can this be converted :)

https://github.com/sebnil/DueFlashStorage


Manny
Tue Jan 10, 2017 4:23 pm
This flash library works with STM32 https://github.com/Marzogh/SPIFlash there’s some others.

RogerClark
Tue Jan 10, 2017 8:58 pm
kasperv79 wrote:RogerClark wrote:kasperv79 wrote:Flashstorage library made for Duo.
Can this be converted :)

https://github.com/sebnil/DueFlashStorage


victor_pv
Fri Jan 13, 2017 10:28 pm
I had a look and that flash library is for “emulating” an eeprom by using a block of flash memory, since the DUE doesn’t have internal eeprom like the AVR does.

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
How much “flash” do you need?
How many times do you intend to re-write it?

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
RogerClark wrote:
AFIK
EEPROM is just a name given by the Arduino team, for code to allow you to write to the program Flash.

In reality there is only Flash on most MCUs


RogerClark
Sat Jan 14, 2017 8:35 am
Victor

Thanks for the clarification


kasperv79
Tue Jan 24, 2017 9:16 pm
Thanks for your reply’s.

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.


Leave a Reply

Your email address will not be published. Required fields are marked *