cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4xx.h:6965:30: fatal error: stm32f4xx_conf.h: No such file or directory

oengenheiro
Associate
Posted on August 19, 2013 at 18:34

Hi, I'm new with ARM and STM32F4.

I'm trying to setup a free STM32F4 development environment with Eclipse and GCC ARM Toolchain based in this tutorial:http://hertaville.com/2012/05/28/gcc-arm-toolchain-stm32f0discovery/ I've changed make file to adequate from stm32f0 to stm32f4. When I give the command ''make'' from DOS, it returns me code below:

make arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=cortex-m4 -g -gdwarf-2 -mthumb -Wa,-amhls=.\startup\startup_stm32f4xx.lst .\startup\startup_stm32f4xx.s -o .\startup\startup_stm32f4xx.o arm-none-eabi-gcc -c -mcpu=cortex-m4 -Os -gdwarf-2 -mthumb -fomit-frame-pointer -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=.\src\main.lst -DSTM32F4XX-DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -DRUN_FROM_FLASH=1 -MD -MP -MF .dep\main.o.d 
-I . 
-I..\..\STM32F4-Discovery_FW_V1.1.0\Libraries\CMSIS\ST\STM32F4xx\Include 
-I..\..\STM32F4-Discovery_FW_V1.1.0\Libraries\CMSIS\Include 
-I..\..\STM32F4-Discovery_FW_V1.1.0\Libraries\STM32F4xx_StdPeriph_Driver\inc 
-I..\..\STM32F4-Discovery_FW_V1.1.0\Utilities\STM32F4-Discovery 
-I..\..\STM32F4-Discovery_FW_V1.1.0\Libraries\STM32F4xx_StdPeriph_Driver\src 
-I.\inc 
.\src\main.c -o 
.\src\main.o
In file included from .\src\main.c:23:0:..\..\STM32F4-Discovery_FW_V1.1.0\Libraries\CMSIS\ST\STM32F4xx\Include/stm32f4xx.h
:6965:30: fatal error: stm32f4xx_conf.h: No such file or directorycompilation terminated.make: *** [.\src\main.o] Error 1

I think this problem could be in this peace of code in stm32fxx.h:

#ifdef USE_STDPERIPH_DRIVER
#include ''stm32f4xx_conf.h''
#endif /* USE_STDPERIPH_DRIVER */

Could someone help me please?
1 REPLY 1
Posted on August 19, 2013 at 18:57

The usual place for this file is in your project directory to tailor the library to your needs.

Want to see an example, then look at the project templates in the firmware libraries. You might want a space between these ''

-DSTM32F4XX-DUSE_STDPERIPH_DRIVER

''
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..