cancel
Showing results for 
Search instead for 
Did you mean: 

USB C PD Source with STM32G0 and TCPP02-M18 turns off after turning on

krbmr
Associate II

Hi there,

I am developing an application with a USB C PD Source. Components used are STM32G0G0B1RETx and TCPP02-M18.

  • HW Setup is as in the Nucleo Board example, just the ADC Pins are different and voltage divider values are changed.
  • FW Setup is almost same as this example. Except I had to fix some bugs, looks like the example does not run as-is. Different ADC Pins and voltage divider values were of course defined in the config files.
  • USB Sink is a google pixel phone, a samsung tablet, etc.
  • Source supply is 5.4 V to account for voltage drops.

The Application works more or less. It is able to open the provider-path MOSFETs controlled by the TCPP Chip. It can communicate to the attached device, so the for example the pixel phone starts charging at ~1.5A.

The issue is, that the device turns off the Power Path after 0,5Seconds and does not restart. Behaviour is the same, no matter if the sink device is attached to a running system or attached before the start.

I did some debugging, and it looks like a hardReset is triggered by the PE_CallHardResetCallback() which is triggered by the USBPD_PE_StateMachine(). I can not find both of the latter functions in the code so it is hard to debug.

I am honestly a little clueless, why this happens and what we can do about it?

Here are the waveforms for I2C Comms to the TCCP Chip, CC Line of USB C Connector and the 5V Rail after the switch of the TCCP:

krbmr_0-1693574755990.png

Here are the waveforms for CC Communication:

krbmr_1-1693574789804.png

Here is the output of the trace:

 

 

-- BSP_USBPD_PWR_Init --
-- BSP_USBPD_PWR_SetRole : SRC --
-- BSP_USBPD_PWR_SetPowerMode --
-- Low Power --
-- BSP_USBPD_PWR_VBUSInit --
-- BSP_USBPD_PWR_SetPowerMode --
-- Normal --
"ADVICE: USBPD_DPM_Notification:104
VBUS ON
-- BSP_USBPD_PWR_VBUSOn --
-- GDP/GDC setting : SRC --
"ADVICE: USBPD_DPM_Notification:104
ADVICE: USBPD_DPM_Notification:90
Data Size is not correct
Data Size is not correct
Data Size is not correct
Data Size is not correct
!ADVICE: USBPD_DPM_Notification:30
"ADVICE: USBPD_DPM_Notification:105
VBUS OFF
-- BSP_USBPD_PWR_VBUSOff --
VBUS ON
-- BSP_USBPD_PWR_VBUSOn --
-- GDP/GDC setting : SRC --
VBUS OFF
-- BSP_USBPD_PWR_VBUSOff --
"ADVICE: USBPD_DPM_Notification:105
"ADVICE: USBPD_DPM_Notification:105
-- BSP_USBPD_PWR_SetRole : SRC --
-- BSP_USBPD_PWR_VBUSInit --
-- BSP_USBPD_PWR_SetPowerMode --
-- Normal --

 

 

Any help is highly appreciated!
Bests,
Jakob

 

0 REPLIES 0