Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed uploading: uploading error #19

Open
duskohu opened this issue Aug 29, 2023 · 0 comments
Open

Failed uploading: uploading error #19

duskohu opened this issue Aug 29, 2023 · 0 comments

Comments

@duskohu
Copy link

duskohu commented Aug 29, 2023

Hi, I try upload code via
Arduino IDE 2.1.1
avrdude: Version 6.3-20190619
OS: Ubuntu 22.04.3 LTS
target: Arduino nano every

I have this error:

FQBN: arduino:megaavr:uno2018
Using board 'uno2018' from platform in folder: /home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8
Using core 'arduino' from platform in folder: /home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8

Detecting libraries used...
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/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=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino/api/deprecated -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/uno2018 /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/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=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino/api/deprecated -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/uno2018 /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/sketch/Blink.ino.cpp -o /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/preproc/ctags_target_for_gcc_minus_e.cpp
/home/duskohu/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino/api/deprecated -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/uno2018 /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/sketch/Blink.ino.cpp -o /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino/api/deprecated -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/cores/arduino -I/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/uno2018 /home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/variants/uno2018/variant.c -o /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/core/variant.c.o
Using precompiled core: /tmp/arduino/cores/arduino_megaavr_uno2018_mode_on_8b0d44deb33bba1a40640d3a4616ea6a/core.a
Linking everything together...
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mmcu=atmega4809 -o /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.elf /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/sketch/Blink.ino.cpp.o /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/core/variant.c.o /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/../../cores/arduino_megaavr_uno2018_mode_on_8b0d44deb33bba1a40640d3a4616ea6a/core.a -L/tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855 -lm -Wl,-Map,/tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.map
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy -O binary -R .eeprom /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.elf /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.bin
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.elf /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.eep
/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.elf /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.hex

/home/duskohu/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-size -A /tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.elf
Sketch uses 1510 bytes (3%) of program storage space. Maximum is 48640 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
"/home/duskohu/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/duskohu/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega4809 -cxplainedmini_updi -Pusb  -b115200 -e -D "-Uflash:w:/tmp/arduino/sketches/DCA1AD5AE16BFCDE2AFB6F59E4124855/Blink.ino.hex:i" "-Ufuse2:w:0x01:m" "-Ufuse5:w:0xC9:m" "-Ufuse8:w:0x02:m" "-Uflash:w:/home/duskohu/.arduino15/packages/arduino/hardware/megaavr/1.8.8/bootloaders/atmega4809_uart_bl.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 "/home/duskohu/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/home/duskohu/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : xplainedmini_updi
         Overriding Baud Rate          : 115200
avrdude: usbdev_open(): Found mEDBG CMSIS-DAP, serno: MICROUPDIPROGRAMMERX
avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy
avrdude: max packet size expected 512, but found 64 due to EP 0x81's wMaxPacketSize
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATmega4809
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
           fuses          0     0     0    0 no          9    0      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
           usersig        0     0     0    0 no         64   64      0     0     0 0x00 0x00
           flash          0     0     0    0 no      49152  128      0     0     0 0x00 0x00
           eeprom         0     0     0    0 no        256   64      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Atmel AVR XplainedMini in UPDI mode
         ICE hardware version: 0
         ICE firmware version: 1.19 (rel. 57)
         Serial number   : MICROUPDIPROGRAMMERX
         Vtarget         : 5.00 V
         JTAG clock megaAVR/program: 0 kHz
         JTAG clock megaAVR/debug:   0 kHz
         JTAG clock Xmega: 0 kHz
         PDI clock Xmega : 0 kHz

avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant