Technically the code does not assert that you only have one set you could set them both and use that code on 2 hardware builds one with an xtal and one with clock source.
Stm32f4 external clock source.
Nucleo boards don t use external clock by default but they have pins for adding external crystal.
The question that may arise is how to reach 168 mhz if the external crystal value is only 8 mhz.
In case you don t add external crystal or clock then set pll m value to 16 i have at home set f401 nucleo board with external crystal 8mhz so pll m is set to 8 and hse value set to 8000000 and f411 without external crystal pll m set to 16.
Stm32f4 discovery timer external clock mode 2 blocked at 1.
I already found st an4013 which explains almost everything about the timers but not their respective internal clock source.
Since the osc in clock pins are shared ph0 ph1 you either have an external clock source or an external crystal hooked up to those pins not both.
Mikroc pro for arm general.
The external crystal value of stm32f4 discovery board is 8 mhz.
Posted on march 18 2014 at 16 35.
However i can t find which timers get which clock.
As i understand the internal timer clock source on the stm32 f4 microcontrollers can be either apb1 or apb2.
Hello all i ve been fighting for 2 days with a stm32f4 discovery board to get the timer 3 counting properly in external counting mode 2 but i can t figure out what s wrong in my code or in the mcu config.