Skip to main content
Handzic.Dirk
Associate III
May 17, 2018
Question

STM32H743 ADC calibration timeout

  • May 17, 2018
  • 2 replies
  • 1209 views
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

This topic has been closed for replies.

2 replies

DFrei
Visitor II
August 27, 2018

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 Technical Moderator
September 27, 2018

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 "Best Answer" on the reply which solved your issue or answered your question.