USBPD keeps getting state detached after attached_wait
Hi,
I am working on a custom USB-PD board and trying to make a sink. To check if everything was working as is it supposed to do, I followed the "10-minute" sink example from ST.
But when I connect a USB source, the sink keeps detaching the connection in the debounce fase. Does anyone know why this keeps happening?
The MCU used in the project is the STM32G071CBTx and followed the sink sample from ST: https://youtu.be/-vsJhNIaHxE.
G0 FW version: 1.4.0
STM32CubeMX version: 6.1.0
Trace:
0 DEBUG 34043 0 ADVICE: Update BSP_USBPD_PWR_VBUSInit
1 CAD 34043 0 USBPD_CAD_STATE_ATTACHED_WAIT
2 DEBUG 34264 0 ADVICE: Update BSP_USBPD_PWR_VBUSDeInit
3 CAD 34264 0 USBPD_CAD_STATE_DETACHED
4 DEBUG 34778 0 ADVICE: Update BSP_USBPD_PWR_VBUSInit
5 CAD 34778 0 USBPD_CAD_STATE_ATTACHED_WAIT
6 DEBUG 34999 0 ADVICE: Update BSP_USBPD_PWR_VBUSDeInit
7 CAD 34999 0 USBPD_CAD_STATE_DETACHED
8 DEBUG 35513 0 ADVICE: Update BSP_USBPD_PWR_VBUSInit
9 CAD 35513 0 USBPD_CAD_STATE_ATTACHED_WAIT
10 DEBUG 35734 0 ADVICE: Update BSP_USBPD_PWR_VBUSDeInit
11 CAD 35734 0 USBPD_CAD_STATE_DETACHED
