Forum: Compiler & IDEs avrdude vs arduino ide


von Fi P. (fips)


Lesenswert?

Hallo alle zusammen,

ich scheitere gerade an einer eigenartigen Macke die ich nicht verstehe.

Die Arduino IDE nutzt doch avrdude.

Will ich einen sketch hochladen funktioniert das mit mit der  Arduino 
IDE wunderbar. Versuche ich das gleiche nur mit avrdude, kommt das 
heraus:


avrdude: Version 6.0.1, compiled on Oct 21 2013 at 14:25:10
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is 
"/usr/share/arduino/hardware/tools/avrdude.conf"
         User configuration file is "/home/odroid/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port                    : /dev/ttyACM99
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00


und das war es dann. Der bootloader des atmega antwortet falsch.

mit der Arduino IDE sieht die antwort so aus:

  Using Port                    : /dev/ttyACM99
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]

und der Sketch wird ohne Probleme hochgeladen.
Selbst wenn ich den Aufruf von avrdude aus dem log der Arduino IDE nehme 
endet es immer am gleichen Punkt.

Trifft die IDE noch weitere Vorkehrungen um den Sketch zu übertragen?


Ich verwende als Hardware einen Ordoid U3 mit IO-Shield.

Aufgerufen wird avrdude von mir mit:  avrdude 
-C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v 
-patmega328p -carduino -P/dev/ttyACM99 -b115200 -D 
-Uflash:w:/tmp/build2069818584670499081.tmp/server.cpp.hex:i

Hat wer ne Idee waran das liegt?

von Helfersyndrom (Gast)


Lesenswert?

Die Arduino IDE bringt einen eigenen avrdude mit, der sich vielleicht 
anders verhält als der, den Du über Deinen PATH aufrufst.

von Kaj (Gast)


Lesenswert?

Drück mal die Reset-Taste des Controllers. dann hast du (glaube ich) 
500ms zeit, avrdude zu starten. Das macht die Arduino IDE per Software.

Helfersyndrom schrieb:
> Die Arduino IDE bringt einen eigenen avrdude mit, der sich vielleicht
> anders verhält als der, den Du über Deinen PATH aufrufst.
Nein.

von Fi P. (fips)


Lesenswert?

ha das klappt. danke.

von Kaj (Gast)


Lesenswert?

Fi P. schrieb:
> ha das klappt. danke.
Gerne doch :)

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.