2024-02-20 01:59 AM
Hello,
I'm testing USB Power Delivery (in dula role power) over STM32G0.
I used ST wiki guide : https://wiki.st.com/stm32mcu/wiki/Introduction_to_USB_Power_Delivery_with_STM32
It's works except for a specific case :
Is there a way to correct that ?
2024-02-20 02:58 AM
Hello @Vvedr.11
Have you tried this wiki? STM32StepByStep:Getting started with USB-Power Delivery Sink - stm32mcu used with NUCLEO-G071RB
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-02-20 03:01 AM
No, Because I want a Dual Role Power device.
I used this one : https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_Dual_Role
2024-02-20 10:03 AM
I hope this helps !
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-02-21 02:10 AM
Unfortunately not.
My issue is to control current provide and not Voltage settings.
2024-02-21 09:09 AM
Hi again @Vvedr.11
You need to use UCPD monitor hardware components to measure and control the current for further investigation. Controlling current involves voltage settings. You should check your PDOs in the file usbpd_pdo_defs.h, if you have activated the utility (_GUI_INTERFACE switch), in the STM32CubeMonitor-USBPD 'Port Configuration/SINK Capabilities' tab. It's possible that your operational current is too high for what your source can provide. You may need to adjust the PDOs to match the capabilities of your source and sink.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-02-28 12:44 AM
I checked with STM32CubeMonitor-USBPD and data confirmed that Sink asks more current than Source can provide.
In my application, I design only the Source and it's mandatory to limit it to 5V/2A. I can't adjust Sink capability because any USB-C device can be connect to it.
In the case where the Sink asks more current than Source can provide, I want limit current to legacy 500mA. but I don't know how to do that.
2024-02-28 02:01 AM
Hi again @Vvedr.11
Unfortunately, the request may be rejected because the current request is too high compared to the source capabilities.
For further support, It would be helpful to have the protocol trace see here
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.