This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bug in MCBSTM32 examples?

Greetings,

I may have an old version of the distribution files and if that is the case, please ignore this.

If your use the STM32_Init.c file, this may be of interest to you.

For the Keil MCBSTM32 examples, all the STM32_Init.c files that I have looked at have a bug in the timer initialization. If you set the configuration wizard to enable details for any timer except for timer 4, you will not get expected results. In the conditional statement that happens if timer details is selected the TIMx->PSC and TIMx->ARR (where x=1->3) are not assigned the proper values. They all get the values from the timer 4 setup.

I have verified that other colleges here have the same situation and just wanted to give people a heads up.

0