cancel
Showing results for 
Search instead for 
Did you mean: 

Config Wizard for STM32_Init.c has fault

andywild
Associate II
Posted on January 17, 2008 at 13:58

Config Wizard for STM32_Init.c has fault

4 REPLIES 4
andywild
Associate II
Posted on May 17, 2011 at 12:21

Hi STOne-32,

I´am using KEIL uVision.

I tried to get the Timer1 running. After spending lots of time to understand the configuration, I used the ConfigWizard to configure it as:

Internal Clock UpCounter.

However I was not able to modify the Prescaler as well as the Auto-Reload register. (In TIM1 Detailed settings)

I readback from these registers gave me the numbers 7199 for Prescaler and 9999 for the Auto-Reload. I never typed in these values!!

When analyzing the STM32_Init.c Source-Code I found out that the Prescaler and Auto-Relaod Values from TIM1-4 are all set by the values of TIM4 !!

My STM32_Init.c is Version: V1.10 by Keil

Do you know if there is an Update available?

Thanks

Andi

16-32micros
Associate III
Posted on May 17, 2011 at 12:21

Hi Andi,

Are you using this same file as the one attached from Blinky example ?

I did not catch your point well :o Thx to point me out what is going wrong.

STOne-32

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

Hi STOne32,

yes I used this STM32_init.c what you sent to me.

It is of Version 1.10.

Meanwhile I got an update from Keil, Version 1.20.

In Version 1.20 the bug is fixed and it offers more configurations like

Alternative IO-Mapping.

Happy that it works know!

Andy

16-32micros
Associate III
Posted on May 17, 2011 at 12:21

Thank you , I will do the same 🙂