Hallo,
hab ein Problem beim Programmieren eines ATmega32 auf einem STK500. Und
zwar verwende ich zwei USB-Serial-Converter. Einen zum Programmieren und
einen für die serielle Kommunikation mit dem mega32. Da ich an meinem
Laptop nur einen USB-Anschluss habe, hängt dazwischen ein USB-Hub. Seit
eben funktioniert das Programmieren allerdings nichtmehr. Das Schreiben
des Flash funktioniert anscheinend, aber beim zurücklesen bricht AVRDUDE
ab. Dabei erlischt genau zu dem Zeitpunkt an dem abgebrochen wird die
Port-LED am USB-Hub an dem der USB-Seriell-Converter eingesteckt ist.
Irgendwas, scheint also den USB-Port zu deaktivieren. Hab im
Geräte-Mangager schon den Hacken entfernt: "Computer kann Gerät
ausschalten, um Energie zu sparen" hat aber nichts gebracht.
Hier die Fehlermeldung von AVRDUDE:
1 | avrdude -p atmega32 -P com2 -c stk500 -U flash:w:sd-reader.hex
|
2 |
|
3 | avrdude: AVR device initialized and ready to accept instructions
|
4 |
|
5 | Reading | ################################################## | 100% 0.01s
|
6 |
|
7 | avrdude: Device signature = 0x1e9502
|
8 | avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
|
9 | To disable this feature, specify the -D option.
|
10 | avrdude: erasing chip
|
11 | avrdude: reading input file "sd-reader.hex"
|
12 | avrdude: input file sd-reader.hex auto detected as Intel Hex
|
13 | avrdude: writing flash (14492 bytes):
|
14 |
|
15 | Writing | ################################################## | 100% 4.95s
|
16 |
|
17 | avrdude: 14492 bytes of flash written
|
18 | avrdude: verifying flash memory against sd-reader.hex:
|
19 | avrdude: load data flash data from input file sd-reader.hex:
|
20 | avrdude: input file sd-reader.hex auto detected as Intel Hex
|
21 | avrdude: input file sd-reader.hex contains 14492 bytes
|
22 | avrdude: reading on-chip flash data:
|
23 |
|
24 | Reading | #
|
25 | avrdude: stk500_paged_load(): (a) protocol error, expect=0x14, resp=0x14
|
26 | avrdude: failed to read all of flash memory, rc=-5
|
27 |
|
28 | avrdude: ser_send(): write error: sorry no info avail
|
29 |
|
30 | Interrupted!
|
31 |
|
32 | Interrupted!
|
33 |
|
34 | Interrupted!
|
Danke
filzlaus