Pages: [1]   Go Down
Author Topic: How to write data to internal EEPROM. Arduino due.  (Read 1904 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How to write data to internal EEPROM.  Arduino due.
Logged

Earth
Offline Offline
Sr. Member
****
Karma: 14
Posts: 331
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How to write data to internal EEPROM.  Arduino due.

Step 1. Put internal EEPROM into the Cortex M3 chip (carefully!)
Step 2. Use it.

In all seriousness, the Due has no EEPROM at all. There is the possibility to store things in the FLASH memory but, since it gets totally erased every time you program the Due, this is not ideal. So, really, if you need EEPROM you've got to put it on a shield.
Logged

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 230
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Step 1. Put internal EEPROM into the Cortex M3 chip (carefully!)
Hmm yes true, if someone can make an deal with the controller on the programming port as EEPROM.

In all seriousness, the Due has no EEPROM at all. There is the possibility to store things in the FLASH memory but, since it gets totally erased every time you program the Due, this is not ideal. So, really, if you need EEPROM you've got to put it on a shield.
If someone can mod the firmware for sending special commands over uart to let the controller know someone will use the EEPROM from the controller to store or get some data.
Logged

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

Another thread noted that the DUE board uses an ATmega16U2 to handle USB interface (instead of an FTDI chip on some other Arduinos).  The ATmega16U2 has EEPROM.    
http://arduino.cc/en/Main/arduinoBoardDue  states "... The 16U2 is also connected to the SAM3X hardware UART...."  .    
Can this be used ?
« Last Edit: August 15, 2013, 08:51:12 pm by CrunchyFrog » Logged

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you not use something like an SPI-interface magnetic FRAM? Speed of any other SRAM, but non-volatile.
Logged

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

Quote
The 16U2 is also connected to the SAM3X hardware UART...."  .   
Can this be used ?
Yes it could if someone writes the code for both ends.

Quote
Could you not use something like an SPI-interface magnetic FRAM?
Yes you could if someone writes the code.

I think I spot an opportunity for a bright young lad. smiley

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I may have the requirement for FRAM in a project I'm working on at the moment, i'll let you know over the next couple of days if I'll be going ahead, but with an SD card on the board aswell - it dosen't perhaps make sense to add more memory.
Logged

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

Quote
The 16U2 is also connected to the SAM3X hardware UART...."  .   
Can this be used ?
Yes it could if someone writes the code for both ends.

I think I spot an opportunity for a bright young lad. smiley

It requires a little software and hardware mod, but it works. See my writeup at http://forum.arduino.cc/index.php?topic=191298.0
Logged

Pages: [1]   Go Up
Jump to: