RobotHardware-UESTC/Hardware/UPbot-Tools/问题排查.md

24 lines
638 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 依赖问题
1. 出现打不开串口或某类没有某个属性的问题,考虑是不是`serial`库装错了,要装的是`pyserial`而不是`serial`
2. 串口没有写对,如应该是`COM9`,写的却是`COM6`
![alt text](imgs\image.png)
```
pip install pyserial
```
## ST-Link 连接
对应接就行3v3、SWO、SWCLK、GND
![alt text](imgs\STM_32F103C8T6.jpg)
![alt text](imgs\接线.jpg)
## Keil烧录显示设备不匹配
可能是`Keil`版本问题,在`5.4.0`上显示的错误,但是`5.2.1`就可以正常烧录
## 正常启动但没有IMU数据
选择界面中IMU型号为`gy87`,再点设置即可。