By default, the RCC Clock register reads 0x0000XX83 to set HSI as default clock.
The 16-Bit says it can turn on the HSE, however, it won't become the SYSCLK. For that, we go to RCC-Clock-Configuration Register :-
It takes time for the Crystal to become stable, that requires Ready flag to be low.
To visualize whether the clock frequency is correct. We enable the MCUCLK1 and MCUCLK2 in the RCC Register in CubeMX and generate the code.
Program available on :-
https://github.com/manvendra88/STM32/blob/master/Making_HSE_As_SYSCLCK.c
By enabling them, we can see that option to read the clock at MCO0 and MCO1 are now there.
By generating code now, we can see the CLK speed on the logic analyzer.