cancel
Showing results for 
Search instead for 
Did you mean: 

Blink program not working

freya17365
Associate II
Posted on September 18, 2015 at 09:38

Hi to all,

I tried my first program on STM32F0 discovery board and I encountered some problems.

My intention is to make LED3 and LED4 blinking, so I create a main program with system initialization and a LED class to manage LEDs.

I set up system clock in main program and GPIOC clock in LED class.

Do I need something else?

In annex you can find my files.

Thank you

Freya

1 REPLY 1
Nesrine M_O
Lead II
Posted on September 18, 2015 at 11:09

Hi Freya,

I'd highly recommend you to start from GPIO example under STM32Cube F0 package it describes how to configure and use GPIOs through the STM32F0xx HAL API:

STM32Cube_FW_F0_V1.4.0\Projects\STM32F072BDiscovery\Examples\GPIO\GPIO_IOToggle

The Cube F0 package is available on ST web site under this 

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1897/PF260612?s_searchtype=partnumber

.

-Syrine –