cancel
Showing results for 
Search instead for 
Did you mean: 

stm32u595VJ

gpaolo59
Associate

Problem whit ADC1

the if (HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET, ADC_SINGLE_ENDED) != HAL_OK)

return error
why??

1 ACCEPTED SOLUTION

Accepted Solutions
NEL M.1
ST Employee

Hello @gpaolo59 

 

Could you check if the functions __HAL_RCC_PWR_CLK_ENABLE(); and HAL_PWREx_EnableVddA(). are invoked in the stm32u5xx_hal_msp.c file?

 

Kind regards,

View solution in original post

2 REPLIES 2
Uwe Bonnes
Principal III

Probably something is missing before the call.

NEL M.1
ST Employee

Hello @gpaolo59 

 

Could you check if the functions __HAL_RCC_PWR_CLK_ENABLE(); and HAL_PWREx_EnableVddA(). are invoked in the stm32u5xx_hal_msp.c file?

 

Kind regards,