AnsweredAssumed Answered

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

Question asked by Daniel on Aug 19, 2013
Latest reply on Aug 19, 2013 by Clive One
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?

Outcomes