timeouts mit AVRDUDE unter Windows != cygwin

OP #2357244
Lesenswert?
• ▲
▼
Hallo Leute,

ich hab da ein merkwürdiges Phänomen und bevor ich mir nen Wolf suche, 
dachte ich ich frag mal, ob da schonmal jemand drüber gestolpert ist.

(da ich cygwin installiert habe hab ich schon öfters mal Probleme mit 
Windows-Ports gehabt, die Ihrerseits cygwin nutzen ...)

Folgendes Phänomen:

unter cygwin alles gut:
1
BRFDB4J:/cygdrive/d/Tools/WinAVR-20100110
2
$ bin/avrdude -p m168 -c avrispv2 -P COM15 -B 1 -Uflash:w:"d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex":i
3
avrdude.exe: stk500v2_set_sck_period(): p = 1.0 us too small, using 1.1 us
4

5
avrdude.exe: AVR device initialized and ready to accept instructions
6

7
Reading | ################################################## | 100% 0.01s
8

9
avrdude.exe: Device signature = 0x1e9406
10
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
11
             To disable this feature, specify the -D option.
12
avrdude.exe: erasing chip
13
avrdude.exe: reading input file "d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex"
14
avrdude.exe: writing flash (16364 bytes):
15

16
Writing | ################################################## | 100% 0.06s
17

18
avrdude.exe: 16364 bytes of flash written
19
avrdude.exe: verifying flash memory against d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex:
20
avrdude.exe: load data flash data from input file d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex:
21
avrdude.exe: input file d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex contains 16364 bytes
22
avrdude.exe: reading on-chip flash data:
23

24
Reading | ################################################## | 100% 1.23s
25

26
avrdude.exe: verifying ...
27
avrdude.exe: 16364 bytes of flash verified
28

29
avrdude.exe done.  Thank you.

ruf ich aber auf derselben Maschine denselben AVRDUDE mit 
denselben Parametern aus einem CMD heraus auf, krieg ich timeouts:
1
D:\Tools\WinAVR-20100110>bin\avrdude -p m168 -c avrispv2 -P COM15 -B 1 -Uflash:w:"d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex":i
2
avrdude: stk500v2_set_sck_period(): p = 1.0 us too small, using 1.1 us
3

4
avrdude: AVR device initialized and ready to accept instructions
5

6
Reading | ################################################## | 100% 0.06s
7

8
avrdude: Device signature = 0x1e9406
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: reading input file "d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex"
13
avrdude: writing flash (16364 bytes):
14

15
Writing | ################################################   | 96% 0.97savrdude: stk500v2_ReceiveMessage(): timeout
16
Writing | #################################################  | 97% 5.99savrdude: stk500v2_ReceiveMessage(): timeout
17
Writing | #################################################  | 98% 11.02savrdude: stk500v2_ReceiveMessage(): timeout
18
Writing | ################################################## | 99% 16.05savrdude: stk500v2_ReceiveMessage(): timeout
19
Writing | ################################################## | 100% 21.09s
20

21
avrdude: 16364 bytes of flash written
22
avrdude: verifying flash memory against d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex:
23
avrdude: load data flash data from input file d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex:
24
avrdude: input file d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex contains 16364 bytes
25
avrdude: reading on-chip flash data:
26

27
Reading |                                                    | 0% 0.00savrdude: stk500v2_ReceiveMessage(): timeout
28
Reading | #                                                  | 1% 5.03savrdude: stk500v2_ReceiveMessage(): timeout
29
Reading | ##                                                 | 3% 10.06savrdude: stk500v2_ReceiveMessage(): timeout
30
Reading | ##                                                 | 4% 15.09s
31
^C

auch mit größeren Werten für -B ändert sich da nix ...

Ich kann gerne noch weitere Debug-Info liefern, der Fehler ist beliebig 
reproduzierbar. Aber außer wiederkehrenden Meldungen wie dieser steht da 
nix brauchbares drin:
1
avrdude: Recv:
2
avrdude: stk500v2_ReceiveMessage(): timeout
3
avrdude: Send: . [1b] . [1c] . [00] . [01] . [0e] . [01] . [09]
4
avrdude: Recv: . [1b]
5
avrdude: Recv: . [1c]
6
avrdude: Recv: . [00]
7
avrdude: Recv: . [0b]
8
avrdude: Recv: . [0e]
9
avrdude: Recv: . [01]
10
avrdude: Recv: . [00]
11
avrdude: Recv: . [08]
12
avrdude: Recv: A [41]
13
avrdude: Recv: V [56]
14
avrdude: Recv: R [52]
15
avrdude: Recv: I [49]
16
avrdude: Recv: S [53]
17
avrdude: Recv: P [50]
18
avrdude: Recv: _ [5f]
19
avrdude: Recv: 2 [32]
20
avrdude: Recv: i [69]
21
avrdude: stk500v2_getsync(): found AVRISP programmer
22
Writing | #################################################  | 98%


Ach so:
das Ganze passiert unter Windows 7, 64bit, 8GB Ram mit einem Pololu
(mein AVRISP mkii ist ja dummerweise mit dem Jungo-Driver vom AVR-Studio 
verheiratet)

Ideen?

Gruß
- Karl
OP #2357425
Lesenswert?
• ▲
▼
ich hab's geahnt - das hätte ich dazuschreiben sollen.

Das hab ich natürlich schon probiert - ändert rein gar nix.

Der Vollständigkeit halber:
1
D:\Tools\WinAVR-20100110>bin\avrdude -p m168 -c avrispv2 -P \\.\com15 -B 1 -Uflash:w:"d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex":i
2
avrdude: stk500v2_set_sck_period(): p = 1.0 us too small, using 1.1 us
3

4
avrdude: AVR device initialized and ready to accept instructions
5

6
Reading | ################################################## | 100% 0.04s
7

8
avrdude: Device signature = 0x1e9406
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: reading input file "d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex"
13
avrdude: writing flash (16364 bytes):
14

15
Writing | ################################################   | 96% 0.50savrdude: stk500v2_ReceiveMessage(): timeout
16
Writing | #################################################  | 97% 5.52savrdude: stk500v2_ReceiveMessage(): timeout
17
Writing | #################################################  | 98% 10.57savrdude: stk500v2_ReceiveMessage(): timeout
18
Writing | ################################################## | 99% 15.60savrdude: stk500v2_ReceiveMessage(): timeout
19
Writing | ################################################## | 100% 20.64s
20

21
avrdude: 16364 bytes of flash written
22
avrdude: verifying flash memory against d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex:
23
avrdude: load data flash data from input file d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex:
24
avrdude: input file d:/Arduino/hardware/arduino/bootloaders/optiboot/optiboot_diecimila.hex contains 16364 bytes
25
avrdude: reading on-chip flash data:
26

27
Reading |                                                    | 0% 0.00s
28
^C

Gruß
- Karl

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.