2021-02-26 10:52 AM
Hi,
I've some trouble with the NUCLEO-L552ZE-Q using USB PD.
I'm using the "USB-PD_Consumer_1port" example with STM32CubeMonitor-UCPD and can't request any power profile (see image below). I also tried different power adapters.
Did I forget something?
Hopefully someone can help me to figure out whats wrong - thanks.
best regards
2021-03-02 05:01 PM
Hello @Dany
By default this simple application has only one sink PDO. (check in usbpd_pdo_defs.c)
Have you changed default PDOs ?
You can also check or update the sink PDO list with UCPD monitor, in the port configuration tab.
We have chosen as strategy to allow only selection of PDOs that are listed in the PDO sink list.
For more information about PDO selection please have a look at our wiki.
Additionally, we see at the bottom of your trace a hint message : " Debug : Update USBPD_DPM_RequestMessageRequest"
You have to update this function (in usbpd_dpm_user.c file) to apply the PDO strategy you want : for example select the higher voltage available...
Have a look at the full demo example in folder Projects\STM32L552E-EV\Demonstrations\Modules\ucpd\usbpd_dpm_user.c
Hope this helps,
Nicolas