STML433 ADC1 coexist with other GPIO
Hi,
I working with STM32L433's ADC, and I'm having a problem where the ADC CH11 couldn't coexist with other GPIOs. I'm using a resistor divider from a battery and feeding into ADC1 CH11 (PA6, pin16). If the PA5 is left in a reset state, it all works. However, if I configure PA5 as an output, it seems to change PA6 as well. The voltage level no longer holds at the divided value, it becomes the PA5's level instead.
I nail down to single command that causes this, which is setting the output mode of PA5. (changes 0x48000000 from default state to output). I think I probably do something wrong, any suggestions?
Thanks,
here is my IOC configuration


