Fatal Error[Pe1696]: cannot open source file "usart.h" E:\stm32\GONGCHEN\F103\f103\EWARM\FWLIB\Src\usart.c 21
时间: 2023-11-18 19:02:50 浏览: 259
这个错误提示表明编译器无法找到名为"usart.h"的头文件。这可能是由于以下原因导致的:
1. 头文件路径设置不正确。
2. 头文件名称拼写错误。
3. 头文件不存在于指定路径中。
解决方案:
1. 确认头文件路径是否正确,如果不正确,请修改路径设置。
2. 检查头文件名称是否正确拼写,如果不正确,请修改头文件名称。
3. 确认头文件是否存在于指定路径中,如果不存在,请将头文件添加到指定路径中。
```c
#include "usart.h" // 包含头文件
// 在这里编写相关代码
```
阅读全文
相关推荐
![7z](https://img-home.csdnimg.cn/images/20241231044736.png)
![.rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![](https://img-home.csdnimg.cn/images/20250102104920.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![h](https://img-home.csdnimg.cn/images/20250102104920.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![h](https://img-home.csdnimg.cn/images/20250102104920.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![h](https://img-home.csdnimg.cn/images/20250102104920.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pptx](https://img-home.csdnimg.cn/images/20241231044947.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)