2013-06-19 04:20 AM
hey all
when i include the header stm32f4_discovery.h it recognizes it well , but it dont recognize ''GPIO_InitTypeDef'' !! and ''RCC_AHB1PeriphClockCmd'' and all GPIO_Pins! and to be sure of the header i attached it for u to see if it's good or not and thnx2013-06-19 05:45 AM
I dont think header you attached has anything to do with GPIO defines, unless KIEL has something special inside...
2013-06-19 06:04 AM
Hello Wissem,
It seems you have some missed include paths for your project. Check the ''Include paths'' in the ''Options'' of your project. MaylaTo give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2013-06-19 06:14 AM
thnx so can u tell which paths i have to add in IAR IDE please ?
2013-06-19 06:17 AM
anyway i'm using these paths
$PROJ_DIR$\ $PROJ_DIR$\app\ $PROJ_DIR$\modules\ $PROJ_DIR$\board\ $PROJ_DIR$\..\Libraries\STM32F4xx_StdPeriph_Driver\inc2013-06-19 06:22 AM
While it might be the Include paths, which by the way you'd also have to set up properly in IAR, Rowley, or whatever, I think it is more likely the lack of stm32f4xx_conf.h in your project directory which is pulled in via stm32f4xx.h, and in turn pulls in the GPIO and other includes. Your project also needs to have the source file for the library components being used.
The basic problem being that you aren't sufficient familiar with the tools, and the structure of working projects.2013-06-19 06:48 AM
when i include ''stm32f4xx_conf.h'' i get this error
Error[Pe147]: declaration is incompatible with ''__interwork __softfp void RCC_AHB1PeriphClockCmd(uint32_t, enum <unnamed>)'' (declared at line 477 of ''C:\Users\Wissem\Desktop\my work\ and this is all my include in the main file #include ''stm32f4xx.h'' #include ''stm32f4_discovery.h'' #include ''stm32f4xx_conf.h'' #include ''stm32f4xx_gpio.h''2013-06-19 07:21 AM
That doesn't look like a KEIL error
You shouldn't have to explicitly include ALL those files from your primary app as they pull others in automatically. #include ''stm32f4_discovery.h'' //-> ''stm32f4xx.h'' -> ''stm32f4xx_conf.h'' -> ''stm32f4xx_gpio.h''2013-06-19 07:24 AM
i use now IAR because i configured better than KEIL but still have an error
other libraries work good2013-06-19 07:26 AM
http://www.st.com/web/en/catalog/tools/PF257904
. Keil example is in ''STM32F4-Discovery_FW_V1.1.0\Project\Demonstration\MDK-ARM''.To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.