"exit status 1"

Whenever I want to load a new program on my Arduino Nano then "exit status 1" is displayed. I've already tried it with two different PCs and two different versions of the IDE. What can you do?

Here is the simple Programm i used:

void setup() {

// put your setup code here, to run once:

pinMode(LED_BUILTIN, OUTPUT);

}

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(LED_BUILTIN, HIGH);

delay(100);

digitalWrite(LED_BUILTIN, LOW);

delay(100);

}

Here is the Error message:

Using board 'nano' from platform in folder: C:\Users\moser\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\moser\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Verwendete Bibliotheken erkennen...
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\sketch\\sketch_feb11a.ino.cpp" -o nul
Funktionsprototypen werden generiert...
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\sketch\\sketch_feb11a.ino.cpp" -o "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\sketch\\sketch_feb11a.ino.cpp" -o "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\sketch\\sketch_feb11a.ino.cpp.o"
Bibliotheken werden kompiliert...
Kern wird kompiliert...
Using precompiled core: C:\Users\moser\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_nano_cpu_atmega328_a108f025a0678d38fe02b648c92a725d.a
Linking everything together...
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.elf" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1\\sketch\\sketch_feb11a.ino.cpp.o" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/..\\arduino-core-cache\\core_arduino_avr_nano_cpu_atmega328_a108f025a0678d38fe02b648c92a725d.a" "-LC:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1" -lm
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.elf" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.eep"
"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.elf" "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.hex"

"C:\\Users\\moser\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\moser\\AppData\\Local\\Temp\\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.elf"
Der Sketch verwendet 922 Bytes (3%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
"C:\Users\moser\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\moser\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM7" -b115200 -D "-Uflash:w:C:\Users\moser\AppData\Local\Temp\arduino-sketch-B9F4DDC3F45BD9793F2C8C3CCE165BF1/sketch_feb11a.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\moser\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x3b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x3b

avrdude done.  Thank you.

Fehlgeschlagenes Hochladen: Hochladefehler: exit status 1

Fix your code. Exit status 1 tells you the code has errors and will not compile.

This is not an Avrdude or bootloader error, so I will move your topic to a more suitable section.

While I do that, please read the forum guide in the sticky post at the top of most forum sections. This will tell you what you need to post and how to post it.

Go to File menu, than Preferences and switch on detailed error output for compilation and upload:


Compile the code again and copy whole error message to the forum.

Do not insert the screenshots! Copy message as text and insert to the forum using the code tags.

Try the different options under tools -> processor. The baud rate indicates that you have selected the 328P bootloader; try the "old bootloader" option and if that does not work the "168" option.

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