cancel
Showing results for 
Search instead for 
Did you mean: 

Help to understand default program that comes with stm32 discovery

vekariyamitul
Associate II
Posted on June 13, 2012 at 17:13

The original post was too long to process during our migration. Please click on the attachment to read the original post.
4 REPLIES 4
Posted on June 13, 2012 at 17:43

Try looking at the SysTick_Handler() in STM32F4-Discovery_FW_V1.1.0\Project\Demonstration\stm32f4xx_it.c

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
vekariyamitul
Associate II
Posted on June 13, 2012 at 18:58

thanks man......really appreciate your help......

 but is it necessary to use TIM4? I've tried to use STM_EVAL_LEDOn(LEDn) function instead of using timer compatator, but it didn't work. Can you tell me how can we just turn on led without blinking or using TIM4?

Posted on June 13, 2012 at 20:55

I'd start by not calling TIM4_Config(), which changes the GPIO pins to AF (Alternate Funtion) mode. The LEDs LD3, LD4, LD5, and LD6 are conveniently behind TIM4 channels, but you can leave them in GPIO mode.

You should then be able to use :

STM_EVAL_LEDOff(LED4);

STM_EVAL_LEDOn(LED4);

STM_EVAL_LEDToggle(LED4);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
osama
Associate II
Posted on January 09, 2013 at 19:33

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6mQ&d=%2Fa%2F0X0000000bvH%2FyNwfcJyTBuAazH3fmIGaj7oDo0aXzyvGMn6rqUu0K1I&asPdf=false