Skip to main content
Visitor II
September 16, 2020
Question

USB PD Reseting issue

  • September 16, 2020
  • 11 replies
  • 5227 views

Hi Stmteam,

I am using Stm32G081RB to Develop Source application.

please have a look at the source files and trace.

provider_port1

Note : trace file is from sink device attached to the Source Device currently we are looking to Develop complete solution.

Questions:

  1. we couldn't see the PS_RDY msg from source device after the Power Setting across the VBUS. is there any timings to be met for Power establishment after Port negotiation with connected port partner?

Note : ADC reading after the power establishment is proper. I make sure the voltage read by the USBPD stack is correct by putting break point at BSP_PWR_VBUSGetVoltage in usbpd_pwr_user.c file.

Kindly don't hesitate to revert back (at any time) for more information about the product.

Thanks and Regards

Himavanth

    This topic has been closed for replies.

    11 replies

    HGorl.1Author
    Visitor II
    October 12, 2020

    Hi Yohan M,

    here is our trace from source side. still we are not able to view PS_RDY message.

    Kindly help us out in debugging the application.

    Thank you

    • Himavanth

    ST Employee
    October 13, 2020

    Hi @HGorl.1​ 

    Nice to see that now you are able to get the trace.

    It seems that PE does not have time to send the PS_RDY. There is CC detach during the power transition after 12ms !?

    1796 PE 25877 1 PE_SRC_SEND_CAPABILITIES

    1797 OUT 25879 1 SRC_CAPABILITIES  DATA:2C9101222CD102002CB104003C2176C0 / 5V - 3A / 9V - 3A / 15V - 3A / [3.3V - 5.9V] - 3A SOP PD3   H:0x41A1   

    1798 IN 25880 1 GOODCRC SOP   H:0x0001   

    1799 NOTIF 25880 1 SRCCAP_SENT

    1800 PE 25880 1 PE_SRC_WAIT_REQUEST

    1801 IN 25882 1 REQUEST DATA: 96580231 / ObjectPosition:3 / GiveBack:0 / CapabilityMismatch:0 / USBCommunicationCapable:0 / NoUSBSuspend:1 / UnchunkedExtendedMessagesSupported:0 SOP PD3   H:0x1082   

    1802 OUT 25882 1 GOODCRC SOP   H:0x0121   

    1803 PE 25883 1 PE_SRC_NEGOTIATE_CAPABILITY

    1804 OUT 25883 1 ACCEPT SOP PD3   H:0x03A3   

    1805 IN 25884 1 GOODCRC SOP   H:0x0201   

    1806 NOTIF 25884 1 REQUEST_ACCEPTED

    1807 PE 25884 1 PE_SRC_TRANSITION_SUPPLY

    1808 EVENT 25896 1 EVENT_DETACHED

    Do you have a protection on your CC lines which can disconnect them?

    Did you try at least to get a contract at 5V only? To do it, you could expose only the 1st PD0 in your source capabilities!

    Regards,

    Yohann

    ST Employee
    October 13, 2020

    One more point... you use an old version of our stack... Can you try to adapt your applications with latest stack I delivered with the ZIP file (USBPD _provider_port1_ST.7z) I sent to you on 25th of September?