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

Problem Downloading code to Wifi Rev2 #33

Closed
ghost opened this issue Apr 29, 2019 · 42 comments
Closed

Problem Downloading code to Wifi Rev2 #33

ghost opened this issue Apr 29, 2019 · 42 comments

Comments

@ghost
Copy link

ghost commented Apr 29, 2019

My code compiles fine but when I get to the downloading part of a new install I get the following error. At the bottom of the error list it says the board is not connected but when I get the board info the window shows the correct info.

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino Uno WiFi Rev2, None (ATMEGA4809)"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\telli\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\telli\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\telli\Documents\Arduino\libraries -fqbn=arduino:megaavr:uno2018:mode=off -vid-pid=0X03EB_0X2145 -ide-version=10809 -build-path C:\Users\telli\AppData\Local\Temp\arduino_build_873433 -warnings=none -build-cache C:\Users\telli\AppData\Local\Temp\arduino_cache_444121 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.avrdude.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14 -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14 -verbose C:\Users\telli\Documents\Arduino\temp_control\temp_control.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\telli\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\telli\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\telli\Documents\Arduino\libraries -fqbn=arduino:megaavr:uno2018:mode=off -vid-pid=0X03EB_0X2145 -ide-version=10809 -build-path C:\Users\telli\AppData\Local\Temp\arduino_build_873433 -warnings=none -build-cache C:\Users\telli\AppData\Local\Temp\arduino_cache_444121 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.avrdude.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14 -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14 -verbose C:\Users\telli\Documents\Arduino\temp_control\temp_control.ino
Using board 'uno2018' from platform in folder: C:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26
Using core 'arduino' from platform in folder: C:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26
Detecting libraries used...
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\cores\arduino/api/deprecated" "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\cores\arduino" "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\variants\uno2018" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\sketch\temp_control.ino.cpp" -o nul
Generating function prototypes...
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\cores\arduino/api/deprecated" "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\cores\arduino" "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\variants\uno2018" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\sketch\temp_control.ino.cpp" -o "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\cores\arduino/api/deprecated" "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\cores\arduino" "-IC:\Users\telli\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.6.26\variants\uno2018" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\sketch\temp_control.ino.cpp" -o "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\sketch\temp_control.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\telli\AppData\Local\Temp\arduino_build_873433\core\variant.c.o
Using precompiled core: C:\Users\telli\AppData\Local\Temp\arduino_cache_444121\core\core_arduino_megaavr_uno2018_mode_off_dcb64d4f6a6de1966fae6a8c32168afe.a
Linking everything together...
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega4809 -o "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.elf" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\sketch\temp_control.ino.cpp.o" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433\core\variant.c.o" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/..\arduino_cache_444121\core\core_arduino_megaavr_uno2018_mode_off_dcb64d4f6a6de1966fae6a8c32168afe.a" "-LC:\Users\telli\AppData\Local\Temp\arduino_build_873433" -lm
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.elf" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.eep"
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.elf" "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.hex"
"C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-size" -A "C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.elf"
Sketch uses 11336 bytes (23%) of program storage space. Maximum is 49152 bytes.
Global variables use 326 bytes (5%) of dynamic memory, leaving 5818 bytes for local variables. Maximum is 6144 bytes.
C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14/bin/avrdude -CC:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Uflash:w:C:\Users\telli\AppData\Local\Temp\arduino_build_873433/temp_control.ino.hex:i -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m

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

     System wide configuration file is "C:\Users\telli\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf"

     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   : B8439DC837CB552DC3A7
     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: Partial Family_ID returned: "mega"
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: bad response to enter progmode command: 0xa0
avr_read(): error reading address 0x0000
read operation failed for memory "signature"
avrdude: error reading signature data for part "ATmega4809", rc=-67
avrdude: error reading signature data, rc=-67

avrdude done. Thank you.

the selected serial port
does not exist or your board is not connected

@btabuenca
Copy link

btabuenca commented May 7, 2019

After some months working with the board, suddenly I got the same message:


Arduino: 1.8.9 (Mac OS X), Board: "Arduino Uno WiFi Rev2, ATMEGA328"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/BTB/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/BTB/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/BTB/Documents/Arduino/libraries -fqbn=arduino:megaavr:uno2018:mode=on -ide-version=10809 -build-path /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686 -warnings=none -build-cache /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_cache_611323 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.avr-gcc.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avrdude.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -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/BTB/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/BTB/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/BTB/Documents/Arduino/libraries -fqbn=arduino:megaavr:uno2018:mode=on -ide-version=10809 -build-path /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686 -warnings=none -build-cache /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_cache_611323 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.avr-gcc.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avrdude.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Users/BTB/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
Using board 'uno2018' from platform in folder: /Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24
Using core 'arduino' from platform in folder: /Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24
Detecting libraries used...
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/cores/arduino/api/deprecated -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/cores/arduino -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/variants/uno2018 /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/cores/arduino/api/deprecated -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/cores/arduino -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/variants/uno2018 /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/sketch/Blink.ino.cpp -o /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/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/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/cores/arduino/api/deprecated -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/cores/arduino -I/Users/BTB/Library/Arduino15/packages/arduino/hardware/megaavr/1.6.24/variants/uno2018 /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/sketch/Blink.ino.cpp -o /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
Using previously compiled file: /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/core/variant.c.o
Using precompiled core: /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_cache_611323/core/core_arduino_megaavr_uno2018_mode_on_e6754daa561557e34a3c7d8252f5bac7.a
Linking everything together...
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega4809 -o /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/Blink.ino.elf /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/sketch/Blink.ino.cpp.o /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/core/variant.c.o /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/../arduino_cache_611323/core/core_arduino_megaavr_uno2018_mode_on_e6754daa561557e34a3c7d8252f5bac7.a -L/var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686 -lm
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/Blink.ino.elf /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/Blink.ino.eep
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy -O ihex -R .eeprom /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/Blink.ino.elf /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/Blink.ino.hex
/Users/BTB/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-size -A /var/folders/rq/05j9qrjj4s16s_pb24j6qzg00000gn/T/arduino_build_514686/Blink.ino.elf
Sketch uses 1534 bytes (3%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
avrdude: bad response to enter progmode command: 0xa0
avr_read(): error reading address 0x0000
    read operation failed for memory "signature"
avrdude: error reading signature data for part "ATmega4809", rc=-67
avrdude: error reading signature data, rc=-67
avrdude: error reading signature data, rc=-67

@ghost
Copy link
Author

ghost commented May 7, 2019 via email

@btabuenca
Copy link

Unfortunately, that is not my case.

@btabuenca
Copy link

btabuenca commented May 7, 2019

Just tried with a 2nd Arduino UNO wifi rev-2 that was working this morning. Now I get the same message and did not modified any line of code.

This is how things happened:

  1. I tested it in Genuino linux this morning. Worked!
  2. I tested it in Genuino Mac this afternoon. Worked!
  3. I tested it in Genuino linux this afternoon. Did not work :(
  4. I tested it in Genuino Mac this afternoon. Did not work :(

Now I have 2 Arduinos UNO wifi rev-2 not working. I cannot upload any program

Please let me know if I could help

@facchinm
Copy link
Member

facchinm commented May 8, 2019

Hi everyone,
we are bisecting the issue to understand what could be the root cause. Feel free to contact the support for a replacement in the meantime.

@agdl
Copy link
Member

agdl commented May 8, 2019

@TimEllis2019 Can you please send us a top photo of your board?

@btabuenca
Copy link

btabuenca commented May 8, 2019

@agdl Here you are a photo from mine

IMG_3567

@ghost
Copy link
Author

ghost commented May 8, 2019 via email

@ghost
Copy link
Author

ghost commented May 8, 2019 via email

@per1234
Copy link
Contributor

per1234 commented May 8, 2019

Photo attached.

@TimEllis2019 email attachments don't work on GitHub. Please open this issue thread in your browser: #33
and then attach the photo in a reply made right to the thread on GitHub, rather than via an email reply.

@ghost
Copy link
Author

ghost commented May 8, 2019 via email

@ghost
Copy link
Author

ghost commented May 9, 2019 via email

@facchinm
Copy link
Member

@TimEllis2019 , sure, feel free to contact support linking this thread so we'll be able to track the issue is a sane way.

@jguen
Copy link

jguen commented May 14, 2019

Since yesterday I have the same problem with my Arduino Uno Wifi Rev 2. It would be great if someone finds a solution for this bug. I also wrote an email to the Arduino support and I am waiting for an answer.

Is it maybe possible to exchange the defect Arduino, because it is in the warranty time?

My actual project is a multi medial steering platform for the Tinkerkit Braccio and the Arduino is the leading component for me.

@ghost
Copy link
Author

ghost commented May 16, 2019

small
Sorry my picture did not go thru.

@OmriEg
Copy link

OmriEg commented May 22, 2019

I also suffer from the same issue. i couldn't download the code to Arduino wifi rev 2.
error massage:
Sketch uses 14242 bytes (28%) of program storage space. Maximum is 49152 bytes.
Global variables use 1027 bytes (16%) of dynamic memory, leaving 5117 bytes for local variables. Maximum is 6144 bytes.
avrdude: bad response to enter progmode command: 0xa0
avr_read(): error reading address 0x0000
read operation failed for memory "signature"
avrdude: error reading signature data for part "ATmega4809", rc=-67
avrdude: error reading signature data, rc=-67
avrdude: error reading signature data, rc=-67

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any update on this issue?

@jan1za
Copy link

jan1za commented May 22, 2019

I am getting the same issue. Arduino Uno Wifi Rev 2, purchased today. Was working perfectly. Ran the WifiNina check firmware version sketch, it worked. Loaded the WifiNina update firmware sketch, tried to update and got this:

Sketch uses 6806 bytes (13%) of program storage space. Maximum is 49152 bytes.
Global variables use 1397 bytes (22%) of dynamic memory, leaving 4747 bytes for local variables. Maximum is 6144 bytes.
avrdude: bad response to enter progmode command: 0xa0
avr_read(): error reading address 0x0000
read operation failed for memory "signature"
avrdude: error reading signature data for part "ATmega4809", rc=-67
avrdude: error reading signature data, rc=-67
avrdude: error reading signature data, rc=-67

I have another Wifi Rev 2 its a little older, that has no issues.
Running Arduino 1.8.9

The board details are:
BN: Arduino Uno WiFi Rev2
VID: 0x03eb
PID: 0x2145
SN: E870C4BC24F2C7F711C8

@jan1za
Copy link

jan1za commented May 22, 2019

When trying to upload blink

Sketch uses 1544 bytes (3%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
C:\Users\nicho\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14/bin/avrdude -CC:\Users\nicho\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Uflash:w:C:\Users\nicho\AppData\Local\Temp\arduino_build_561657/Blink.ino.hex:i -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m

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

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

     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   : E870C4BC24F2C7F711C8
     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: Partial Family_ID returned: "mega"
avrdude: AVR device initialized and ready to accept instructions

An error occurred while uploading the sketch
Reading | avrdude: bad response to enter progmode command: 0xa0
avr_read(): error reading address 0x0000
read operation failed for memory "signature"
avrdude: error reading signature data for part "ATmega4809", rc=-67
avrdude: error reading signature data, rc=-67

avrdude done. Thank you.

@facchinm
Copy link
Member

Didn't want to close the issue directly, but thanks to the replacements you sent us we have a solution 🙂

First of all, the problem is probably due to a bug in avrdude, which incorrectly writes the CRC bits (fuse SYSCFG0 - 0x05).
Once CRC is wrong, the only way to unlock the chip is through an unlock/chip erase procedure which differs from the normal chip erase.
This procedure was triggered only in case the return value of avr_signature was -68.
Due to other changes, mEDBG reports -67 as errors, so it doesn't trigger the right erase procedure.

I'm currently producing new avrdude builds that should fix the error. In case you want to test before the official release, the right commandline is

bin/avrdude -C etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m

@facchinm
Copy link
Member

Core 1.8.1 had just been released, boards exibiting the issue will just self-fix on the first upload using the new core 😄
@jan1za @TimEllis2019 @per1234 @btabuenca @jguen @OmriEg

@ghost
Copy link
Author

ghost commented May 24, 2019 via email

@jan1za
Copy link

jan1za commented May 24, 2019 via email

@btabuenca
Copy link

Thanks for your work guys! Now it works.

Just for your information in case it helps ... now I get the following warning:

avrdude: WARNING: invalid value for unused bits in fuse "fuse5", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xcd instead of 0xc9 (double check with your datasheet first).

@EbStewart
Copy link

Just for your information in case it helps ... now I get the following warning:

avrdude: WARNING: invalid value for unused bits in fuse "fuse5", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xcd instead of 0xc9 (double check with your datasheet first).

I get this too. Using an Uno wifi rev2 in both arduino IDE and Visual Studio 2017 with vMicro plugin.

Things seem to work anyway, do I need to fix anything? if so, how can I 'use 0xcd instead of 0xc9'?

@per1234
Copy link
Contributor

per1234 commented Jan 4, 2020

do I need to fix anything?

@EbStewart no. See arduino/Arduino#9443

@ghost
Copy link
Author

ghost commented Jan 4, 2020 via email

@EbStewart
Copy link

EbStewart commented Jan 4, 2020 via email

@EbStewart
Copy link

@per1234 Thank you.

@barrypress
Copy link

Should this still be happening as of late July?

@iowagrade
Copy link

Mid August of 2020 and I am having similar problem. I tried it on 2 different computers using Windows 7 with same result. I ordered a new "Uno wifi Rev2" board, but want this one to work too.

I didn't get quite as far as those above. Com Port seems to show up correctly and appear / disappear when I plug / unplug usb cable. I am trying to upload simple blink program. Error report:

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno WiFi Rev2, ATMEGA328"
Sketch uses 1772 bytes (3%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
C:\Users\Q\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino16/bin/avrdude -CC:\Users\Q\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino16/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Uflash:w:C:\Users\Q\AppData\Local\Temp\arduino_build_216997/dim_bw.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:C:\Users\Q\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.1/bootloaders/atmega4809_uart_bl.hex:i

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

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

     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

avrdude: Short read, read only 0 out of 64 bytes
avrdude: jtag3_edbg_recv(): Unexpected response 0xa0

avrdude: Short read, read only 0 out of 64 bytes
avrdude: jtag3_edbg_send(): Unexpected response 0x27, 0x00
avrdude: Failed to write 64 bytes to USB
avrdude: jtag3_edbg_recv(): error sending CMSIS-DAP vendor command
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: Failed to write 64 bytes to USB
avrdude: jtag3_edbg_send(): failed to send command to serial port
avrdude: Failed to write 64 bytes to USB
avrdude: jtag3_edbg_recv(): error sending CMSIS-DAP vendor command
avrdude: Failed to write 64 bytes to USB
avrdude: jtag3_edbg_send(): failed to send command to serial port
avrdude: Failed to write 64 bytes to USB
avrdude: jtag3_edbg_recv(): error sending CMSIS-DAP vendor command
avrdude: Failed to write 64 bytes to USB
the selected serial port avrdude: Failed to write 64 bytes to USB
does not exist or your board is not connected
avrdude: jtag3_edbg_signoff(): failed to send command to serial port

avrdude done. Thank you.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any and all recommendation or advice is appreciated. Thank you.

@ghost
Copy link
Author

ghost commented Aug 21, 2020

Check your board manager. Your library for arduino megaARV boards should be 1.8.6. It's been a while but I think that fixed my issue with this.
-tim

@iowagrade
Copy link

Hi Tim,
Thank you for your response. I have been using the updated 1.8.6 version, but happened to be cycling through uninstall and trying different versions when I copied that debug report. Now it says: avrdude: Version 6.3-20190619

Some other possibly relevant stuff:
-The mEDBG Virtual COM Port driver I am using is version 6.0.0.1 from 6/14/2013.
-The firmware updater for wifiNina says it can't connect to the board
-The "get Board Info" command responds with information that seems to recognize board type and has SN
-I tried installing Atmel Studio, but didn't seem to get any updated driver files.

I ordered a new Uno wifi Rev2 board which should arrive Monday. Hopefully it will work, but any other suggestions are welcome.

@iowagrade
Copy link

I just tried it with the arduino online tools. They recognized that it was an arduino Uno wifi Rev2, but everything else was the same as far as error received :(

@EbStewart
Copy link

EbStewart commented Aug 22, 2020

Why are you using the setting emulating ATMEGA328? I did have mine working well when set to Atmega 4809. (But now something else has blown up. I'll come back to the discussion later, time permitting.) Anyway, see if that has anything to do with your woes.

@iowagrade
Copy link

Thank you for the reply. I tried that too. In the Tools menu > Registers Emulation, the 2 choices I get are:
ATMEGA328
None (ATMEGA4809)

Then the first line in the output shows:
Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno WiFi Rev2, None (ATMEGA4809)"

The only other thing that shows up different in the error output is at the very end, it says:
the selected serial port
does not exist or your board is not connected

And I still receive information with either Registers Emulation mode when I exercise Tools > Get Board Info

@barrypress
Copy link

barrypress commented Aug 22, 2020 via email

@antaxiom
Copy link

antaxiom commented Nov 14, 2020

2 months since the last post made here, I still have this issue and I'm unable to fix it. I thought it was a linux issue (I used arch linux for the record) and now I've tried it on windows and I have word for word the same issue. I've tried many versions of the megaARV boards including the latest (1.8.6). I have an equivalent of the UNO WiFi Rev 2 but it seems to be identical to my understanding. If someone could shed some more light on this issue that would be great, please and thank you.

Edit:
I want to mention on my COM(3) the board is shown as simply an Arduino Uno (which it isn't) if that's a factor

@manilal2
Copy link

I have custom made PCB using ATMEGA4809 (according to schematic ( https://camo.githubusercontent.com/0318ea09473584a26d3f653e1501e8ba43a524259eb7dfe0a36920a9d6d7bd05/68747470733a2f2f692e696d6775722e636f6d2f784e6778627a582e706e67))

I am getting following error, I am using atmel ICE (updi)

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

     System wide configuration file is "/root/.arduino15/packages/MegaCoreX/hardware/megaavr/1.0.7/avrdude.conf"
     User configuration file is "/root/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : usb
     Using Programmer              : atmelice_updi

avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J42700031106
avrdude: max packet size expected 912, but found 512 due to EP 0x01'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-ICE (ARM/AVR) in UPDI mode
     ICE hardware version: 0
     ICE firmware version: 1.41 (rel. 137)
     Serial number   : J42700031106
     Vtarget         : 5.01 V
     JTAG clock megaAVR/program: 1000 kHz
     JTAG clock megaAVR/debug:   1000 kHz
     JTAG clock Xmega: 1000 kHz
     PDI clock Xmega : 1000 kHz

avrdude: Partial Family_ID returned: ""
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: bad response to enter progmode command: 0xa0
avr_read(): error reading address 0x0000
read operation failed for memory "signature"
avrdude: error reading signature data for part "ATmega4809", rc=-70
avrdude: error reading signature data, rc=-70

avrdude done. Thank you.

Error while burning bootloader.

I am trying to burn bootloader ( on UART1, I have connections according to my schematics)

@ghost
Copy link
Author

ghost commented Jan 27, 2021 via email

@per1234
Copy link
Contributor

per1234 commented Jan 27, 2021

My condolences Debbie.

Arduino doesn't have any way to unsubscribe your account. If you click the "unsubscribe" link at the bottom of the email it will unsubscribe you from this specific thread, but that doesn't affect the other threads you are subscribed to. You can control the email notification preferences for the entire account here:
https://github.com/settings/notifications

@manilal2
Copy link

how do you execute chip erase using updi...?

@manilal2
Copy link

I was able to program third board using atmel ( microchip) studio , where I erased it before programming , after programming verification was successful , when I try to flash sketch ( led blink sketch ) it gave me (bootloader and arduino IDE verification error , subsequently I tried to reprogram atmega4809 ( 48 pin) bootloader and I was not able to put in program mode , is there some fuse setting which will allow me to put atmeag4809 in program mode , right now I am unable to program it ( it says unable to put atmega4809 in programming mode , once program I am unable to erase it )

also what bootloader I should be using my parameters are 20Mhz internal clock, baud rate 115200,optiboot UART on serial 1 ,BOD 2.6v ,48 pin standard, Reset pin Reset , can some one give me filename for bootloader and where it is in arduino ide...?

umbynos referenced this issue in umbynos/avrdude May 10, 2022
umbynos added a commit to umbynos/avrdude that referenced this issue May 19, 2022
umbynos added a commit to umbynos/avrdude that referenced this issue May 24, 2022
umbynos added a commit to umbynos/avrdude that referenced this issue May 31, 2022
umbynos added a commit to umbynos/avrdude that referenced this issue Jun 6, 2022
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