Keil STM32_init.c doesn´t set timer1-4 slave mode control registers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2008-01-19 12:33 AM
Posted on January 19, 2008 at 09:33
Keil STM32_init.c doesn´t set timer1-4 slave mode control registers
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 3:21 AM
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