Skip to main content
andywild
Associate III
January 17, 2008
Question

Config Wizard for STM32_Init.c has fault

  • January 17, 2008
  • 4 replies
  • 657 views
Posted on January 17, 2008 at 13:58

Config Wizard for STM32_Init.c has fault

    This topic has been closed for replies.

    4 replies

    16-32micros
    Associate III
    May 17, 2011
    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
    andywildAuthor
    Associate III
    May 17, 2011
    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
    May 17, 2011
    Posted on May 17, 2011 at 12:21

    Thank you , I will do the same :)

    andywild
    andywildAuthor
    Associate III
    May 17, 2011
    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