初级会员

- 积分
- 135
- 金钱
- 135
- 注册时间
- 2016-2-26
- 在线时间
- 41 小时
|
1金钱
现在发现STM32L031F4 ADC初始化会在文件:STM32L0XX_HAL_ADC.C函数:static HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
1948行
/* Wait for ADC effectively enabled */
while(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == RESET)
{
if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
{
/* Update ADC state machine to error */
SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
/* Set ADC error code to ADC IP internal error */
SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
return HAL_ERROR;
}
}
掉入死循环。
请问如何处理?
|
|