stm32cubewl_v1-2-0 HAL_ADCEx_Calibration_Start does not work
In the middle of function returns HAL_ERROR.
stm32cubewl_v1-1-0 - the function works well.
In the middle of function returns HAL_ERROR.
stm32cubewl_v1-1-0 - the function works well.
Hello,
A regression has been introduced in release v1.2.0.
Issue:
In case of high frequency ratio between CPU and ADC (CPU high frequency, ADC low frequency), function HAL_ADCEx_Calibration_Start() returns an error.
Root cause:
A delay must be fullfilled between ADC enable and ADC disable.
Fix:
In function HAL_ADCEx_Calibration_Start(), a delay must be added:
LL_ADC_Enable(hadc->Instance);
<delay here>
LL_ADC_SetCalibrationFactor(hadc->Instance, calibration_factor_accumulated);
LL_ADC_Disable(hadc->Instance);
The fix will be available in next STM32WL FW package release.
Documentation is being updated to mention this constraint.
Best regards
Philippe
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.