cancel
Showing results for 
Search instead for 
Did you mean: 

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

MMuna.1
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
berendi
Principal

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.

View solution in original post

4 REPLIES 4
berendi
Principal

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

MMuna.1
Associate II

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
Principal

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
Associate II

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