Hallo zusammen,
ich habe einen Arduino Mega2560
Ich wollte mir Eclipse einrichten und habe mich daher an diese Anleitung gehalten
http://embeddedcode.wordpress.com/20...s-basic-setup/
und für den Lib Teil an diese
http://embeddedcode.wordpress.com/20...dows-method-1/
So das Übersetzen klappt einwandfreiCode:#include <Arduino.h> void setup(){ pinMode(22, OUTPUT); } void loop(){ digitalWrite(22, HIGH); // set the LED on delay(500); // wait for a second digitalWrite(22, LOW); // set the LED off delay(100); // wait for a second }
Bei der Übertragung an den Controller wird die Fehlermeldung
ausgegeben auf der Eclipse ConsoleCode:Launching D:\Arduino\Arduino_Program\hardware\tools\avr\bin\avrdude -pm2560 -cstk500v2 -PCOM13 -b115200 -Uflash:w:Blinky01.hex:a "-CD:\Arduino\Arduino_Program\hardware\tools\avr\etc\avrdude.conf" Output: avrdude: stk500v2_ReceiveMessage(): timeout avrdude execution aborted
Nun habe ich im Netz gesucht und eine Lösung gefunden.
Man muss vor dem Übertragen den Reset Taster betätigen.
Ok habe ich gemacht und nun wird folgendes ausgegeben auf der Console
aber das Programm startet nicht ?????Code:Launching D:\Arduino\Arduino_Program\hardware\tools\avr\bin\avrdude -pm2560 -cstk500v2 -PCOM13 -b115200 -Uflash:w:Blinky01.hex:a "-CD:\Arduino\Arduino_Program\hardware\tools\avr\etc\avrdude.conf" Output: avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9801 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "Blinky01.hex" avrdude: input file Blinky01.hex auto detected as Intel Hex avrdude: writing flash (1856 bytes): Writing | ################################################## | 100% 0.29s avrdude: 1856 bytes of flash written avrdude: verifying flash memory against Blinky01.hex: avrdude: load data flash data from input file Blinky01.hex: avrdude: input file Blinky01.hex auto detected as Intel Hex avrdude: input file Blinky01.hex contains 1856 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.22s avrdude: verifying ... avrdude: 1856 bytes of flash verified avrdude done. Thank you. avrdude finished
Wenn ich nun den selben Code mit dem Arduino Tool übersetze und übertrage geht das Programm.....
Was mache ich falsch ?
- - - Aktualisiert - - -
Also mit diesem Plugin hat es sofort funktioniert.
Der Reset ist damit auch nicht mehr notwendig und der übertragene Code funktioniert auch.
http://eclipse.baeyens.it/Install.html
Lesezeichen