Executing command: exit status 1 (Arduino Mega 2560)

Hello,

I recently purchased an Arduino Mega 2560 for a school project.

I have been following an alarm system tutorial and of which the compiled correctly, however, when uploading I have repeatedly encountered the same error message, "Executing command: exit status 1."

The full verbose output is included below.

I tried uploading "Blink" as a simple example which also proved unsuccessful. On my Arduino Uno, however, it worked.

Additionally, this still occurs when the Mega is connected using a different USB port or computer.

I have browsed numerous forums and have not found a solution, hence my post here. Any suggestions would be greatly appreciated and I am more than happy to provide any further information if needed.

Note: I am new to Arduino so apologies for my basic level of understanding.

Thanks in advance,
Harvey

Executing command: exit status 1
./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:avr:mega:cpu=atmega2560 -build-cache /tmp -build-path /tmp/572404843/build -verbose -libraries /tmp/572404843/custom -libraries /tmp/572404843/pinned /tmp/572404843/Blink

Using board 'mega' from platform in folder: /home/ubuntu/opt/cores/arduino/avr

Using core 'arduino' from platform in folder: /home/ubuntu/opt/cores/arduino/avr

Detecting libraries used...

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/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=10611 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/ubuntu/opt/cores/arduino/avr/cores/arduino -I/home/ubuntu/opt/cores/arduino/avr/variants/mega /tmp/572404843/build/sketch/Blink.ino.cpp -o /dev/null

Generating function prototypes...

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/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=10611 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/ubuntu/opt/cores/arduino/avr/cores/arduino -I/home/ubuntu/opt/cores/arduino/avr/variants/mega /tmp/572404843/build/sketch/Blink.ino.cpp -o /tmp/572404843/build/preproc/ctags_target_for_gcc_minus_e.cpp

/home/ubuntu/opt/arduino-builder/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/572404843/build/preproc/ctags_target_for_gcc_minus_e.cpp

Compiling sketch...

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/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=10611 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/ubuntu/opt/cores/arduino/avr/cores/arduino -I/home/ubuntu/opt/cores/arduino/avr/variants/mega /tmp/572404843/build/sketch/Blink.ino.cpp -o /tmp/572404843/build/sketch/Blink.ino.cpp.o

Compiling libraries...

Compiling core...

Using precompiled core: /tmp/core/core_arduino_avr_mega_cpu_atmega2560_86d814ab5ac6e08f9be464f7f3c7beb3.a

Linking everything together...

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o /tmp/572404843/build/Blink.ino.elf /tmp/572404843/build/sketch/Blink.ino.cpp.o /tmp/572404843/build/../../core/core_arduino_avr_mega_cpu_atmega2560_86d814ab5ac6e08f9be464f7f3c7beb3.a -L/tmp/572404843/build -lm

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/572404843/build/Blink.ino.elf /tmp/572404843/build/Blink.ino.eep

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-objcopy -O ihex -R .eeprom /tmp/572404843/build/Blink.ino.elf /tmp/572404843/build/Blink.ino.hex

/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-size -A /tmp/572404843/build/Blink.ino.elf

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.

Programming with: Serial

Flashing with command:C:/Users/Harvey/.arduino-create/arduino/avrdude/6.3.0-arduino9/bin/avrdude.exe -CC:/Users/Harvey/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM3 -b115200 -D -Uflash:w:C:/Users/Harvey/AppData/Local/Temp/arduino-create-agent212854985/Blink.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:/Users/Harvey/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf"

Using Port : COM3

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.

Do you have the correct driver installed for the USB chip on the mega2560?

DKWatson:
Do you have the correct driver installed for the USB chip on the mega2560?

I'm not sure. How would I check that?

Bright light and a magnifying glass.

DKWatson:
Bright light and a magnifying glass.

I installed the latest drivers and I still get the same error message.

These seem strange bedfellows

/home/ubuntu/opt/tools/avr ......

System wide configuration file is "C:/Users/Harvey/.arduino-create/arduino/av.........

What operating system is on your PC and what version of the Arduino IDE are you using.

...R

This should give a hint:

Robin2:
System wide configuration file is "C:/Users/Harvey/.arduino-create/arduino/av.........

oqibidipo:
This should give a hint:

I seem to be slow this morning. Can you elaborate?

How can a system be both Ubuntu and Windows at the same time?

...R

Arduino Create... it's not one system, it's server (Ubuntu) compiling + your computer (Windows in this case) uploading to the board.

oqibidipo:
Arduino Create... it's not one system, it's server (Ubuntu) compiling + your computer (Windows in this case) uploading to the board.

Dang new-fangled gizmos.

What's wrong with the regular Arduino IDE?

And a web-server should never give out the path names to anything on it - manna for hackers.

...R

My operating system is Windows 10. I got this PC about a week ago so it's a completely fresh install. I've been using the web-based Arduino editor to upload - not sure if that makes a difference.

not sure if that makes a difference.

It does in two ways. First, the web function uses a completely different process for compiling, linking, and uploading.

Second, there is a completely different part of the forum for discussing Arduino-create issues.