Just went through a couple of days trying to get my cheap chinese made GT2560, which came with a Prusa i3 Clone (CTC D5983), to communicate with arduino.
I was getting repeated stk500v2_ReceiveMessage(): timeout errors from avrdude through both the arduino IDE upload function, and running it off the command line.
Turns out my GT2560 had an ancient bootloader and needed a different protocol, I used the following command to successfully read the bytecode out;
This command reads code out of the device flash ROM, writing it to a file.
I ran this from the \Arduino\hardware\tools\avr\bin directory.
Here's a youtube video with the same fix: stk500v2 timeout fix
Sorry for reviving an old thread, but it's the first hit on google for this.
Ps. The above post by Dust is incorrect, avrdudes commands specify that r reads the device memory and writes to a file, while w writes the contents of the file into the device memory. Docs:
avrdude option descriptions
I was getting repeated stk500v2_ReceiveMessage(): timeout errors from avrdude through both the arduino IDE upload function, and running it off the command line.
Turns out my GT2560 had an ancient bootloader and needed a different protocol, I used the following command to successfully read the bytecode out;
.\avrdude -p atmega2560 -C ..\etc\avrdude.conf -c wiring -P com3 -b 57600 -F -U flash:r:i3_bak -v
This command reads code out of the device flash ROM, writing it to a file.
I ran this from the \Arduino\hardware\tools\avr\bin directory.
Here's a youtube video with the same fix: stk500v2 timeout fix
Sorry for reviving an old thread, but it's the first hit on google for this.
Ps. The above post by Dust is incorrect, avrdudes commands specify that r reads the device memory and writes to a file, while w writes the contents of the file into the device memory. Docs:
avrdude option descriptions