Setting the HSE clock frequency of an STM32
You have to supply the clock to the chip with either a crystal/ceramic resonator or other external clock signal.

The 4 to 26 MHz is not generated by the chip itself...