Ok, I understand your question now. In fact, 12V is out of spec. See this extract from PD 3.1 spec:
That is why you cant select 12V from CubeMX. But anyway you can still put 12V in the usbpd_pdo_defs.h file "by hand" if you want, it will not be in l...
Hello,
Regarding the documentation, you can find different resources at the bottom of this page: STM32 solutions for USB Type-C and Power Delivery - STMicroelectronics.
The SRC_capabilities in your trace are what your charger is capable of. Your ST...
Oh yes, your computer is very likely to only provide 5V.
You can use a type C charger if you have one (for your phone maybe?), theses are more likely to have more than 5V capabilities. The charger must be type-C, not type A though (it must be a type-...
Hello !
Glad to ear the example works for you and is able to demonstrate what you want.
For your first question, the first PDO is always fixed type 5V. This is a requirement of the PowerDelivery spec. If you change it to 15V, it wont work.
You will n...
@ABasi.2
Yes you are right this is an issue with CubeMX.
CubeMX is meant to be a static configuration tool, and USBPD application is a bit out of scope as it is highly applicative and not only configuration (like for a UART or I2C peripheral for ins...