2023-05-11 02:51 PM
Hello,
I recently developed a board to use the STM32G030K8T6 under the assumption that it could support an external crystal oscillator (given what is said in the datasheet) and as I was setting it up in the CubeMX tool I noticed that the HSE was only activated in the Clock Configuration menu, if I checked the BYPASS Clock Source option in RCC Mode settings. However this does not seem to work in order to activate the HSE crystal, and the generated code sets the HSE as bypassed.
Does this MCU actually support an external crystal, or is CubeMX not correctly displaying all the options for this MCU?
Thank you!
Solved! Go to Solution.
2023-05-11 05:17 PM - edited 2023-11-20 05:39 AM
see in ds :
..K.. has only BYPASS Clock Source option , is oszillator input. not for pure crystal .
and LSE crystal.
2023-05-11 05:17 PM - edited 2023-11-20 05:39 AM
see in ds :
..K.. has only BYPASS Clock Source option , is oszillator input. not for pure crystal .
and LSE crystal.
2023-05-12 05:33 AM
Thank you for your answer.
If I understood correctly, you meant that it only accepts a CMOS oscillator, not a crystal oscillator.
2023-05-12 06:15 AM - edited 2023-11-20 05:39 AM
set BYPASS Clock Source option : can use crystal-clock-oscillator , cmos or ..., but not just a crystal.
this is a crystal: 2 pins , (passive part) .
and this are crystal oscillators :
have typ. 4 pins: vcc, gnd , enable, clock out .
2023-05-12 11:18 PM
You understood correctly, but to put it more accurately - not just and oscillator, but any CMOS level clock signal, which conforms to the datasheet specification.
2023-05-12 11:21 PM
Many SMD crystal packages also have 4 physical pins...