cancel
Showing results for 
Search instead for 
Did you mean: 

Keil STM32_init.c doesn´t set timer1-4 slave mode control registers

andywild
Associate II
Posted on January 19, 2008 at 09:33

Keil STM32_init.c doesn´t set timer1-4 slave mode control registers

1 REPLY 1
andywild
Associate II
Posted on May 17, 2011 at 12:21

Hello everybody,

if you are using the Keil Config Wizard with STM32_init.c, even the newest version 1.20 (January 2008) has errors:

It doesn´t initialize the TIMx_SMCR registers!

However it´s easy to correct: Just add this line to every timer init block:

TIM1->SMCR = __TIM1_SMCR; (Don´t forget to adjust the timer numbers accordingly!)

Best regards

Andi