cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting PE Alerts when cable is connected on power up

CZubi.1
Associate II

Hi again,

Our device is configured as a SNK, STM32F030CC with PTN5110 TCPC.

When a source is connected on start up, stack doesn't seem to detect connected cable. PE Alerts aren't received. Any thoughts on where I should check would be greatly appreciated.

4 REPLIES 4
Yohann M.
ST Employee

Hi,

Could you please provide a .cpd trace of your problem?

Regards,

Yohann

CZubi.1
Associate II

Hi Yohann,

Nothing much on the trace, except for the alert showing CC status as 1

and at the end of tcpc_init() COMMAND register - Looking4Connection was set to 1.

Is there anything else in the stack that should be enabled?

Hi,

I cannot see the alert in your log. Anyway, stack is waiting for an event from TCPC. If TCPC is correctly initialized at startup, it should be able to alert stack that a connection is ongoing. Do you have the same issue with FUSB307?

Alert activation is done at the end of the initialization (in function 'USBPD_DPM_InitOS'). We expect that TCPC is ready to send alerts.

Regards,

Yohann

Hi Yohann,

The alert from PTN comes before the Alert Task runs. I added code to check on startup if toggling has finished and there's something on the cc lines, and send an alert. This solved my issue. Thanks