Loading...
Pages: [1]   Go Down
Author Topic: EEPROM  (Read 1897 times)
0 Members and 1 Guest are viewing this topic.
São Paulo / Brasil
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello!

The DUE has a EEPROM ?

What is the capacity of it?

If not, is there another memory to replace it?

The library EEPROM.h is still valid?

Best regards.

Fernando Garcia

Logged

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 73
Posts: 6838
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No EEPROM but there is the ability with ARMs to do IAP (In Application Programming) which writes into flash. This could be used for non-volatile storage but someone will have to write the code. Maybe the Arduino guys have converted the EEPROM library to do this.

______
Rob
Logged

Rob Gray aka the GRAYnomad http://www.robgray.com

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 73
Posts: 6838
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Maybe the Arduino guys have converted the EEPROM library to do this.
It doesn't look like they have, I can't see any reference to a new EEPROM library and the old EEPROM.h file is the same as is always was. Maybe it's buried somewhere too obscure for my greps.

______
Rob
Logged

Rob Gray aka the GRAYnomad http://www.robgray.com

Forum Administrator
Milano, Italy
Offline Offline
Full Member
*****
Karma: 19
Posts: 210
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

actually there is no EEPROM support on the Due.

Graynomad, i see some difficult to develop a drop-in replacement of EEPROM lib because:
- 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.

Said that, the idea of using the Flash memory is not bad, and using the EEFC device of SAM3X should be not too hard to create a simple FLASH library, maybe with a slightly different API from EEPROM that take in consideration the limits above.

C
Logged

C.

Offline Offline
Sr. Member
****
Karma: 23
Posts: 446
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

IIRC the 16u2 has a small EEPROM, but to access that from the SAM3X it would need some special firmware and some means of communicating between the two.
Logged


North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 31
Posts: 1193
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
- 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.

Hmm, one thing I'm considering for a project is a kind of pseudo virtual memory manager so I can safely use dynamic memory with only one allocation at app start. This 'IAP' could be some memory shortage fail safe when used for paging.

Can probably be used as a resource repository / registry. So many cool things I want to try.
Logged


São Paulo / Brasil
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello!
Thanks for the replies.
Just do not understand how important things like this were not implemented before the release of the product.

Best regards.
Fernando Garcia
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just do not understand how important things like this were not implemented before the release of the product.

Because if everyone was satisfied before it released it never would. It's not difficult to write a EEPROM library that uses the flash. I'm already working on one.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 277
Posts: 25556
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Just do not understand how important things like this were not implemented before the release of the product.
Because the arduino is a development platform. However people seem to think that all trivial things should be presented as a library. There have been many years of unnecessary trivial function library development for the existing system, you can't expect that over night.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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! smiley
Logged

Pages: [1]   Go Up
Print
 
Jump to: