Welcome! Log In Create A New Profile

Advanced

[Resolved] Can't upload Marlin - stk500v2_ReceiveMessage(): timeout

Posted by yngndrw 
[Resolved] Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 03, 2012 12:41PM
Hi all,

I know there are a few threads with this problem but I haven't found any solutions and wanted to post my exact setup.

I'm using Marlin RC3 from here: (Downloaded as the tagged RC3 version)
[github.com]

I'm also using Arduino-1.0.1 and have "Gen7+Arduino+IDE+Support+2.0.zip" installed into /Arduino-1.0.1/hardware/Gen7/ directory.

I have a Sanguinololu v1.3a with an ATMega1284P - It is pre-loaded with Marlin and a bootloader which works but now I need to set up my configuration properly.

I select the following board in the Arduino IDE: (I renamed it so I knew which one to use)

Gen7-1284P-16.name=Sanguinololu / Gen7 with ATmega1284P and 16 MHz
Gen7-1284P-16.upload.protocol=stk500v2
Gen7-1284P-16.upload.maximum_size=129024
Gen7-1284P-16.upload.speed=115200
Gen7-1284P-16.bootloader.low_fuses=0xF7
Gen7-1284P-16.bootloader.high_fuses=0xDC
Gen7-1284P-16.bootloader.extended_fuses=0xFC
Gen7-1284P-16.bootloader.path=Gen7
Gen7-1284P-16.bootloader.file=bootloader-1284P-16MHz.hex
Gen7-1284P-16.bootloader.unlock_bits=0x3F
Gen7-1284P-16.bootloader.lock_bits=0x0F
Gen7-1284P-16.build.mcu=atmega1284p
Gen7-1284P-16.build.f_cpu=16000000L
Gen7-1284P-16.build.core=arduino
Gen7-1284P-16.build.variant=gen7

I have tried the baud rates 115200, 57600 and 38400.


When I try to upload it, it compiles then I keep getting the following:
Using Port : \\.\COM9
Using Programmer : stk500v2
Overriding Baud Rate : 57600
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout

It just times out over and over. I have tried holding reset until it has compiled and have tried both enabling and disabling the USB auto-reset feature.

I can talk to the current version of Marlin without any issues via Pronterface so the communication isn't an issue. This connects at the baud rate of 115200.


If I set up AVRDude to use the baud rate of 115200, a few seconds after I release the reset button I get debug data that Marlin sends to Pronterface. (The current EEPROM speeds etc.)


I'm using Windows 7, x64.


Thanks,
-Andrew.

Edited 1 time(s). Last edit at 11/04/2012 09:40AM by yngndrw.
Re: Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 03, 2012 05:54PM
try using arduino 23

Auzze
Re: Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 03, 2012 08:23PM
I was originally using Arduino 22 but had problems with that and when I read up about it people said you needed 1.0+ for the ATMega1284P.

I'll try 23 tomorrow, thanks.
Re: Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 04, 2012 05:41AM
The avrdude coming with 0023 doesn't support the 1284P.

Are you sure there's a bootloader on this Sanguinololu? Timeout means, there is no serial connection at all. Even a wrong baud rate gives usually different error messages.

Also make sure the port isn't used by something else, like a stale, older avrdude process. Arduino IDE doesn't manage to close down failed upload attempts properly, so you have to kill these processes manually. When doing this while the IDE is running, it'll report "Upload done" ... for your entertainment :-)


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 04, 2012 08:04AM
I had problems uploading for ages with my Sanguinolulu (with 1284P). The solution turned out to be using Arduino 23 and downloading the sanguino extensions from : [github.com] and placing these in the arduino hardware folder. That will then allow you to select a "Sanguino with 1284P 16MHz" option on the boards menu and after that everything has been fine.
Re: Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 04, 2012 09:39AM
Thank you all.

Using Arduino 23 with the Sanguino extensions worked great.

I had to move the new /hardware/tools/avrdude.conf file to /hardware/tools/avr/etc/avrdude.conf but aside from that it worked right away.

I will leave you all with a quote:
Quote

avrdude done. Thank you.

Edited 1 time(s). Last edit at 11/04/2012 09:40AM by yngndrw.
Re: [Resolved] Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 09, 2012 09:34AM
ive done everthing same like you, but i cant compile the firmware. I get:

In file included from Sprinter_Sanguinololu.cpp:7:
/Configuration.h:271:2: error: #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.

somebody got an idea?
Re: [Resolved] Can't upload Marlin - stk500v2_ReceiveMessage(): timeout
November 09, 2012 10:38AM
What board did you select in the tools menu ?
I have done uploading using arduino 23 and 1.0.3 yet both give me the same error (stk500v2_ReceiveMessage(): timeout)
on atmega 644 20PU.

can any one please help
Sorry, only registered users may post in this forum.

Click here to login