arduino
[Arduino Debug] avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82。連接埠號選對了嗎?
一、Bug描述
完成程式碼撰寫後,上傳出現以下錯誤碼 (如圖) :
草稿碼使用了 2,630 bytes (8%) 的程式儲存空間。上限為 32,256 bytes。
全域變數使用了 34 bytes (1%) 的動態記憶體,剩餘 2,014 bytes 給區域變數。上限為 2,048 bytes 。
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x82
上傳到板子時發生問題。可行建議請見http://www.arduino.cc/en/Guide/Troubleshooting#upload。
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
二、解決方法
Step 1. 檢查與Arduino相連之連接埠
如下圖所見,與Arduino相連的連接埠為COM4。Step2 .檢查Arduino操作介面上的連接埠號
順序為 "工具" >> "序列埠"查詢結果顯示,連接埠號為COM1,與電腦的連接埠號不同。
Step 3 .將Arduino介面上之連接埠號更改成與PC中裝置管理員的Arduino連接埠號相同
裝置管理中Arduino連接埠號為COM4,因此 ,在Arduino介面上的連接埠號,點選COM4。程式即可正常上傳。如下圖。
#arduino #裝置管理員 #連接埠 #resp #0x82
0 留言