KEIL IDE problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 4: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 thnx- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 5:45 AM
I dont think header you attached has anything to do with GPIO defines, unless KIEL has something special inside...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 6: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 6:14 AM
thnx so can u tell which paths i have to add in IAR IDE please ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 6: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\inc- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 6: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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 6: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''- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 7: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''Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 7:24 AM
i use now IAR because i configured better than KEIL but still have an error
other libraries work good- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-19 7: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.
