cancel
Showing results for 
Search instead for 
Did you mean: 

USB PD Source Capabilities send too early

abtq
Associate II

Hi ST Community,

once again I have found a USB PD Specification violation, that I can't find the reason for:

Source operation: According to USB PD Spec the order of action is as follows:

1. Detect Sink using CC lines and only if sink is detected continue with the next points

2. Enable VBus to safe5V

3. Once safe5V is applied send source capabilities message

 

However current implementation of the ST Stack does not care about the state of VBus. It starts immediately sending out source capabilities messages.

I guess the problem is that PE Task is started immediately on Attach event in USBPD_DPM_CADCallback. And it never checks for the bus voltage.

 

I composed a crude minimal example that does not even do anything when it should enable VBus but still source capabilities message is blown out immediately. Please find the minimal example attached.

 

Did I miss anything? Will I need to find a workaround or can we get a fixed version of the library?

Best regards,
Adrian

0 REPLIES 0