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
2020-08-24 09:05 AM
@Yohann M. this is behavior:
Please tell me the reason
thanks
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 ?)
2020-08-26 06:28 AM
Hi @Nicolas P
I'm testing with Xiaomi Redmi Node 7
SYSTICK I fix PLL 64Mhz
2020-08-27 08:59 AM
Do you have another device to test with ?
Do you have an another external tool to have a protocol trace ?
2020-08-31 02: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