Arduino MEGA + WiFi R3 ATmega2560+ESP8266 - stk500v2_ReceiveMessage(): timeout

I have problem with upload sketch to Arduino MEGA + WiFi R3 ATmega2560+ESP8266. When i tried to upload ESP8266 no problem (Dip Swi. Position 5-6-7 ON rest of OFF). I can upload anything. But when i tried to upload Atmega2560 (DS: 3-4 ON rest of OFF and RX0-TX0) it show me always error;

     Using Port                    : COM8
     Using Programmer              : wiring
     Overriding Baud Rate          : 115200

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

O.S.: Windows 7
IDE: 1.8.19
Cable Length: 1meter phone cable

Any luck resolving this? I seem to face exactly the same problem.

Yes i solved problem after spent very long time.
After pressing the upload button, press the reset button. Press and hold the sketch until it finishes uploading.

1 Like

Thanks a lot. After asking here I actually found a video saying the same thing as you did: A fix for Arduino timeout problem: avrdude: stk500v2_ReceiveMessage(): timeout - YouTube
It was easy to upload a test sketch for me, but a bit difficult to upload (i.e. hit the reset button at the right time) anything more complex (I want to use the board for dcc++ ex project.

switch the RX/TX switch to Serial3 so the esp8266 doesn't disturb the upload on Serial

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.