2025-07-08 9:13 AM
Hi all,
I am designing a PCB using the STM32G030K6Tx and for my application I only require the HSE external crystal, which I believe I connect to GPIO pins PC14 and PC15. When I go the the .ioc file in the STM32CubeIDE (System Core -> RCC) I see there is only an option to enable the LSE and no option to enable the HSE. How do I go able enabling the HSE? I have attached an image of the relevant section of the .ioc file.
2025-07-08 9:26 AM
There is no OSC_OUT pin on the 32-pin package, so you can't use a HSE crystal.
You can only use a HSE oscillator, ie. device which contains both the crystal and the oscillator and outputs the given frequency signal in itself, that connected to PC14, while enabling HSEON and setting HSEBYP in RCC_CR.
JW
2025-07-08 9:28 AM
Thank you for the prompt reply!
How would I implement this HSE oscillator in the .ioc file?
2025-07-08 9:34 AM
@MattH2 wrote:STM32G030K6Tx
So the LQFP-32 package:
@MattH2 wrote:I only require the HSE external crystal, which I believe I connect to GPIO pins PC14 and PC15.
I think not - they are the OSC32 pins:
The OSC pins are on PF0 and PF1 - but not available in the LQFP-32 package?
2025-07-08 9:35 AM - edited 2025-07-08 9:36 AM
@MattH2 wrote:How would I implement this HSE oscillator in the .ioc file?
You'd need to use Bypass mode
PS:
2025-07-08 9:37 AM
So should I use the 48 pin package? and what is its manufacturer product number?
2025-07-08 9:46 AM - edited 2025-07-08 9:48 AM
If you want an internal oscillator, then yes.
But, as @waclawek.jan said, you can use an external oscillator - instead of just an external crystal.
PS:
@MattH2 wrote:what is its manufacturer product number?
See the Ordering Information - posted earlier.
2025-07-08 10:01 AM
If I go this route, do I just selected bypass clock source and then connect my HSE oscillator to the PC14 pin?
2025-07-08 10:33 AM
Seems like it gives you the option of PC14 or PF0 ?
Have you studied Application note AN5096, Getting started with STM32G0 Series hardware development ?