2025-11-01 4:16 PM
Hi everyone,
I’m using STM32CubeIDE 1.19.0 with an STM32G431K6T6, and I’m having two issues in the CubeMX configuration that I can’t seem to solve:
LSE clock configuration not available
In the RCC tab, I can only configure the HSE clock (High Speed Crystal/Ceramic Resonator, LSCO, etc.).
There’s no option to enable or select the LSE (Low Speed External) oscillator.
The tool shows this message:
“LSE OSC is not available. To enable it, go back to IP RCC in Pinout Tab.” But when I open the RCC configuration, there’s still no LSE or LSI section available.
ADC12 clock selection is greyed out
When I enable ADC1 (ADC12) in the Pinout view, the ADC clock source field is greyed out and cannot be changed.
CubeIDE shows this message:
“ADC12 Clock Selection is not available. To enable it, one of the following RCC modes or IPs have to be configured from the Pinout Tab: - ADC12 enabled.” But ADC1 is already enabled, and I still can’t select the ADC clock.
I’ve already tried:
Enabling/disabling ADC1 and reconfiguring RCC
Switching clock sources (HSI/HSE/PLL)
Resetting the .ioc file and starting from scratch
Installing the latest STM32CubeG4 firmware package
The problem still persists.
Has anyone experienced this issue on STM32G431 or other STM32G4 devices?
Is this a known CubeMX bug or a hardware limitation specific to this MCU?
Here is piece of .ioc configuration:
Solved! Go to Solution.
2025-11-01 5:22 PM - edited 2025-11-01 5:22 PM
Hi @krzysztof1
The LQFP32 package (STM32G431K6T6) does not have PC14 (OSC32_IN) or PC15 (OSC32_OUT) pins exposed, which are the pins needed to enable the LSE. Therefore, the LSE is not available in this package and you will not be able to enable it in STM32CubeMX or in code. This can be seen in the datasheet:
If you need the LSE, you will need to use a different chip.
Regards,
TDK
2025-11-01 4:29 PM
Hello @krzysztof1
Could you please add a screenshot of the RCC menu on your .ioc file. Also, are you having the same issue trying to do this with the standalone STM32CubeMX V6.15.0.
Best Regards.
II
2025-11-01 5:22 PM - edited 2025-11-01 5:22 PM
Hi @krzysztof1
The LQFP32 package (STM32G431K6T6) does not have PC14 (OSC32_IN) or PC15 (OSC32_OUT) pins exposed, which are the pins needed to enable the LSE. Therefore, the LSE is not available in this package and you will not be able to enable it in STM32CubeMX or in code. This can be seen in the datasheet:
If you need the LSE, you will need to use a different chip.
Regards,
TDK