Skip to main content
Visitor II
April 21, 2024
Solved

stm32u595VJ

  • April 21, 2024
  • 2 replies
  • 892 views

Problem whit ADC1

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

return error
why??

    This topic has been closed for replies.
    Best answer by NesrynELMK

    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,

    2 replies

    Graduate II
    April 21, 2024

    Probably something is missing before the call.

    ST Employee
    April 22, 2024

    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,