We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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
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.