公告版位
沒有痛苦 就沒有收穫 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。
創作者介紹

不會的就放這邊

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


留言列表 (10)

發表留言
  • 訪客
  • 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 回覆

找更多相關文章與討論