nodemcu warning: espcomm_sync failederror

解决nodemcu上传程序失败
当使用Arduino向nodemcu上传程序遇到espcomm_syncfailederror警告时,持续按下开发板上的flash按钮直至上传完成可解决问题。此方法适用于nodemcu与Arduino编译程序上传的常见错误。

通过Arduino向nodemcu上传编译程序时,报如下错误时:
nodemcu warning: espcomm_sync failederror

解决方案:
在上传时,一直按着开发板上的flash按钮,直到上传成功为止。
在这里插入图片描述

参考链接:
https://blog.youkuaiyun.com/qq_19316705/article/details/79566787

w@raspberrypi:~ $ source /home/w/drone_env/bin/activate ^C/home/w/drone_env/bin/python /home/w/read_vehicle_state_final.py w@raspberrypi:~ $ /home/w/drone_env/bin/python /home/w/read_vehicle_state_final.py INFO:__main__:尝试在 /dev/serial0 @ 115200 波特率连接... ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0' WARNING:__main__:原始MAVLink通信失败,尝试 1/3 ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0' WARNING:__main__:原始MAVLink通信失败,尝试 2/3 ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0' WARNING:__main__:原始MAVLink通信失败,尝试 3/3 w@raspberrypi:~ $ INFO:__main__:尝试在 /dev/serial0 @ 115200 波特率连接... ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0' WARNING:__main__:原始MAVLink通信失败,尝试 1/3 ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0' WARNING:__main__:原始MAVLink通信失败,尝试 2/3 ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0' WARNING:__main__:原始MAVLink通信失败,尝试 3/3 w@raspberrypi:~ $ INFO:__main__:尝试在 /dev/serial0 @ 115200 波特率连接... ERROR:__main__:原始MAVLink测试失败: [Errno 13] could not open port /dev/serial0: [Errno 13] Permw@raspberrypi:~ $ 始MAVLink通信失败,尝试 3/3 could not open port /dev/serial0: [Errno 13] Perm bash: INFO:__main__:尝试在: command not found bash: ERROR:__main__:原始MAVLink测试失败:: command not found bash: WARNING:__main__:原始MAVLink通信失败,尝试: command not found bash: ERROR:__main__:原始MAVLink测试失败:: command not found bash: WARNING:__main__:原始MAVLink通信失败,尝试: command not found bash: ERROR:__main__:原始MAVLink测试失败:: command not found bash: WARNING:__main__:原始MAVLink通信失败,尝试: command not found bash: w@raspberrypi:~: command not found bash: ERROR:__main__:原始MAVLink测试失败:: command not found bash: WARNING:__main__:原始MAVLink通信失败,尝试: command not found bash: ERROR:__main__:原始MAVLink测试失败:: command not found bash: WARNING:__main__:原始MAVLink通信失败,尝试: command not found bash: ERROR:__main__:原始MAVLink测试失败:: command not found bash: WARNING:__main__:原始MAVLink通信失败,尝试: command not found bash: w@raspberrypi:~: command not found w@raspberrypi:~ $ sudo your_mavlink_program sudo: your_mavlink_program: command not found w@raspberrypi:~ $ sudo usermod -a -G dialout $USER w@raspberrypi:~ $ ls -l /dev/serial0 lrwxrwxrwx 1 root root 5 Oct 12 18:09 /dev/serial0 -> ttyS0 w@raspberrypi:~ $ /home/w/drone_env/bin/python /home/w/read_vehicle_state_final.py INFO:__main__:尝试在 /dev/w @ 115200 波特率连接... ERROR:__main__:原始MAVLink测试失败: [Errno 2] could not open port /dev/w: [Errno 2] No such file or directory: '/dev/w' WARNING:__main__:原始MAVLink通信失败,尝试 1/5 ERROR:__main__:原始MAVLink测试失败: [Errno 2] could not open port /dev/w: [Errno 2] No such file or directory: '/dev/w' WARNING:__main__:原始MAVLink通信失败,尝试 2/5 ERROR:__main__:原始MAVLink测试失败: [Errno 2] could not open port /dev/w: [Errno 2] No such file or directory: '/dev/w' WARNING:__main__:原始MAVLink通信失败,尝试 3/5 ERROR:__main__:原始MAVLink测试失败: [Errno 2] could not open port /dev/w: [Errno 2] No such file or directory: '/dev/w' WARNING:__main__:原始MAVLink通信失败,尝试 4/5 ERROR:__main__:原始MAVLink测试失败: [Errno 2] could not open port /dev/w: [Errno 2] No such file or directory: '/dev/w' WARNING:__main__:原始MAVLink通信失败,尝试 5/5 w@raspberrypi:~ $
最新发布
10-13
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值