Struggling with HSE
- January 17, 2025
- 4 replies
- 2117 views
I am in the process of transferring from Mbed to VSCode with the STM332 extension. I have set up a project using CubeMX set to the default settings for a NUCLEO-L073 and have no issues. I believe this setup uses the MSI clock. I am trying to implement the HSE with an external 8MHz crystal but cannot get it to work. The program does not run (basic LED blinky) and there is no clock signal on the crystal when monitored with an oscilloscope.
The changes I have made from the default NUCLEO-L073 CubeMX settings are:
Pinout & Configuration tab: RCC High Speed Clock (HSE) set to Crystal/Ceramic Resonator
Clock Configuration tab: System Clock Mux set to HSE
I have verified that there is no issue with the hardware - when running from mbed the crystal has a good 8Mhz signal.
Are there any other settings I am missing?
Is there any other code i need to add on top of the CubeMX generated output?
Thanks

