2025-09-03 3:32 AM
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 ?.
2025-09-03 3:55 AM
Hello,
Could you please tell in which datasheet and on which page you found that 140kHz?
2025-09-03 3:57 AM
2025-09-03 4:03 AM
You need also to show how CubeMx doesn't prevent you to select that.
Preferably to attach the ioc file with that config.
2025-09-03 4:07 AM
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
2025-09-03 4:16 AM - edited 2025-09-03 4:16 AM
@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.
2025-09-03 4:35 AM - edited 2025-09-03 4:38 AM
Just to tell that CubeMx is shoiwng this warning message: "ADC clock source must be >= 0,14MHz...." which is inline with the datasheet.
So you need to provide your exact clock configuration so I could reproduce the same behavior as it could be something else..
2025-09-03 5:32 AM
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
2025-09-03 7:27 AM - edited 2025-09-03 7:45 AM
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)