Skip to main content
Graduate II
September 3, 2025
Question

STM32G0 minimum ADC frequency

  • September 3, 2025
  • 4 replies
  • 375 views

Hi, 

 

I don't understand why CubeMX is limiting me through their IOC file to select an ADC clock below 2MHz. The datasheet says 140 kHz is the minimum ADC clock frequency for the STM32G07. Anyone has any answers or help ?. 

    This topic has been closed for replies.

    4 replies

    Technical Moderator
    September 3, 2025

    Hello,

    Could you please tell in which datasheet and on which page you found that 140kHz?

    Graduate II
    September 3, 2025

    danielbathtub_0-1756897036771.png

    danielbathtub_1-1756897070901.png

     

    Technical Moderator
    September 3, 2025

    You need also to show how CubeMx doesn't prevent you to select that. 

    Preferably to attach the ioc file with that config.

    Graduate II
    September 3, 2025

    I can't do that because it doesn't allow me to set it in that way. Just select a general ADC pin and go under clock settings and you will see 

     

    Technical Moderator
    September 3, 2025

    @danielbathtub wrote:

    I can't do that because it doesn't allow me to set it in that way.

     


    Do you mean the community doesn't allow you to upload your ioc file?

    At least provide a screenshot of your clock config from your ioc file.

    Graduate II
    September 3, 2025

    Hi okay, here is my IOC file. I want a 32 MHz Asynchronous clock input into the ADC. 

    Then I want to have the prescaler at 128. I then later at a different stage in my application want a high ADC clock speed, so I want to keep the same clock input and then just change the prescaler. 

    Here is my IOC file, try and select a prescaler of 128 with my clock settings

    Technical Moderator
    September 3, 2025

    Ok thank you for the sharing.

    I'm escalating the issue internally for further analysis. Internal ticket number 216840 (not accessible by the community users)