cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 ADC calibration timeout

Handzic.Dirk
Associate III
Posted on May 17, 2018 at 18:07

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

2 REPLIES 2
DFrei
Associate

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.

Amel NASRI
ST Employee

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.