ADC not working for STM32u585 microcontroller
hi, im working on ADC, but ADC is not working, it is getting into infinite loop in this stage while ((hadc->Instance->ISR & tmp_flag_end) == 0UL)
and my code follows like this
HAL_GPIO_WritePin(GPIOH, GPIO_PIN_7, GPIO_PIN_SET);
// get ADC value
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, HAL_MAX_DELAY);
raw = HAL_ADC_GetValue(&hadc1);
HAL_ADC_Stop(&hadc1);
HAL_GPIO_WritePin(GPIOH, GPIO_PIN_7, GPIO_PIN_RESET);
HAL_Delay(1000);
data= (float)(5*raw/4095);
uint8_t length= sprintf(msg, "%.3lf\r\n\0", data);
HAL_UART_Transmit(&huart1, msg, length, 100);
it is getting stuck in ADC poll for conversion. UART is working perfectly fine.
changed the frequency, checked by changing with channels and different ADC bits. and no option for changing to synchronous, its working on async.

