之前很长一段时间,上传程序到板子都没有任何问题。
今天突然连不上了,而我也确定串口连接选择以及配置都没有问题。
重启电脑是万能法宝啊。
重启了就恢复正常了。
猜测原因:昨天用python打开串口。虽然python关掉了。但是也许一直占用着串口。所以arduino没法使用它的串口了。
只是猜测,有空可以验证一下。
same day later....
Yes, it is the python who is using my COM3 so that my arduino cann't connect to the board. Remenber to use the common : ser.close() , to close the access to the port so that arduino IDE can use the port.
Reasonably, when I am using the arduino IDE to connect with the board over the COM3, my python cann't open the port. After I close the arduino IDE, the port can be connectted by python again.