Keil Logo

Error Compiling project - can't find header file

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Mukul Shirvaikar
Posted
25-Jul-2015 22:06 GMT
Toolset
None
New! Error Compiling project - can't find header file

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 version 5?

Build target 'CPUAsmLab'
assembling startup_stm32f4xx.s...
compiling system_stm32f4xx.c...
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
compiling main.c...
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

Read-Only
Author
Westonsupermare Pier
Posted
26-Jul-2015 00:42 GMT
Toolset
None
New! RE: Error Compiling project - can't find header file

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.

Read-Only
Author
Mukul Shirvaikar
Posted
26-Jul-2015 03:44 GMT
Toolset
None
New! RE: Error Compiling project - can't find header file

Thanks that worked. The location for the include had changed to

"C:\Keil_v5\ARM\Pack\Keil\STM32F4xx_DFP\1.0.8\Device\Include"

Read-Only
Author
ATHMESH NANDAKUMAR
Posted
16-Mar-2018 12:34 GMT
Toolset
ARM
New! RE: Error Compiling project - can't find header file

I'm a beginner, above problem occurred to me too:

C:\Keil_v5\ARM\PACK\Keil\STM32F0xx_DFP\2.0.0\Drivers\STM32F0xx_HAL_Driver\Inc\stm32f0xx_hal.h(46): 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

Read-Only
Author
cristian devareksa
Posted
9-Aug-2018 15:44 GMT
Toolset
None
New! RE: Error Compiling project - can't find header file

can you explain me be specific... i cant understand to solve that??

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.