I am getting the following error upon compiling a simple project
for STM32F407VG on MDK version 5 for the Discovery Board. All packs
are installed fine. Please note, the header file is all uppercase in
this example. Any suggestions? Do I need to transition the project to
Build target 'CPUAsmLab'
system_stm32f4xx.c(117): error: #5: cannot open source input file
"stm32f4xx.h": No such file or directory #include "stm32f4xx.h"
system_stm32f4xx.c: 0 warnings, 1 error
src\main.c(2): error: #5: cannot open source input file
"STM32F4xx.h": No such file or directory #include "STM32F4xx.h"
src\main.c: 0 warnings, 1 error
".\template.axf" - 2 Error(s), 0 Warning(s).
Target not created
Go to your C/C++ Project Options and ADD all the include paths you
need for the project. Determine where this specific file is with
respect to your project directory. Windows is case insensitive.
Thanks that worked. The location for the include had changed
I'm a beginner, above problem occurred to me too:
error: #5: cannot open source input file "stm32f0xx_hal_conf.h": No
such file or directory
i did what you said above, i.e. to include the paths for the
header files needed. but got the same issue
You need to right-click in the .c file that calls the header file (or the .c that calls the header file wich calls the header [...] wich calls the header file missing, don't matters how many levels of calls), and in the "options for file", in the C/C++ tab, you must include the path of your header file that is missing.
I believe it's safe to assume that after 2 years, Athmesh is no longer in need of that information.
View all questions in Keil forum