cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 4.3 + IAR ARM 6.7 + STM32F4-DISCO

sibarsenal
Associate II
Posted on August 11, 2014 at 09:47

Hello.

I have downloaded project for STM32F4-DISCO board ( CubeMX 4.3 ). I can export it to IAR, compile and download into board. But I can't turn on any led on board with standard instruction.

''GPIOG->ODR=...'' is working good, but 

''GPIOG->BSRRH=...'' or

''GPIOG->BSRRL=...'' on next line of project can't change pin level...

I try to download MEMS-example for this board and make some change ( led turn on ) - it works with ''GPIO_PORT[Led]->BSRRL'' string...

What problem is it?
3 REPLIES 3
Posted on August 11, 2014 at 09:58

On the STM32F4-DISCO aren't the four primary LED's on GPIOD ??

The STM32F429I-DISCO, the one with the LCD panel, has two primary LED's on GPIOG.

Check the clock and pin configurations. Check the correct bits are being driven on BSRR.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sibarsenal
Associate II
Posted on August 11, 2014 at 10:10

2 user leds only ( PG13 and PG14 ).

''GPIOG->ODR=0x4000;'' does led on

''GPIOG->BSRRH=0x4000;'' doesn't led on

sibarsenal
Associate II
Posted on August 11, 2014 at 11:59

Sorry, I'm bad (:

I'm new in STM32. 

High bits in BSRRL register make pin high,

ones in BSRRH register make pin low... 

L and H isn't new value but half of register.