Forum: Mikrocontroller und Digitale Elektronik usbasp usbasp_transmit: Broken pipe


von Michael (c0d3z3r0)


Lesenswert?

Hallo!

Ich habe folgendes Problem:
Seit heute funktioniert mein usbasp nicht mehr. Sobald ich versuche per 
avrdude meinen atmega zu schreiben (auch wenn gar kein AVR dranhängt) 
kommt folgende Fehlermeldung. Gestern Abend hat alles noch wunderbar 
funktioniert -.-
1
make program
2
avrdude -p atmega168p -P usb -c usbasp -B 2  -v -v -y -U flash:w:main_rx.hex -U eeprom:w:main_rx.eep
3
4
avrdude: Version 5.11.1, compiled on Feb 16 2012 at 22:11:20
5
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
6
         Copyright (c) 2007-2009 Joerg Wunsch
7
8
         System wide configuration file is "/usr/local/CrossPack-AVR-20120217/etc/avrdude.conf"
9
         User configuration file is "/Users/c0d3z3r0/.avrduderc"
10
         User configuration file does not exist or is not a regular file, skipping
11
12
         Using Port                    : usb
13
         Using Programmer              : usbasp
14
         Setting bit clk period        : 2.0
15
avrdude: seen device from vendor ->www.fischl.de<-
16
avrdude: seen product ->USBasp<-
17
         AVR Part                      : ATMEGA168P
18
         Chip Erase delay              : 9000 us
19
         PAGEL                         : PD7
20
         BS2                           : PC2
21
         RESET disposition             : dedicated
22
         RETRY pulse                   : SCK
23
         serial program mode           : yes
24
         parallel program mode         : yes
25
         Timeout                       : 200
26
         StabDelay                     : 100
27
         CmdexeDelay                   : 25
28
         SyncLoops                     : 32
29
         ByteDelay                     : 0
30
         PollIndex                     : 3
31
         PollValue                     : 0x53
32
         Memory Detail                 :
33
34
                                  Block Poll               Page                       Polled
35
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
36
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
37
           eeprom        65    20     4    0 no        512    4      0  3600  3600 0xff 0xff
38
           flash         65     6   128    0 yes     16384  128    128  4500  4500 0xff 0xff
39
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
40
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
41
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
42
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
43
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
44
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
45
46
         Programmer Type : usbasp
47
         Description     : USBasp, http://www.fischl.de/usbasp/
48
49
avrdude: try to set SCK period to 2e-06 s (= 500000 Hz)
50
avrdude: set SCK frequency to 375000 Hz
51
avrdude: error: usbasp_transmit: Broken pipe
52
avrdude: error: usbasp_transmit: Result too large
53
avrdude: error: programm enable: target doesn't answer. 0 
54
avrdude: initialization failed, rc=-1
55
         Double check connections and try again, or use -F to override
56
         this check.
57
58
avrdude: error: usbasp_transmit: Broken pipe
59
60
avrdude done.  Thank you.
61
62
make: *** [program] Error 1



Jeder weitere Versuch endet mit:

1
make program
2
avrdude -p atmega168p -P usb -c usbasp -B 2  -v -v -y -U flash:w:main_rx.hex -U eeprom:w:main_rx.eep
3
4
avrdude: Version 5.11.1, compiled on Feb 16 2012 at 22:11:20
5
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
6
         Copyright (c) 2007-2009 Joerg Wunsch
7
8
         System wide configuration file is "/usr/local/CrossPack-AVR-20120217/etc/avrdude.conf"
9
         User configuration file is "/Users/c0d3z3r0/.avrduderc"
10
         User configuration file does not exist or is not a regular file, skipping
11
12
         Using Port                    : usb
13
         Using Programmer              : usbasp
14
         Setting bit clk period        : 2.0
15
avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc
16
17
avrdude done.  Thank you.
18
19
make: *** [program] Error 1




Bis ich ihn ab- und wieder anstecke, dann geht's von vorne los...

Hatte jemand schonmal das gleiche Problem und vielleicht eine Lösung?

Danke!

von Michael (c0d3z3r0)



Lesenswert?

Unter Windows das gleiche Problem, wie man in den Screenshots sieht... 
:(
Beim ersten Versuch wird der usbasp erkannt, beim zweiten dann nicht 
mehr...

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.