cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubef4 ----- do examples work

carl239955
Associate II
Posted on March 19, 2015 at 08:24

I'm new to STM32 so downloaded Keil V5 and stm32cubef4. Tried compiling the first example using the STM32F4-DISCOVERY. I got many errors so changed the include location in the project properties then compiled but got many warnings. Tried to connect to the board with debugger - would not let me. I had installed the ST-Link drivers. 

I decided to try another project - STM32F-DISCO. Same problem again - had to change include directory for a compile but now I get an error :

 ..\..\..\..\..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c: 2 warnings, 2 errors

I trace this error to : GPIOx->BSRR = GPIO_Pin;

Error = No BSRR member in GPIO Typedefine

Surely this was all tested before release ?

Thanks in advance for any help

 

#st
2 REPLIES 2
carl239955
Associate II
Posted on March 19, 2015 at 12:22

OK thanks - after reading a few other posts - resolved - did not understand the legacy support option in Keil. 

petr239955
Associate III
Posted on March 19, 2015 at 12:31

I have a

similar experience

with

examples from STM32CubeF0

.

I had to

be added to the

project settings for

MDK

-

ARM

the

include directory

Drivers\

CMSIS

\

Include

.

The project

is

for

Keil

V

5.