Okay then that’s good, but the title and text of the first post is still wrong then.
The clock init code is at
And looks “okay”. Depending on whether it’s a ARDUINO_NUCLEO_F401RE
or a ARDUINO_NUCLEO_F411RE
operates the HSE in BYPASS mode, expecting an input frequency of 8 MHz to then use the PLL with factors / divisors, in the first case, of “/ 8 * 336 / 4” to get 84 MHz. For the F411RE it changes the factors to to / 4 * 100 / 2 to get 100 MHz.
But for that to work the clock needs to get through to the STM32. And that is by default not the case? SB16 is open on maybe older boards, when it should be closed so that the chip gets the clock?
Edit: On my Nucleo F103RB board, the SB16 bridge is closed / jumpered with 0 Ohms.