STM32G071KB USBPD SNK problem
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.

