Pages: [1]   Go Down
Author Topic: Feeding the UNO EEPROM with external software through USB  (Read 1387 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 1
Posts: 140
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I am interested in feeding the EEPROM (and only them) with a software without uploading the complete source code and writing through the EEPROM library. I do not know where to start so any hints or tutorials are welcome.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I do not know where to start
I think you are making an assumption that this is possible. I don't think that it is. There is no connection between the USB to serial chip and the EEPROM memory on the ATMegaXXX chip.
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 140
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So there is NO way of feeding data into the EEPROM through FTDI? I need to accept that...  smiley-sad

May there is a back-door. Here is my idea:
I send the following to the Arduino through the USB: 4711 12 5
Arduino send the confirmation back sending:          12 5

Arduino interprets 4711 as command for writing into the EEPROM. And the values to be written would be 12 and 5. May a mor unique number than 4711 would be good...

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Here is my idea:
I send the following to the Arduino through the USB: 4711 12 5
Arduino send the confirmation back sending:          12 5

Arduino interprets 4711 as command for writing into the EEPROM. And the values to be written would be 12 and 5. May a mor unique number than 4711 would be good...
That will work, with the right code. Instead of a number to indicate "WriteToEEPROM", you could use a string, like "qUfRisP4yt" (Or maybe WriteToEEPROM).
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 27363
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need a part of your "message protocol" to be the address in EEPROM that the bytes are to be written to.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Full Member
***
Karma: 1
Posts: 140
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Right- the variables reflecting a specific EEPROM address will be filled one after another when sending the data

4711 12 5 7 9

4711--> write to eeprom
12   -->variable 1--> EEPROM position 1
5     -->variable 2--> EEPROM position 2
7....

Another dataset
4712 12 5 7 9

4711--> write to eeprom
12   -->variable 10--> EEPROM position 10
5     -->variable 11--> EEPROM position 11
7....
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 27363
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So the last digit of 4711, 4712, is to keep track of where the message is to go?
Will there be some end character so if comm's get messed up the receiving arduino can recognine that and respond accordingly, or ignore the message, or similar?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: