Spark Logic

Replies

mrburnette Tue Jan 10, 2017 1:21 pm

RogerClark wrote:
Anything can be converted if you have the time.

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.

Sign in to reply