cancel
Showing results for 
Search instead for 
Did you mean: 

UCPD Sink demo on B-G474E does not select PDO

MPaz.1
Associate

Hi

I am using a UCPD demo of STM32G4 B-G474 (USB-PD_Consumer_1port) but it does not allow me to select any of the Source PDOs. The sink can see the capabilities of the source but not select any. Can you help me with this? I am using STM32CubeIDE and STM32CubeMonitor

0693W000006FNs5QAG.png0693W000006FNsFQAW.png0693W000006FNsKQAW.png

1 REPLY 1
Nicolas P.
ST Employee

Hello @MPaz.1​ ,

I see two points to check.

1- Your sink PDOs configuration.

On the first screenshot it looks like you have requested PDO number 2, ie 9V.

With UCPD Monitor, you could look for the sink PDOs in the Port configuration tab, to check if your board has been configured to accept 9V.

By default, only 5V is enabled.

This is a security to avoid getting more power than your board can accept.

With the tool, you can add 9V support if you want.

2- If you've built the application from CubeMx (using AN5418 for exemple), you need to fill your own application needs in the provided template generated.

As you can see on the right side of your screenshots, in the trace, we have the message:

"DEBUG, update USBPD_DPM_RequestMessageRequest"

Every time you have a message like this, you need to look for this function and complete the code.

In the file usbpd_dpm_user.c, function USBPD_DPM_RequestMessageRequest, this time.

You can find a lot of examples in the G0, G4, L5 packages.

You can also find some useful information on the wiki page.