ADC Calibration doesn't complete on STM32G0C1RE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 11:54 AM
Using HAL_ADCEx_Calibration_Start() to calibrate the ADC. This function always returns HAL_ERROR.
Debugging shows its failing after it collects the 8 samples and attempting to disable the ADC is timing out. (ie. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) is TRUE.)
Using CubeMX to generate drivers. CubeMX version 6.8.1
Note: ADC conversion are working IF I don't calibrate.
Thanks for your help.
Solved! Go to Solution.
- Labels:
-
ADC
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-31 3:01 AM
Why it is not correct in the HAL library ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-01 4:02 PM
Hi @DAlbe.3 ,
I was trying to reproduce the problem using your code on a STM32G0B1 Nucleo, but for me, it worked without the delay.
Can you please post the code with context, i.e. what exactly are clock settings, and what is before this piece of code, so that the problem can be reproduced?
Thanks,
JW

- « Previous
-
- 1
- 2
- Next »