There is a problem that USBPD_CAD_Task stops
I am developing a USB Type C charger
Hello @forst
Yes, depending on what you plug the devices will not behave the same.
On the trace you've shared, we see that it is from the sink. And after an explicit contract, we see that we get some SVDM_DISCOVER_SVIDS message from the source. The sink replies "NOT_SUPPORTED", which is a behavior you can change in the user application.
Sometime, when a device receives this "not supported" message, it asks again forever, because it could be that the answer changes over time.This is application choice. So this can explain why you see differences between Android and Windows. Even depending on the devices brand, the dialogs are different, depending on the feature they support (USB capability, VDM options...)
I don't see Android or Windows trace here. Could you give the related traces ?
Why do you say that CAD stops working ? CAD is the CAble Detection part. If you don't unplug or plug the cable, CAD states should not change. The states of CAD (USBPD_CAD_STATE_ATTACHED_WAIT, USBPD_CAD_STATE_ATTACHED...) are described in the file usbpd_cad_hw_if.c. Have a loot also at this part of the wiki.
The picture you shared seems the same as the trace text. It would be easier to share the full .cpd trace, it is much practical to read back using STM32CubeMonitor-UCPD.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.