Hello @BrianB,
There is an issue on STM32G0 ADC during calibration due to delay needed between ADC enable and disable.
As a work-around: A minimum delay must be implemented between ADC enable and ADC disable.
- ADC clock presc div64: 75 CPU clock cycles <=> between 1 and 2 ADC clock cycles
- ADC clock presc div128: 155 CPU clock cycles <=> between 1 and 2 ADC clock cycles
- ADC clock presc div256: 315 CPU clock cycles <=> between 1 and 2 ADC clock cycles
The Fix proposal is to wait for 2 ADC clock cycles between ADC enable and disable (worst case: 256 CPU cycles) .
Our development team is very aware of this issue and working to resolve this, and the fix will be available in the next release of STM32CubeG0 firmware package.
Thank you for your understanding while we work on this.
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks