Skip to main content
MMuna.1
Associate
April 11, 2020
Solved

Is it possible to configure external resonator clock source with cubemx on stm32g030? The HSE option is not available in the clock configuration tab.

  • April 11, 2020
  • 4 replies
  • 1644 views

..

This topic has been closed for replies.
Best answer by berendi

The RCC_OSC_OUT pin is apparently not available on smaller packages. You can

  • Use a bigger package, e.g. 48 pins.
  • Use an external oscillator chip that provides HSE directly as a digital signal for the bypass mode.
  • Use a 32768 Hz crystal, and calibrate HSI to LSE through TIM16 and HSITRIM, see Internal/external clock measurement with TIM14/TIM16/TIM17 in the reference manual.

4 replies

berendi
Principal
April 12, 2020

Configure it in the RCC first, on the pinout tab under System Core, then it should become available as a clock source.

MMuna.1
MMuna.1Author
Associate
April 13, 2020

I'm using cubemx 5.6 under stm32cubeide (under Linux OS) but I'm looking that in RCC on pinout tab, the only option that enable HSE in the clock configuration tab is "bypass" checkbox.

berendi
berendiBest answer
Principal
April 13, 2020

The RCC_OSC_OUT pin is apparently not available on smaller packages. You can

  • Use a bigger package, e.g. 48 pins.
  • Use an external oscillator chip that provides HSE directly as a digital signal for the bypass mode.
  • Use a 32768 Hz crystal, and calibrate HSI to LSE through TIM16 and HSITRIM, see Internal/external clock measurement with TIM14/TIM16/TIM17 in the reference manual.
MMuna.1
MMuna.1Author
Associate
April 14, 2020

OK!! The RCC OSC_IN and RCC OSC_OUT pins are not available for STM32G030 (32 pin version) so it's impossible to use external cristal/resonator :( !!!