Skip to main content
carlesls2
Associate III
Mar 24, 2025 6:23 AM UTC
Solved

HAL_TIMEOUT HAL_ADC_PollForConversion

What causes the HAL_ADC_PollForConversion to return a HAL_TIMEOUT?

This topic has been closed for replies.
SirineSTBest answer
ST Employee
Mar 24, 2025 8:32 AM UTC

Hello @carlesls2 

if HAL_ADC_PollForConversion() returns HAL_TIMEOUT status this is because ADC_SR_EOC bit is not set (0: Conversion not complete)

With regards

"If your question is answered, please close this topic by clicking ""Accept as Solution"""

1 reply

SirineSTBest answer
ST Employee
Mar 24, 2025 8:32 AM UTC

Hello @carlesls2 

if HAL_ADC_PollForConversion() returns HAL_TIMEOUT status this is because ADC_SR_EOC bit is not set (0: Conversion not complete)

With regards

"If your question is answered, please close this topic by clicking ""Accept as Solution"""