2024-08-22 04:44 AM - last edited on 2024-08-22 04:57 AM by Andrew Neil
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?
2024-08-22 04:51 AM
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.