Skip to main content
Visitor II
May 11, 2020
Question

Not getting PE Alerts when cable is connected on power up

  • May 11, 2020
  • 2 replies
  • 1321 views

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.

    This topic has been closed for replies.

    2 replies

    ST Employee
    May 11, 2020

    Hi,

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

    Regards,

    Yohann

    CZubi.1Author
    Visitor II
    May 12, 2020

    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?

    ST Employee
    May 12, 2020

    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

    CZubi.1Author
    Visitor II
    May 27, 2020

    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