Pages: [1]   Go Down
Author Topic: [solved]Flashing Arduino 2560 with AVRdude and Eclipse  (Read 666 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

I've just received my Arduino 2560 and want to try a simple testprogramm. I've configured Eclipse already so it creates my hex Files.

The Problem is the following:
Flashing an Sketch with the Arduino IDE works very well but I dont get it working with Eclipse. I've configured it to call the following command line
Quote
Launching C:\dev\avr\win-avr\bin\avrdude -pm2560 -cstk500v2 "-P\\.\COM3" -b115200 -Uflash:w:FirstTest.hex:a

But this will always result in:
Quote
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude execution aborted

Of course I could also post the whole config but I think those avrdude specialists out there dont need any more information to tell me what I've to fix.

Thanks in advance
Chris
« Last Edit: November 22, 2011, 06:01:49 pm by chrisliebaer » Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried using -carduino?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes I've tried nearly everthing that sounds possible. But I'm quite sure that stk500v2 is right as it also appears in the boards.txt
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay seems I found the problem.
As far as I understood the bootloader it is a tiny process, which waits just a few seconds after initialization for a special "signal" from avrdude. If it doesn't receive sucht a signal it will jump to main function of sketches.

To get this working the avrdude has to reset the µC and immediatly begin with communication. This reset never occurs if I use the comandline above. If I press reset while hitting return to trigger avrdude it will work nearly 100% (the others is maybe because I'm to slow).

Sadly this information was hidden behind completly useless phrases. I've edited it so that you will find the solution if you run into this problem.
http://arduino.cc/playground/Code/Eclipse

Thanks for helping

Chris
« Last Edit: November 22, 2011, 06:01:25 pm by chrisliebaer » Logged

Pages: [1]   Go Up
Jump to: