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
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.
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.