arduino / ArduinoCore-megaavr

Arduino Core for the ATMEGA4809 CPU
103 stars 62 forks source link

Problem Downloading code to Wifi Rev2 #33

Closed ghost closed 5 years ago

ghost commented 5 years ago

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_x86mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\hardware -hardware C:\Users\telli\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\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_x86mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\hardware -hardware C:\Users\telli\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\telli\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\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_x86mdqgnx93n4wtt\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 commented 5 years ago

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 commented 5 years ago

Bernardo,

Did you change your code so that you were forcing the compiler to use more flash instead of RAM? IE

Serial.print(F("Write something on the Serial Monitor that is stored in FLASH"));

Or

const char StyleHTML[] =" some long string like a web page”;

My issue started after I started using these.

-tim

From: Bernardo Tabuenca notifications@github.com Sent: Monday, May 6, 2019 10:49 PM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Author author@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

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"

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

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-489917863 , or mute the thread https://github.com/notifications/unsubscribe-auth/ALDZRXLUXRRGABXCIGXBYFLPUEJ6FANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXKI3SIDDYFPI2SH6LLPUEJ6FA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODUZY3JY.gif

btabuenca commented 5 years ago

Unfortunately, that is not my case.

btabuenca commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

btabuenca commented 5 years ago

@agdl Here you are a photo from mine

IMG_3567

ghost commented 5 years ago

Photo attached. Please let me know if you need anything else.

-tim

From: Arturo Guadalupi notifications@github.com Sent: Wednesday, May 8, 2019 8:37 AM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

@TimEllis2019 https://github.com/TimEllis2019 Can you please send us a top photo of your board?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-490536644 , or mute the thread https://github.com/notifications/unsubscribe-auth/ALDZRXIHHJOKINT7PAMTTWLPULXQHANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXOVP7YHACDWHSH3KUDPULXQHA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODU6P5RA.gif

ghost commented 5 years ago

Martino, would it be helpful to send my board in?

From: Martino Facchin notifications@github.com Sent: Wednesday, May 8, 2019 12:55 AM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Author author@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

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.

— You are receiving this because you authored the thread. Reply to this email directly, https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-490387560 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/ALDZRXM4PER7BANIZUITQ2TPUKBOFANCNFSM4HJGN5ZQ mute the thread. https://github.com/notifications/beacon/ALDZRXL37XYOMLR6ISSGKCTPUKBOFA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODU5LQ2A.gif

per1234 commented 5 years ago

Photo attached.

@TimEllis2019 email attachments don't work on GitHub. Please open this issue thread in your browser: https://github.com/arduino/ArduinoCore-megaavr/issues/33 and then attach the photo in a reply made right to the thread on GitHub, rather than via an email reply.

ghost commented 5 years ago

Let me know if you want me to send back my board if that is of use.

-tim

From: Arturo Guadalupi notifications@github.com Sent: Wednesday, May 8, 2019 8:37 AM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

@TimEllis2019 https://github.com/TimEllis2019 Can you please send us a top photo of your board?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-490536644 , or mute the thread https://github.com/notifications/unsubscribe-auth/ALDZRXIHHJOKINT7PAMTTWLPULXQHANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXOVP7YHACDWHSH3KUDPULXQHA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODU6P5RA.gif

ghost commented 5 years ago

I don’t see a picture. Gethub sent my email back saying no attachments. Then failed because my email was too big.

From: Bernardo Tabuenca notifications@github.com Sent: Wednesday, May 8, 2019 3:14 PM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

Here you are a photo from mine

https://user-images.githubusercontent.com/895658/57411914-3c0b3280-71ef-11e9-915c-03c3ba6b1bf1.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-490670228 , or mute the thread https://github.com/notifications/unsubscribe-auth/ALDZRXLPGRNGXVHOT5MY2Z3PUNGDNANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXLZIUL3PPNSKWNK4IDPUNGDNA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODU7QRFA.gif

facchinm commented 5 years ago

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

jguen commented 5 years ago

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 commented 5 years ago

small Sorry my picture did not go thru.

OmriEg commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

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 commented 5 years ago

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

ghost commented 5 years ago

I just downloaded the new core and was able to reprogram my “failing Wifi Rev 2” board.

One comment, when I went to the board manager it did not tell me a new version of the code was available like I remember in the past when changes were made. I had to look at the download list to see 1.8.1.

Thanks for your efforts on this.

From: Martino Facchin notifications@github.com Sent: Friday, May 24, 2019 8:22 AM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

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 https://github.com/jan1za @TimEllis2019 https://github.com/TimEllis2019 @per1234 https://github.com/per1234 @btabuenca https://github.com/btabuenca @jguen https://github.com/jguen @OmriEg https://github.com/OmriEg

— You are receiving this because you were mentioned. Reply to this email directly, https://github.com/arduino/ArduinoCore-megaavr/issues/33?email_source=notifications&email_token=ALDZRXNK5AHRTRVMF3XGK5TPXAB27A5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFWRSA#issuecomment-495675592 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/ALDZRXIDDXCFBUHDM33ZQE3PXAB27ANCNFSM4HJGN5ZQ mute the thread. https://github.com/notifications/beacon/ALDZRXMEFZJH4EYLZD6Q2G3PXAB27A5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFWRSA.gif

jan1za commented 5 years ago

Thank you for all the work. Unfortunately I exchanged the WiFi rev 2 for a yun as I needed a working demo for today else I would have tried the fix.

Thank you once again for all your efforts.

On Fri, 24 May 2019 at 18:46, TimEllis2019 notifications@github.com wrote:

I just downloaded the new core and was able to reprogram my “failing Wifi Rev 2” board.

One comment, when I went to the board manager it did not tell me a new version of the code was available like I remember in the past when changes were made. I had to look at the download list to see 1.8.1.

Thanks for your efforts on this.

From: Martino Facchin notifications@github.com Sent: Friday, May 24, 2019 8:22 AM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention < mention@noreply.github.com> Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

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 https://github.com/jan1za @TimEllis2019 < https://github.com/TimEllis2019> @per1234 https://github.com/per1234 @btabuenca https://github.com/btabuenca @jguen https://github.com/jguen @OmriEg https://github.com/OmriEg

— You are receiving this because you were mentioned. Reply to this email directly, < https://github.com/arduino/ArduinoCore-megaavr/issues/33?email_source=notifications&email_token=ALDZRXNK5AHRTRVMF3XGK5TPXAB27A5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFWRSA#issuecomment-495675592> view it on GitHub, or < https://github.com/notifications/unsubscribe-auth/ALDZRXIDDXCFBUHDM33ZQE3PXAB27ANCNFSM4HJGN5ZQ> mute the thread. < https://github.com/notifications/beacon/ALDZRXMEFZJH4EYLZD6Q2G3PXAB27A5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFWRSA.gif>

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33?email_source=notifications&email_token=ABOCZTV2EWTHRF5LK47WUN3PXALWVA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWF53UY#issuecomment-495705555, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOCZTXYVOKP6SCAC4YJKELPXALWVANCNFSM4HJGN5ZQ .

btabuenca commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

do I need to fix anything?

@EbStewart no. See https://github.com/arduino/Arduino/issues/9443

ghost commented 4 years ago

My version of the compiler works fine. I get the same warnings but my code works.

-tim

From: per1234 notifications@github.com Sent: Friday, January 3, 2020 5:33 PM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

do I need to fix anything?

@EbStewart https://github.com/EbStewart no. See arduino/Arduino#9443 https://github.com/arduino/Arduino/issues/9443

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33?email_source=notifications&email_token=ALDZRXNCMHLQWRP4HKLF2VDQ37RNDA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEICODWA#issuecomment-570745304 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDZRXMSFOGBJFGQ6BSUU4LQ37RNDANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXJFHB2KBHEKESWDXKTQ37RNDA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEICODWA.gif

EbStewart commented 4 years ago

Mine seems to as well, but I want it to continue to do so. If this blows up at the last minute I'm screwed, so I want to be sure.

On 4 January 2020 04:05:27 GMT, TimEllis2019 notifications@github.com wrote:

My version of the compiler works fine. I get the same warnings but my code works.>

-tim>

From: per1234 notifications@github.com > Sent: Friday, January 3, 2020 5:33 PM> To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com> Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com> Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)>

do I need to fix anything?>

@EbStewart https://github.com/EbStewart no. See arduino/Arduino#9443 https://github.com/arduino/Arduino/issues/9443 >

—> You are receiving this because you were mentioned.> Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33?email_source=notifications&email_token=ALDZRXNCMHLQWRP4HKLF2VDQ37RNDA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEICODWA#issuecomment-570745304 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDZRXMSFOGBJFGQ6BSUU4LQ37RNDANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXJFHB2KBHEKESWDXKTQ37RNDA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEICODWA.gif

-- > You are receiving this because you were mentioned.> Reply to this email directly or view it on GitHub:> https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-570754597

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

EbStewart commented 4 years ago

@per1234 Thank you.

barrypress commented 4 years ago

Should this still be happening as of late July?

iowagrade commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

That’s what I have loaded, and my UNO WiFi rev 2 continues to have the error; UNO does not.

Thanks

Barry


"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright Brothers. But they also laughed at Bozo the Clown." - Carl Sagan

On Aug 21, 2020, at 3:05 PM, TimEllis2019 notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-678535854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABILZNI47U6YIYPL7AF7WTSB3VTTANCNFSM4HJGN5ZQ.

antaxiom commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Hi, this is Tim Ellis’ wife, Debbie Ellis.

Tim Ellis died unexpectedly on January 7. Can you please remove him from your lists, so that no more emails will come to his computer?

Thank you, Tim’s wife

From: manilal2 notifications@github.com Sent: Tuesday, January 26, 2021 3:45 PM To: arduino/ArduinoCore-megaavr ArduinoCore-megaavr@noreply.github.com Cc: TimEllis2019 tellis1955@gmail.com; Mention mention@noreply.github.com Subject: Re: [arduino/ArduinoCore-megaavr] Problem Downloading code to Wifi Rev2 (#33)

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)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/ArduinoCore-megaavr/issues/33#issuecomment-767903685 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDZRXKH5ORKFSMMVSYOSOTS35HWHANCNFSM4HJGN5ZQ . https://github.com/notifications/beacon/ALDZRXPUWFOCUOPXTEU7SPTS35HWHA5CNFSM4HJGN5Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXCUPRI.gif

per1234 commented 3 years ago

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 commented 3 years ago

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

manilal2 commented 3 years ago

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...?