avrdude vs arduino ide

#4427873
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?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren