2020-02-29 02:31 AM
Hi,
I am developing a USBPD system with STM32G071KBU6N. This MCU has a USBPD port. I am trying to use it to build a PD SNK port to get a PDO 20V/3A, 12V,3A,, 5V/3A.
However, the code was stuck in the Hardreset section. In the debug section,
I checked again the USBPD negotiation AMS, in the hard reset section, the USBPD_NOTIFY_PE_DISABLED shouldn't be shown.
is there any features I didn't handle in the usbpd_dmp_user.c/ usbpd_pwr.c causing this issue? As I didn't have the development tool, I cannot access to the USBPD GUI.
Solved! Go to Solution.
2020-03-09 04:29 AM
Dear @Leo Tai ,
Did you correctly implement the detection of VBUS detach? In Sink disconnection is done when it detects a VBUS disconnection (measured thanks to ADC in BSP_USBPD_PWR_VBUSGetVoltage function).
Please find a example of hard reset retransmission which leads to disabled state:
PD file generated with USBPD GUI is very useful for us to analyze such issues. What do you mean by 'As I didn't have the development tool, I cannot access to the USBPD GUI.'?
Note: I take the opportunity to present you new wiki pages related to USB-PD topics on STM32: https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview.
Yohann
2020-03-09 04:29 AM
Dear @Leo Tai ,
Did you correctly implement the detection of VBUS detach? In Sink disconnection is done when it detects a VBUS disconnection (measured thanks to ADC in BSP_USBPD_PWR_VBUSGetVoltage function).
Please find a example of hard reset retransmission which leads to disabled state:
PD file generated with USBPD GUI is very useful for us to analyze such issues. What do you mean by 'As I didn't have the development tool, I cannot access to the USBPD GUI.'?
Note: I take the opportunity to present you new wiki pages related to USB-PD topics on STM32: https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview.
Yohann