cancel
Showing results for 
Search instead for 
Did you mean: 

Reading ADC1 Through STM32MP157F-DK2

Danb127
Associate

Hi, I’m new to the stm32mp15 series and I’ve been trying to convert code over from a previous microcontroller (stm32f429i-disc1) onto my new MPU. I try to read an input voltage value by running the HAL_ADC_GetValue driver but when I run live expressions to read the variable for my adc value, it is just maxed out at whatever I set the resolution to be (i.e., ADC1 resolution is 12 bits so the value is stuck at 4095). I use STM32CubeMX right now, I enabled continuous conversions but I get stuck at this 4095 value every time I debug and run. Any help or suggestions?

1 REPLY 1
Danb127
Associate

To add more info, I am connecting through input channel 1, single-ended mode. I have a wire hooked up to ANA0 and the breadboard and the voltage signal in series with it.