cancel
Showing results for 
Search instead for 
Did you mean: 

Can’t enable LSE clock source in CubeIDE (STM32G431K6T6, CubeIDE 1.19.0)

krzysztof1
Associate

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:

  1. 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.

  2. 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:

krzysztof1_0-1762038868243.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

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:

TDK_1-1762042883336.png

If you need the LSE, you will need to use a different chip.

Regards,

TDK

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
Issamos
Lead II

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

TDK
Super User

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:

TDK_1-1762042883336.png

If you need the LSE, you will need to use a different chip.

Regards,

TDK

If you feel a post has answered your question, please click "Accept as Solution".