Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关键文件找不到 #2

Open
xianjimli opened this issue Nov 8, 2023 · 5 comments
Open

关键文件找不到 #2

xianjimli opened this issue Nov 8, 2023 · 5 comments

Comments

@xianjimli
Copy link

compiling main.c...
../Core/Src/main.c(22): error:  #5: cannot open source input file "dev_uart.h": No such file or directory
  #include "dev_uart.h"
../Core/Src/main.c: 0 warnings, 1 error
compiling gpio.c...
"no source": Error:  #5: cannot open source input file "../Core/Src/gpio.c": No such file or directory
../Core/Src/gpio.c: 0 warnings, 1 error
compiling dma.c...
"no source": Error:  #5: cannot open source input file "../Core/Src/dma.c": No such file or directory
../Core/Src/dma.c: 0 warnings, 1 error
compiling usart.c...
"no source": Error:  #5: cannot open source input file "../Core/Src/usart.c": No such file or directory
../Core/Src/usart.c: 0 warnings, 1 error
compiling stm32f4xx_it.c...
../Core/Src/stm32f4xx_it.c(24): error:  #5: cannot open source input file "dev_uart.h": No such file or directory
@Prry
Copy link
Owner

Prry commented Nov 8, 2023

工程问题,手动将文件加入到工程;同时添加编译路径,即可。

@xianjimli
Copy link
Author

问题是整个目录都找不到usart.c文件。

@xianjimli
Copy link
Author

谢谢,我知道了。

@Achiyun
Copy link

Achiyun commented Jan 14, 2024

根本就没有dma.c这些东西哇

@zhaoic
Copy link

zhaoic commented May 6, 2024

有些工程不对,手动调整一下可以编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants