STM32L496 ADC in single ended channel
Hello,
I am trying to run a simple code for the reading of a single channel of one of the three ADCs available on the STM32L496. I have tried to use different channels while using the code generated from STM32CubeIDE. I use the default configurations (single ended, polling mode etc) but when I read the ADC I get 0xFFF. The sequence of operations I perform are:
ADC_Enable(&hadc2);
HAL_ADC_Start(&hadc2);
status = HAL_ADC_PollForConversion(&hadc2,100);
adc_value = HAL_ADC_GetValue(&hadc2);
HAL_ADC_Stop(&hadc2);
after which I send the adc_value via LPUART. I have used the same code with an STM32F439 nucleo board and it worked properly, so I am wandering if there are fundamental differences between the L4 and the F4 HAL regarding the ADC that I haven't noticed yet.
Any help can be useful, thanks!
