網站首頁 編程語言 正文
1、avrdude: ser_open(): can’t open device “\.\COM6”: 系統找不到指定的文件
arduino的IDE無法識別現在的端口,嘗試重新拔插和重新啟動IDE,如果能夠在IDE的端口中找到它即可正常使用,否則還會報錯。
說明:
有的在設備管理器中可以看到虛擬串口,但IDE中不能找到對應的串口,那么,重新啟動IDE即可。
如果電源有多個來源,我們可能會考慮共地,這個時候也會出現共地后IDE無法識別虛擬串口,可以暫時去掉共地連接,再試。
如果上述方法都沒有解決,可以考慮重新安裝串口驅動程序,或者使用VSerialDriverFixer 來修復一下亦可。
2、0號端口或1號端口原始留給串口用的,上傳時不能占用(不能插線,否則報錯)
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
3、java.io.IOException: jssc.SerialPortException: Port name:這一般屬于熱插拔器件,改變了電流電壓,引起了虛擬串口中斷,重新插拔USB也可以解決
java.io.IOException: jssc.SerialPortException: Port name - COM13; Method name - setEventsMask(); Exception type - Can’t set mask.
at processing.app.Serial.dispose(Serial.java:166)
at processing.app.SerialMonitor.close(SerialMonitor.java:116)
at processing.app.AbstractMonitor.suspend(AbstractMonitor.java:90)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2182)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM13; Method name - setEventsMask(); Exception type - Can’t set mask.
at jssc.SerialPort.setEventsMask(SerialPort.java:279)
at jssc.SerialPort.removeEventListener(SerialPort.java:1064)
at jssc.SerialPort.closePort(SerialPort.java:1090)
at processing.app.Serial.dispose(Serial.java:163)
… 4 more
4、串口參數錯誤(這種錯誤往往都因為負載太大導致,比如直接掛載了幾個舵機而沒有用外接電源)
avrdude: ser_open(): can’t set com-state for “\.\COM15”
上傳項目出錯
設置串口參數時出錯:9,600 N 8 1
原文鏈接:https://blog.csdn.net/haigear/article/details/125698950
相關推薦
- 2022-06-02 Apache?Pulsar結合Hudi構建Lakehouse方案分析_服務器其它
- 2023-02-14 Python利用Prim算法生成迷宮_python
- 2022-09-13 Android實現屏幕旋轉四個方向準確監聽_Android
- 2022-12-12 C語言中組成不重復的三位數問題_C 語言
- 2022-08-31 C++淺析類與對象基礎點_C 語言
- 2022-08-28 Spring Boot整合ElasticSearch
- 2022-08-23 C++深入講解函數重載_C 語言
- 2022-02-13 Chrome控制臺報錯:無法加載 SourceMap 錯誤:狀態代碼 404,net::ERR_HT
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支