F04/07/09 clock definitions Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

F04/07/09 clock definitions  Topic is solved

Postby steved » Fri Sep 22, 2017 2:12 pm

The 32F04/07/09 don't have a divide by two on the output of the HSI clock into the PLL. However it's currently allowed, and used in the demo:

Code: Select all

#if 0
// original demo code
#define STM32_PLLSRC                        STM32_PLLSRC_HSI_DIV2
#define STM32_PREDIV_VALUE                  1
#else
// F091 doesn't have divide by 2
#define STM32_PLLSRC                        STM32_PLLSRC_HSI
#define STM32_PREDIV_VALUE                  2
#endif

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: F04/07/09 clock definitions

Postby Giovanni » Fri Jul 27, 2018 2:51 pm

bump

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: F04/07/09 clock definitions

Postby Giovanni » Wed Sep 26, 2018 9:51 am

Hi,

About this, the RM0091 manual states"

"00: HSI/2 selected as PLL input clock (PREDIV forced to divide by 2 on STM32F04x, STM32F07x and STM32F09x devices)"

Apparently the setting does exist and forces PREDIV to emulate previous devices. Is a change required with this behavior?

Giovanni

steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: F04/07/09 clock definitions

Postby steved » Thu Sep 27, 2018 9:53 pm

Giovanni wrote:Hi,

About this, the RM0091 manual states"

"00: HSI/2 selected as PLL input clock (PREDIV forced to divide by 2 on STM32F04x, STM32F07x and STM32F09x devices)"

Apparently the setting does exist and forces PREDIV to emulate previous devices. Is a change required with this behavior?

Giovanni

Have to dig a bit more to be absolutely confident, but does look as if that bit of 'small print' makes everything work out.
I've got an F091 board to bring up over the next few weeks; will try and have a play.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 19 guests