STM32G071KB USBPD SNK problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-29 2: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,
- When the USB is plugged, it jump to Hardreset section.
- I can see the Hard reset status is USBPD_HR_STATUS_COMPLETED.
- Even the status is completed, the system still try to do the hardreset for a few times.
- After that, the notification message turn to USBPD_NOTIFY_POWER_SNK_STOP and then USBPD_NOTIFY_PE_DISABLED.
- Seems that the whole USBPD system is closed. Even I unplug and plug again the USB, the attach and detach event cannot be triggered.
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.
- Labels:
-
STM32G0 Series
-
USB-PD
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-09 4: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-09 4: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
