STM32H725 ADC1/2 run at half the configured speed?!
Hi,
I'm currently setting up ADC1/2 of STM32H725IGx, using STM32CubeMX 6.3.0 with FW_H7_V1.9.0. They are configured to run at async ADC clock, which is about 126 MHz defined in CubeMX Clock Configuration, divided by 4 => 31,5 MHz.
However, sampling and conversion takes twice as long as expected!
When stepping through HAL initialization, I found that it (in ADC_ConfigureBoostMode()) computes the actual ADC frequency for determining the BOOST bits setting. It starts with 31,5 Mhz but then concludes as follows:
...
#if defined(ADC_VER_V5_3) || defined(ADC_VER_V5_V90)
freq /= 2U;
...
with freq==15.75 MHz?!?
This would explain my observations. But what to do? CubeMX seems to calculate and check with wrong factors. It won't allow me to double the input frequency, telling me that fADC would be exceeded (but 31,5 MHz is below 50 MHz!)
Thanks for your comments,
Kolja