Loading

Rumba ATmega2560 Board Upload Error

Please Login to Comment

Hi everyone!

I am very new to firmware flashing with Arduino, so I need all the help I can get :)

Right now, I am working on building a large format 3D printer, and I have chosen to use the Rumba board. When I tried to upload firmware today, however, I kept getting this error:

Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Owner\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Owner\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0010 -ide-version=10805 -build-path C:\Users\Owner\AppData\Local\Temp\arduino_build_937830 -warnings=none -build-cache C:\Users\Owner\AppData\Local\Temp\arduino_cache_583052 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Owner\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Owner\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0010 -ide-version=10805 -build-path C:\Users\Owner\AppData\Local\Temp\arduino_build_937830 -warnings=none -build-cache C:\Users\Owner\AppData\Local\Temp\arduino_cache_583052 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'mega' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\sketch\Blink.ino.cpp" -o "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\sketch\Blink.ino.cpp" -o "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\sketch\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/Blink.ino.elf" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830\sketch\Blink.ino.cpp.o" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/..\arduino_cache_583052\core\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\Owner\AppData\Local\Temp\arduino_build_937830" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/Blink.ino.elf" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/Blink.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/Blink.ino.elf" "C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/Blink.ino.hex"
Sketch uses 1462 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM7 -b115200 -D -Uflash:w:C:\Users\Owner\AppData\Local\Temp\arduino_build_937830/Blink.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM7
     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

avrdude done. Thank you.

An error occurred while uploading the sketch

This error message is from the simple BLINK file to test uploading. I have tried different ports, and cables, to the same avail. Any suggestions?

Thank you so much in advance!!!!!!!!

Just a shot in the dark. Not knowing the origin of the board, it is possible there is no bootloader yet. Try installing a bootloader via ISP header before you give up on it.

Have you any other things plugged in a USB port?
If so, unplug them.
Close all other programs running and try again.

This could be caused by a couple of things. 1) you already checked wiring, but double checking can't hurt (try reversing tx and rx). 2) you have the wrong port selected. This can easily happen when you unplug/plug the board while arduino is open in windows. What happens is windows will increment the com port # without telling you. If this is the case, just reselect the new com port in arduino jest before uploading while the board is plugged in. 3) there is firmware on the mega board that is interfering with the reset pin. If this is the case, usually just hitting the reset button on the mega just before avrdude starts to upload will work. Sometimes timing is important, so multiple presses may be needed to hit the timing window. 4) your mega may have a ch340 uart chip and you don't have the correct drivers installed in windows. To rule this out, plug in the mega to your PC and verify the device shows up properly identified under windows device manager. If you get 'unknown' then likely installing the ch340 driver will fix it.

There may be other causes I haven't mentioned, but these are the most common issues related to that error. Lastly, I recommend reading about atom and platform io as an alternative to arduino ide. Arduino is quickly becoming outdated as we move toward a future with 32bit. So if you put off learning a new ide now, it will eventually catch up to you and you'll have to learn it later. Also, pio is so much better (easier to use) and easier on the eyes than arduino once you learn the basics.

Thank you everyone!!!

I am not getting anything from tx or rx :( How do I reverse the wiring?

I am getting a new board in the mail soon...hope it works.