I have a PCB where I use an 8 MHz quartz resonator as this MCU's external system clock source.
In STM32CubeIDE the setting is as follows:
The program runs fine in MCU, but I cannot be sure if HSE is really used instead of HSI. Here is the clock config:
As you can see, both HSE and HSI are active. I supposed to be using HSE, but I remember once I tried to set like this in a development board which has no external oscillator and MCU still worked using its HSI.
My worry is that, imagine the crystal is not working, then the MCU will switch HSI without telling me and I will never know. I want to be sure that the system is using the external crystal.
Now the problematic part is that I forgot to add test pins and MCO output is unused and is not routed to any PCB header. Meaning that I'm NOT able to probe the MCU pins.
Is there a way/trick I can try without probing pins physically programmatically that ensures that MCU is using HSE but not HSI? I think it's impossible to disable HSI(?) but can there be any way I can try?