Forum: Mikrocontroller und Digitale Elektronik Zigbit mit Jtag ICE MKI programmieren


von Johannes (Gast)


Lesenswert?

Hallo zusammen,
Ich wollte mein Zigbit Modul Mit dem Olimex AVR-JTAG-USB (ist ein jtag 
ice mk1 clone) programieren. Meine selbst programmierten files konnte 
ich weder mit avrdude noch mit avrStudio schreiben.
avrdude ausgabe:
1
avrdude  -c jtag1 -P /dev/tty.usbserial-A3000SMQ -p m1281 -U flash:w:Blinktest.rom:r -D
2
3
avrdude: jtagmkI_initialize(): warning: OCDEN fuse not programmed, single-byte EEPROM updates not possible
4
avrdude: AVR device initialized and ready to accept instructions
5
6
Reading | ################################################## | 100% 0.05s
7
8
avrdude: Device signature = 0x1e9704
9
avrdude: reading input file "Blinktest.rom"
10
avrdude: writing flash (306 bytes):
11
12
Writing | ################################################## | 100% 0.35s
13
14
avrdude: 306 bytes of flash written
15
avrdude: verifying flash memory against Blinktest.rom:
16
avrdude: load data flash data from input file Blinktest.rom:
17
avrdude: input file Blinktest.rom contains 306 bytes
18
avrdude: reading on-chip flash data:
19
20
Reading | ################################################## | 100% 0.22s
21
22
avrdude: verifying ...
23
avrdude: verification error, first mismatch at byte 0x0000
24
         0x0c != 0x00
25
avrdude: verification error; content mismatch
26
27
avrdude: safemode: Fuses OK
ich hatte allerdings zu beginn eine Sicherung des Flash und eeproms 
ausgelesen. Wenn ich diese zurückspiele kommt es zu keiner 
Fehlermeldung.
1
avrdude  -c jtag1 -P /dev/tty.usbserial-A3000SMQ -p m1281 -U flash:w:../../sicherung-zigbit/flash.raw:r
2
3
avrdude: jtagmkI_initialize(): warning: OCDEN fuse not programmed, single-byte EEPROM updates not possible
4
avrdude: AVR device initialized and ready to accept instructions
5
6
Reading | ################################################## | 100% 0.05s
7
8
avrdude: Device signature = 0x1e9704
9
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
10
         To disable this feature, specify the -D option.
11
avrdude: erasing chip
12
avrdude: jtagmkI_initialize(): warning: OCDEN fuse not programmed, single-byte EEPROM updates not possible
13
avrdude: reading input file "../../sicherung-zigbit/flash.raw"
14
avrdude: writing flash (131072 bytes):
15
16
Writing | ################################################## | 100% 32.76s
17
18
avrdude: 131072 bytes of flash written
19
avrdude: verifying flash memory against ../../sicherung-zigbit/flash.raw:
20
avrdude: load data flash data from input file ../../sicherung-zigbit/flash.raw:
21
avrdude: input file ../../sicherung-zigbit/flash.raw contains 131072 bytes
22
avrdude: reading on-chip flash data:
23
24
Reading | ################################################## | 100% 29.15s
25
26
avrdude: verifying ...
27
avrdude: 131072 bytes of flash verified
28
29
avrdude: safemode: Fuses OK
Hat jemand ne Idee woran das liegen kann?

Grüsse Johannes

von Johannes (Gast)


Lesenswert?

Hi,
Falls noch jemand anderes das gleiche Problem bekommen solte.
Der Mikrokontroller Atmega1281 ist nicht mit JTAG ICE mkI kompatible 
(warum auch immer, wäre cool wenn mir jemand in diesem fall erklären 
könnte warum nicht.) Man könnte es zwar vermuten weil avrdude und 
avrStudio das teil nährungsweise (device id, fuse bits) auslesen können. 
Aber wenn man sich das ausgelesene Image des flash speicher von avrdude 
anschaut stellt man fest das dort nur nullen drinstehen. Was natürlich 
beim Zurückspielen zu keinen fehler führt da Beim einspieln und auslesen 
"nullen" übertragen werden....
Ausweg-> JTAG ICE mkII verwenden. Oder AVR-Dragon (hab ich aber nicht 
ausprobiert...).

cu Johannes

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.