cancel
Showing results for 
Search instead for 
Did you mean: 

KEIL IDE problem

achourwissem
Associate II
Posted on June 19, 2013 at 13:20

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
15 REPLIES 15
Posted on June 19, 2013 at 16:26

A typical STM32F4-Discovery would have at least these include paths

..\;

..\..\..\Libraries\CMSIS\Include;

..\..\..\Libraries\CMSIS\ST\STM32F4xx\Include;

..\..\..\Libraries\STM32F4xx_StdPeriph_Driver\inc;

..\..\..\Utilities\STM32F4-Discovery;

The CMSIS ones probably being particularly important, otherwise Keil will pull in files from it's OWN include paths instead of those contemporaneous with the ST library

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 19, 2013 at 16:31

To start in a clean way with pre-configured environment, you can use the examples available in the DISCOVERY board firmware package.

Or more specifically the TEMPLATE projects for each tool chain, until the OP becomes familiar with project structures and tool chains being used.

Hacking around randomly probably won't achieve the level of understanding and clarity required.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
achourwissem
Associate II
Posted on June 19, 2013 at 17:10

thnx for all

but here i switched to  IAR and i used the following paths

$PROJ_DIR$\

$PROJ_DIR$\app\

$PROJ_DIR$\modules\

$PROJ_DIR$\board\

$PROJ_DIR$\..\Libraries\STM32F4xx_StdPeriph_Driver\inc
achourwissem
Associate II
Posted on June 19, 2013 at 17:20

even i downloaded a project from st and i tried RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE); and it gives the same error

Amel NASRI
ST Employee
Posted on June 19, 2013 at 18:14

Try to follow Clive1's recommendation, just take template example as it is, compile & load it. If ok, then make your own updates.

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.

achourwissem
Associate II
Posted on June 19, 2013 at 18:38

thank u all it worked :)