the reason is that the PLL setups are intended for a different crystal, u'd need to edit those M, N, P, Q clock multipliers and rebuild.
https://github.com/Serasidis/STM32_HID_ ... ain.c#L245
those multipliers could be found in the variant files, or you could try a python script like this
viewtopic.php?f=41&t=78
note i found another one from weact
https://github.com/WeActTC/WeAct_HID_Bootloader_F4x1
edit:
ok i tried a build, i used my python script link above FHSE is defined as 25 mhz
Code: Select all
FHSE: 25 m: 25 n: 192 p: 2 (RCC_PLLP_DIV2) q: 4 fusb: 48.0 fcpu: 96.0 << this is the entry used
FHSE: 25 m: 25 n: 384 p: 4 (RCC_PLLP_DIV4) q: 8 fusb: 48.0 fcpu: 96.0
FHSE: 25 m: 25 n: 432 p: 4 (RCC_PLLP_DIV4) q: 9 fusb: 48.0 fcpu: 108.0
FHSE: 25 m: 50 n: 384 p: 2 (RCC_PLLP_DIV2) q: 4 fusb: 48.0 fcpu: 96.0
https://github.com/WeActTC/STM32_HID_Bootloader
^ note as i build from this one, I noted some strange looking codes that i'm not sure what it is trying to do
https://github.com/WeActTC/STM32_HID_Bo ... 4fd5e3R146
but weact did change some pin definitions as well
the pll multipliers are edited as above, not the weact ones
i've not tried it, i don't have a stm32f411 board