[STM32G431KBU3 - USBPD] - Problem when trying to use another ADC
Dear all,
I wanted to develop a USB Power Delivery SINK project using my STM32G431KBU3 MCU.
For that reason, I have designed a custom PCB and follwed carefully ST's WiKi:
https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:STM32_Advance_USB-Power_Delivery_Sink
I have successfully created an advanced SINK aplication in which I can negotiate Up to 6 different PDOs. I have used ADC2 Channel2 to read VBUS regarding my PCB demanded that.
The point is, everything works OK but, when trying to use ADC1 for other purposes of my aplication, USBPD negotiation stops working. Only configuring ADC1 in CUBE makes USBPD stops working. I didn't use ADC1 functions yet.
When sniffing USBPD trace, I can notice that something is wrong with ADC2 Channel2, the one which monitors VUSB.
So, my question is, are ADC1 and ADC2 not compatible in this USBPD SINK application? Is there any way to use ADC1 without stopping ADC2 and USBPD app??
Thank you in avance!
