2018-05-17 09:07 AM
My ADC clock is 25 MHz and
HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) will return an error due to ADC_CALIBRATION_TIMEOUT being exceed I changed the value from 64000 to 640000 and now it works fine. It seems to take about 65683 cycles at my system.
Regards
Dirk
2018-08-27 02:03 AM
Same problem here... did not find any working clocking combination with ADC_CALIB_OFFSET_LINEARITY and standard ADC_CALIBRATION_TIMEOUT value of 64000. Calibration with ADC_CALIB_OFFSET works fine but ADC_CALIB_OFFSET_LINEARITY does not.
2018-09-27 06:45 AM
Hi,
Please note that the issue related to the wrong ADC_CALIBRATION_TIMEOUT value is tracked internally as stated in https://community.st.com/s/question/0D50X00009kLCgUSAW/bug-in-haladcexcalibrationstart.
@DFrei ,
Could you please share the content of ADC_CR when ADC_CALIB_OFFSET_LINEARITY is used?
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.