I bought an Arduino Mega 2560 and am trying to use eclipse to build and upload my code. I already used eclipse on my 168 with no problems, witch was configured using the tutorial on the Arduino page.
To make eclipse work with the Meta2560 I've changed "Target Hardware" to "ATmega2560". The programmer configuration is more dificult. According to boards.txt the programmer should be stk500v2 and the baud rate 115200bps. In this way I get:
C:\WinAVR-20100110\bin\avrdude -pm2560 -cstk500v2 -Pcom29 -b115200 -V -D -Uflash:w:arduinotest.hex:a avrdude: stk500_2_ReceiveMessage(): timeout avrdude: stk500_2_ReceiveMessage(): timeout avrdude: stk500_2_ReceiveMessage(): timeout
I've already tried a lot of combinations of cstk500v2, cstk500v1, cstk500, arduino and cstk200 with baud rates of 19200, 57600 and 115200 and got timeouts or sync errors. For example:
C:\WinAVR-20100110\bin\avrdude -pm2560 -cstk500v1 -Pcom29 -b115200 -V -D -Uflash:w:arduinotest.hex:a avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude done. Thank you. make: *** [avrdudedummy] Error 1
So, the question is simply: how can I use avrdude to upload my firmware into my Arduino Mega 2560?
ps: It works fine with the Arduino IDE.