公告版位
沒有痛苦 就沒有收穫 pre class="brush: cpp" <>
歡迎進入蘋果的世界

錯誤處理

注意:如果編譯直行時出現下列訊息,就是電腦與 Arduino 板子無法溝通。

avrdude : stk500_getsync():not in sync: resp=0x00

此時需注意下列事項。

  1. USB 有沒有連接。(看 Arduino 板子上的燈有沒有亮就可以確認這點)
  2. 有沒有設定 Arduino 的驅動程式。
    • 在我的電腦中位在 D:\arduino-1.0\drivers 當中
    • 您插入 Arduino 之後會出現新增硬體畫面,此時選擇 D:\arduino-1.0\drivers 資料夾就可以了。
    • Arduino Board 的板型是否正確 (選擇 Arduino IDE 功能表中的 Tool/Board 確認板型)
    • COM port 設定是否正確。
      • 選擇 Arduino IDE 功能表中的 Tool/Serial port 確認 port
      • 您可以用裝置管理員看看 (XP 中選 /控制台/系統/硬體/裝置管理員/連接埠/),由於我的 Arduino-UNO 用 USB 模擬為 COM3,因此我在 Tool/Serial port 必須選擇 COM3。
創作者介紹
創作者 阿倫 的頭像
阿倫

不會的就放這邊

阿倫 發表在 痞客邦 留言(25) 人氣()


留言列表 (25)

發表留言
  • 訪客
  • avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x45
    出現這個是什麼問題呢
  • 不要選AVR ISP

    阿倫 於 2017/01/12 03:43 回覆

  • set
  • avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x45
    這是甚麼問題呢
  • 不要選AVR ISP

    阿倫 於 2017/01/12 03:43 回覆

  • 游政修
  • sketch_may23a.ino:42:20: error: invalid suffix "AEB" on integer constant
  • ?

    阿倫 於 2016/05/27 09:59 回覆

  • 訪客
  • avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x44
  • 阿奇

  • data.ino:2:71: fatal error: Servo.h : No such file or directory
    compilation terminated.
  • 請問這個呢@@
  • avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    上傳草稿碼時發生錯誤

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • 余孟翰
  • 請問這個是什麼意思??
    Arduino:1.8.3 Hourly Build 2017/03/23 09:33 (Windows 10), 開發板:"Arduino/Genuino Uno"

    c:\users\user\desktop\arduino\arduino-nightly\hardware\tools\avr\bin\../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; reason: File exists

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。

  • 有東西沒有載入吧

    阿倫 於 2017/11/07 11:59 回覆

  • JOHN
  • 請問一下這是甚麼意思?
    Arduino:1.8.0 (Windows 7), 開發板:"Arduino/Genuino Uno"

    C:\Users\123\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\cores\arduino\main.cpp: In function 'main':

    C:\Users\123\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\cores\arduino\main.cpp:51:1: error: unable to find a register to spill in class 'NO_REGS'

    }

    ^

    C:\Users\123\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\cores\arduino\main.cpp:51:1: error: this is the insn:

    (insn 581 578 584 41 (set (mem:QI (post_dec:HI (reg/f:HI 32 __SP_L__)) [0 S1 A8])

    (subreg:QI (reg/f:HI 401) 1)) C:\Users\123\Desktop\撠?_11Arduino_tcp_sportcar_u1\_11Arduino_tcp_sportcar_u1.ino:133 1 {pushqi1}

    (expr_list:REG_ARGS_SIZE (const_int 7 [0x7])

    (nil)))

    C:\Users\123\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.17\cores\arduino\main.cpp:51: confused by earlier errors, bailing out

    lto-wrapper: C:\Users\123\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-gcc returned 1 exit status

    c:/users/123/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: lto-wrapper failed

    collect2.exe: error: ld returned 1 exit status

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • mpxup164
  • f請問為甚麼出現這個
    Arduino:1.8.5 (Windows 7), 開發板:"Arduino Nano, ATmega328P"

    D:\?憓??冗\?憓??冗\11\11.ino:2:20: fatal error: font.h: No such file or directory

    compilation terminated.

    exit status 1
    開發板 Arduino Nano 編譯錯誤。

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • 怎會亂碼
    有用最新版本試看看嗎

    阿倫 於 2017/11/07 11:59 回覆

  • QK
  • Arduino:1.8.3 (Windows 7), 開發板:"Ameba RTL8195A"

    WARNING: Category 'AmebaArducam' in library AmebaArducam is not valid. Setting to 'Uncategorized'
    Archiving built core (caching) in: C:\Users\Jackie\AppData\Local\Temp\arduino_cache_406485\core\core_realtek_ameba_ameba_rtl8195a_63a185f82842f83c06c8a87a7ab9e740.a
    草稿碼使用了 78521 bytes (3%) 的程式儲存空間。上限為 2097152 bytes。
    java.io.IOException: Cannot run program "C:\Users\Jackie\AppData\Local\Arduino15\packages\realtek\tools\ameba_tools\1.0.9/upload_dap.exe": CreateProcess error=2, 系統找不到指定的檔案。
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
    at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
    at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:207)
    at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
    at processing.app.SketchController.upload(SketchController.java:713)
    at processing.app.SketchController.exportApplet(SketchController.java:686)
    at processing.app.Editor$DefaultExportHandler.run(Editor.java:2149)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.io.IOException: CreateProcess error=2, 系統找不到指定的檔案。
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
    at java.lang.ProcessImpl.start(ProcessImpl.java:137)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 8 more
    上傳草稿碼時發生錯誤

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • 重開一個專案編看看

    阿倫 於 2017/11/12 20:55 回覆

  • 訪客
  • Arduino:1.8.5 (Windows 10), 開發板:"Arduino/Genuino Uno"

    草稿碼使用了 2886 bytes (8%) 的程式儲存空間。上限為 32256 bytes。
    全域變數使用了 194 bytes (9%) 的動態記憶體,剩餘 1854 bytes 給區域變數。上限為 2048 bytes 。
    上傳草稿碼時發生錯誤

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • 你系統是win10嗎?
    IDE版本是多少
    更新到1.6.10版本試看看

    阿倫 於 2017/11/27 10:20 回覆

  • 訪客
  • System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

    Using Port : COM4
    Using Programmer : arduino
    Overriding Baud Rate : 115200
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

    avrdude done. Thank you.
    請問怎麼解決
  • 你有選對板子嗎?

    參考這篇
    https://forum.arduino.cc/index.php?topic=332638.0

    阿倫 於 2017/11/27 13:52 回覆

  • 訪客
  • Auto_Watering:20: error: 'LiquidCrystal_I2C' does not name a type
    Auto_Watering.ino: In function 'void setup()':
    Auto_Watering:168: error: 'class EEPROMClass' has no member named 'update'
    Auto_Watering:173: error: 'Lcd' was not declared in this scope
    Auto_Watering.ino: In function 'void loop()':
    Auto_Watering:309: error: 'class EEPROMClass' has no member named 'update'
    Auto_Watering:310: error: 'class EEPROMClass' has no member named 'update'
    Auto_Watering:311: error: 'class EEPROMClass' has no member named 'update'
    Auto_Watering:312: error: 'class EEPROMClass' has no member named 'update'
    Auto_Watering:313: error: 'class EEPROMClass' has no member named 'update'
    Auto_Watering:517: error: 'Lcd' was not declared in this scope
    Auto_Watering:537: error: 'Lcd' was not declared in this scope
    Auto_Watering:561: error: 'Lcd' was not declared in this scope
    Auto_Watering:598: error: 'Lcd' was not declared in this scope
    Auto_Watering:604: error: 'Lcd' was not declared in this scope
    Auto_Watering:616: error: 'Lcd' was not declared in this scope
    Auto_Watering:621: error: 'Lcd' was not declared in this scope
    Auto_Watering:651: error: 'Lcd' was not declared in this scope
    Auto_Watering:675: error: 'Lcd' was not declared in this scope
    Auto_Watering:706: error: 'Lcd' was not declared in this scope
    Auto_Watering:745: error: 'Lcd' was not declared in this scope
    Auto_Watering:771: error: 'Lcd' was not declared in this scope
    Auto_Watering:780: error: 'Lcd' was not declared in this scope
    Auto_Watering:806: error: 'Lcd' was not declared in this scope
    Auto_Watering:832: error: 'Lcd' was not declared in this scope
    Auto_Watering:841: error: 'Lcd' was not declared in this scope
    Auto_Watering:869: error: 'Lcd' was not declared in this scope
    Auto_Watering:883: error: 'Lcd' was not declared in this scope
    Auto_Watering:950: error: 'Lcd' was not declared in this scope
    Auto_Watering:983: error: 'Lcd' was not declared in this scope


    請問怎麼解決
  • 下載 LCD I2C library 加進去

    參考 http://anal02.pixnet.net/blog/post/101223261#comment-61817646

    阿倫 於 2017/12/07 11:34 回覆

  • 訪客
  • In file included from C:\Users\user\Desktop\Auto_Watering\Auto_Watering.ino:4:0:

    C:\Program Files (x86)\Arduino\libraries\LiquidCrystal_v2/LiquidCrystal_I2C.h: In function 'void setup()':

    C:\Program Files (x86)\Arduino\libraries\LiquidCrystal_v2/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private

    int init();

    ^

    Auto_Watering:173: error: within this context

    Lcd.init();

    ^

    使用程式庫Wire、版本1.0,位於資料夾:C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
    在資料夾:C:\Program Files (x86)\Arduino\libraries\LiquidCrystal_v2 (legacy) 中使用函式庫 LiquidCrystal_v2
    使用程式庫EEPROM、版本2.0,位於資料夾:C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM
    使用程式庫Servo、版本1.1.2,位於資料夾:C:\Program Files (x86)\Arduino\libraries\Servo
    exit status 1
    within this context

    請問這怎麼解決?

  • 訪客
  • 請問這個該如何處理
    Arduino:1.8.5 (Windows 10), 開發板:"Arduino/Genuino Uno"

    C:\Users\user\Desktop\sketch_dec24a\sketch_dec24a.ino:1:17: fatal error: dht.h: No such file or directory

    #include <dht.h>

    ^

    compilation terminated.

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • 訪客
  • Arduino:1.8.4 (Windows XP), 開發板:"Arduino/Genuino Uno"

    C:\Documents and Settings\Administrator\My Documents\Downloads\i2cdevlib-master\i2cdevlib-master\Arduino\MPU6050\examples\MPU6050_raw\MPU6050_raw.ino:36:20: fatal error: I2Cdev.h: No such file or directory

    #include "I2Cdev.h"

    ^

    compilation terminated.

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。
    在C:\Documents and Settings\Administrator\桌面\Arduino\libraries\i2cdevlib-master: C:\Documents and Settings\Administrator\桌面\Arduino\libraries\i2cdevlib-master裡找到無效的程式庫

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

    請問這個該怎麼處理???
  • 可能是有函式庫 library檔案沒弄好吧
    參考這篇
    http://ming-shian.blogspot.tw/2014/05/arduino21mpu6050row-data.html

    阿倫 於 2017/12/29 17:20 回覆

  • 訪客
  • 建置選項已變更,重新建置
    Archiving built core (caching) in: C:\Users\user\AppData\Local\Temp\arduino_cache_246533\core\core_arduino_avr_uno_95be0001ba428f960b426f5c86ea770e.a
    草稿碼使用了 4512 bytes (13%) 的程式儲存空間。上限為 32256 bytes。
    全域變數使用了 460 bytes (22%) 的動態記憶體,剩餘 1588 bytes 給區域變數。上限為 2048 bytes 。
    avrdude: ser_open(): can't set com-state for "\\.\COM7"
    上傳草稿碼時發生錯誤
  • 訪客
  • 不好意思,想請問這是什麼問題?
    avrdude: verification error, first mismatch at byte 0x0000
    0xff != 0x0c
    avrdude: verification error; content mismatch
    avrdude: verification error; content mismatch

  • 板子可能壞掉了
    弄另一塊是看看

    或是你有接LCM或什麼設備嗎?

    阿倫 於 2018/01/16 10:34 回覆

  • 訪客
  • exit status 1
    開發板 Arduino Nano 編譯錯誤。
    請問這是甚麼問題呢???
  • 關掉防毒軟體看看

    阿倫 於 2018/02/21 11:35 回覆

  • 訪客
  • 這是甚麼問題
    Arduino:1.8.5 (Windows 8.1), 開發板:"Arduino/Genuino Uno"

    D:\????VoiceLED\VoiceLED.ino:2:22: fatal error: ld3320.h: No such file or directory

    compilation terminated.

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
  • 你路徑換成英文路徑看看 都變亂碼了

    阿倫 於 2018/02/21 11:37 回覆

  • 彥彥

  • In file included from D:\My Documents\USER\My Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:

    D:\My Documents\USER\My Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

    #include <Adafruit_Sensor.h>

    ^

    compilation terminated.

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。
  • 要載入濕度感測器的.h檔
    可以收尋一下google

    阿倫 於 2018/02/21 11:37 回覆

  • 彥彥
  • sketch_feb20a:3: error: #include expects "FILENAME" or <FILENAME>

    #include

    ^

    sketch_feb20a:4: error: #include expects "FILENAME" or <FILENAME>

    #include

    ^

    exit status 1
    #include expects "FILENAME" or <FILENAME>
    這是哪邊的問題阿感謝
  • 試看看前面加入 #include "recip.hpp"

    或是 include " XXX" 改成 <XXXX>

    阿倫 於 2018/02/21 11:40 回覆

  • kid6535
  • Arduino:1.8.5 (Windows 10), 開發板:"Arduino/Genuino Uno"

    C:\Users\User\AppData\Local\Temp\arduino_modified_sketch_55431\sketch_mar19b.ino:1:28: fatal error: softwareserial.h: No such file or directory

    #include <softwareserial.h>

    ^

    compilation terminated.

    exit status 1
    開發板 Arduino/Genuino Uno 編譯錯誤。

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    請問這是什麼問題
  • Jake
  • 請問願意一對一輔導Arduino的相關技術嗎?
    願意付費的,在學習過程中碰到不少問題,
    急需請求支援.
    可以用email進一步聯繫: zlyu@ms28.hinet.net
    感恩!!
  • hi您好
    有什麼能幫助您的
    email如下
    jingluenwork @ gmail.com

    阿倫 於 2018/03/21 11:32 回覆

  • 訪客
  • 編譯找到多個程式庫怎麼解決
  • 可能lib有重複到

    阿倫 於 2018/05/23 11:36 回覆