Skip to main content
MMuna.1
Associate
Apr 11, 2020 2:59 PM UTC
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.

..

This topic has been closed for replies.
berendi
berendiBest answer
Principal
Apr 13, 2020 4:20 PM UTC

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
Apr 12, 2020 2:54 AM UTC

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
Apr 13, 2020 12:29 PM UTC

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
Apr 13, 2020 4:20 PM UTC

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
Apr 14, 2020 7:55 AM UTC

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 :( !!!