Unable to upload sketches to Wifi rev2

I got a new wifi rev2 and was able to upload a few sketches to it and mess with it a bit. after a few different example uploads, it started throwing the error below and won't let me upload any new sketches to it. I can still open the serial port and receive data from the uploaded sketch (it's not hogging the serial port, slow enough to stop and only prints a few lines of text). There was an old thread here witht the same issue that got closed without any solid solutions. I've tried uploading on Windows, Mac OS X, and the web editor and all throw the same error. I have also tried burning the bootloader using the IDE and it throws the same error. I was hoping that someone might have any ideas that I haven't tried yet before I send it back for a new one.

Arduino: 1.8.19 (Mac OS X), Board: "Arduino Uno WiFi Rev2, None (ATMEGA4809)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/Corbin/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Corbin/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/Corbin/Documents/Arduino/libraries -fqbn=arduino:megaavr:uno2018:mode=off -vid-pid=03EB_2145 -ide-version=10819 -build-path /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726 -warnings=none -build-cache /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_cache_224976 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/Corbin/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Corbin/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/Corbin/Documents/Arduino/libraries -fqbn=arduino:megaavr:uno2018:mode=off -vid-pid=03EB_2145 -ide-version=10819 -build-path /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726 -warnings=none -build-cache /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_cache_224976 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avrdude.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
Using board 'uno2018' from platform in folder: /Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7
Using core 'arduino' from platform in folder: /Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7
Detecting libraries used...
/Users/Corbin/Library/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=10819 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/deprecated -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/cores/arduino -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/variants/uno2018 /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Users/Corbin/Library/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=10819 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/deprecated -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/cores/arduino -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/variants/uno2018 /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/sketch/Blink.ino.cpp -o /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/Corbin/Library/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 -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/cores/arduino/api/deprecated -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/cores/arduino -I/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/variants/uno2018 /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/sketch/Blink.ino.cpp -o /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
Using previously compiled file: /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/core/variant.c.o
Using precompiled core: /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_cache_224976/core/core_arduino_megaavr_uno2018_mode_off_21959ca47ed67a1adce2d37611fad900.a
Linking everything together...
/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mmcu=atmega4809 -o /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.elf /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/sketch/Blink.ino.cpp.o /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/core/variant.c.o /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/../arduino_cache_224976/core/core_arduino_megaavr_uno2018_mode_off_21959ca47ed67a1adce2d37611fad900.a -L/var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726 -lm
/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy -O binary -R .eeprom /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.elf /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.bin
/Users/Corbin/Library/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 /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.elf /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.eep
/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy -O ihex -R .eeprom /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.elf /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.hex
/Users/Corbin/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-size -A /var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/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.
/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -V -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Uflash:w:/var/folders/4d/mgfyf68x5wvcq7tmjbhnqb5w0000gp/T/arduino_build_107726/Blink.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/Users/Corbin/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.7/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 "/Users/Corbin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/Corbin/.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: 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   : 812A4234D61C649F196B
         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: Short read, read only 0 out of 64 bytes
avrdude: jtag3_edbg_recv(): Unexpected response 0x00
avrdude: retrying with external reset applied
avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
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: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: jtag3_edbg_send(): Unexpected response 0x81, 0x11
avrdude: jtag3_edbg_recv(): Unexpected response 0x80
avrdude: jtag3_edbg_signoff(): unexpected response 0x81, 0x11
avrdude: jtag3_edbg_signoff(): unexpected response 0x01, 0x00

avrdude done.  Thank you.

An error occurred while uploading the sketch

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