usbpd change from sink to source soft reset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-11 10:35 PM
my stm32 set default is sink. when Phone connected, it's sink and the nego finish. after that, I change it to source to charge this phone, but it's soft reset.
please refer trace attach
- Labels:
-
STM32G0 Series
-
USB-PD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-24 9:05 AM
@Yohann M.​ this is behavior:
- In DRP mode, if STM32 is fixed SRC default, soft reset appear
- If STM32 is fixed SNK default, soft reset not appear, I can Power Role Swap anytime
Please tell me the reason
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-25 12:52 AM
Hello HVND.
Thanks for the trace.
The soft reset is sent because the accept from the source comes too late.
The accept should come between 24 and 30ms.
Here we get it 51ms after the power role swap request is sent. What is the phone used ?
I see no link with the default role.
What is the MCU used ? (SYSTICK value ?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-26 6:28 AM
Hi @Nicolas P​
I'm testing with Xiaomi Redmi Node 7
SYSTICK I fix PLL 64Mhz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-27 8:59 AM
Do you have another device to test with ?
Do you have an another external tool to have a protocol trace ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-31 2:00 AM
Dear @H V N D​
Regarding your SOFT reset, what it is strange is that the port partner answers to the power role swap after the expiration of the tSenderResponse timer (set to 27ms in our library). It is why we have a soft reset after receiving the accept message:
ACCEPT is received 50ms after the gooodCRC of PR_SWAP.
Problem is linked to your port partner.
Can you try to test with another port partner?
Regards
Yohann
