-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheeprom-serial
28 lines (15 loc) · 990 Bytes
/
eeprom-serial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
=== dump (read and view) eeprom ===
$ avrdude -c arduino -p atmega328p -P /dev/ttyACM0 -U eeprom:r:main.eep:i
$ cat main.eep
Konvertieren zu Text z.B.: http://www.rapidtables.com/convert/number/hex-to-ascii.htm
=== modify eeprom ===
"But you can always create a hex file (e.g. INTEL Hex records) containing just the single byte with the address you need to change."
$ nano main.eep
$ avrdude -c arduino -p atmega328p -P /dev/ttyACM0 -U eeprom:w:main.eep
Z.B. um UID mit Informationen wie Herstellungs-/Kaufdatum etc., Beispiel: "=/x2a03000002x0043=,000220=ArduinoUnoR0300=}017001&,16343137393518101C1"
(Länge = 31)
Soll am Ende des EEPROM stehen. Praktisch ist wenn dazu kein Sketch nötig ist.
Siehe dazu Tabelle: UDI-Generator-v1.0.xlsx
== links ==
http://logbuch.dmaertens.de/elektronik-hardware/microcontroller/eeprom-eines-microcontrollers-mit-avrdude-auslesen-und-beschreiben
https://electronics.stackexchange.com/questions/74673/avrdude-write-eeprom-bytes-without-file