This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

About stdperiph

Hello, my problem is very basic but i can't move forward without solving it.

When i write USE_STDPERIPH_DRIVER to the options for target>> c/c++ >> define section, i have an error at #include "stm32f4xx.h" line. It says "fatal error in include chain: 'stm32f4xx_conf.h' file not found". What would be the problem? Thank you

Parents
  • Well the compiler is evidently complaining that it can't find it, so it's either in the wrong place, or you don't have an adequate list of "include paths" for it to be found. In ST's model of the world it exists in the same directory as your main.c file in the root of the project directory.

     Directory of C:\Keil422\ARM\Examples\ST\STM32F4xx_DSP_StdPeriph_Lib_V1.5.0\Project\STM32F4xx_StdPeriph_Templates
    
    03/11/2015  09:18 AM    <DIR>          .
    03/11/2015  09:18 AM    <DIR>          ..
    02/13/2015  03:59 PM             5,236 main.c
    02/13/2015  03:59 PM             1,853 main.h
    03/11/2015  09:18 AM    <DIR>          MDK-ARM
    03/10/2015  04:20 PM             3,502 readme.txt
    03/06/2015  11:26 AM            29,638 Release_Notes.html
    03/06/2015  05:10 PM             4,810 stm32f4xx_conf.h
    02/13/2015  03:59 PM             4,576 stm32f4xx_it.c
    02/13/2015  03:59 PM             2,221 stm32f4xx_it.h
    03/06/2015  09:09 AM            53,272 system_stm32f4xx.c
    

Reply
  • Well the compiler is evidently complaining that it can't find it, so it's either in the wrong place, or you don't have an adequate list of "include paths" for it to be found. In ST's model of the world it exists in the same directory as your main.c file in the root of the project directory.

     Directory of C:\Keil422\ARM\Examples\ST\STM32F4xx_DSP_StdPeriph_Lib_V1.5.0\Project\STM32F4xx_StdPeriph_Templates
    
    03/11/2015  09:18 AM    <DIR>          .
    03/11/2015  09:18 AM    <DIR>          ..
    02/13/2015  03:59 PM             5,236 main.c
    02/13/2015  03:59 PM             1,853 main.h
    03/11/2015  09:18 AM    <DIR>          MDK-ARM
    03/10/2015  04:20 PM             3,502 readme.txt
    03/06/2015  11:26 AM            29,638 Release_Notes.html
    03/06/2015  05:10 PM             4,810 stm32f4xx_conf.h
    02/13/2015  03:59 PM             4,576 stm32f4xx_it.c
    02/13/2015  03:59 PM             2,221 stm32f4xx_it.h
    03/06/2015  09:09 AM            53,272 system_stm32f4xx.c
    

Children
No data