Maybe the Arduino guys have converted the EEPROM library to do this.
- To modify a single byte of flash memory you are forced to rewrite an entire "page", (that is 256 bytes).- Before writing a "page" of flash memory you need to erase it, so you should read temporary in RAM the old flash content, start erase, apply the changes in ram and finally write the updated page.
Just do not understand how important things like this were not implemented before the release of the product.
Hi there!I just got my brand new Arduino Due and realized the hard way that the EEPROM library is no longer supported.Are there any news on EEPROM-equivalent functionality being supported?Thanx in advance!
// write the value 123 to address 0dueFlashStorage.write(0,123);// read byte at address 0byte b = dueFlashStorage.read(0);
Fantastic! The in ability to save to a permanent store on the DUE has always been its down fall in my eyes.Ill be trying this out for a few projects soon Question, there's 512KB of Flash on the DUE.Does this library use the final (1kb? 2KB? 5KB?) for use with the library or do you define this during initialising of the sketch?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16