Question
Bug in HAL_ADCEx_Calibration_Start
The function using ADC_CALIBRATION_TIMEOUT. This timeout is defines as:
/* Fixed timeout value for ADC calibration. */
/* Values defined to be higher than worst cases: low clock frequency, */
/* maximum prescalers. */
/* Ex of profile low frequency : f_ADC at 0.35 MHz (minimum value */
/* according to Data sheet), calibration_time MAX = 112 / f_ADC */
/* 112 / 350,000 = 0.32 ms */
/* At maximum CPU speed (200 MHz), this means */
/* 0.8 ms * 200 MHz = 64000 CPU cycles */
#define ADC_CALIBRATION_TIMEOUT ((uint32_t) 64000) /*!< ADC calibration time-out value */The CPU speed is 400Mhz for the H7 so the timeout is to small. In my case f_ADC =36Mhz, f_CPU=400Mhz it need to be at least 115000. I just doublet it and it is fine.
HAL File: stm32h7xx_hal_adc_ex.c
HAL Version: V1.3.0
Just want inform STM so they can fix it for all of us.
