avrdude:读取零件“ ATmega4809”的签名数据时出错,rc = -67

时间:2019-05-07 06:06:06

标签: avrdude arduino-uno-wifi

使用 Arduino uno wifi rev2 开发板几个月后,在上传任何程序时突然出现以下消息。在Mac,Windows和其他电缆上进行了测试...


Arduino:1.8.9(Mac OS X),开发板:“ 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

更新

刚刚尝试了今天早上正在工作的第二个Arduino UNO wifi rev-2。现在,我得到了相同的错误消息,并且没有修改任何代码行。

这是事情发生的顺序:

  1. 今天早上在Genuino linux上对其进行了测试。工作了!
  2. 今天下午在Genuino Mac中对其进行了测试。工作了!
  3. 今天下午在Genuino linux上对其进行了测试。没用
  4. 今天下午在Genuino Mac中对其进行了测试。没用

我无法上传任何程序

请告诉我是否可以帮助您进行任何测试

1 个答案:

答案 0 :(得分:0)

此错误已在Arduino 1.8.1版中解决

转到Genuino>工具>板“ Arduino Uno Wifi Rev2“>板管理器  ...并更新到1.8.1(或最新版本)

阅读here to find more details