2021-02-11 11:32 PM
I am studying USB PD now with the demo board B-G474E-DPOW1.
I try to program the consumer and need help with switching profiles.
When the cable is connected, the charger displays a list of available profiles.
I can't figure out how to choose the right profile.
Could you give an example of a function that implements profile switching?
Solved! Go to Solution.
2021-02-17 09:14 AM
Dear @ADoro.2
You may have few answers into our Wiki page:
https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview
And mainly the part describing our strategy how to select a power profile:
https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview#SNK_PDO_selection_policy_in_DPM
In Cubemonitor-UCPD, for test, you can request a power profile but this profile should match with your sink PDO.
Regards
Yohann
2021-02-17 09:14 AM
Dear @ADoro.2
You may have few answers into our Wiki page:
https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview
And mainly the part describing our strategy how to select a power profile:
https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview#SNK_PDO_selection_policy_in_DPM
In Cubemonitor-UCPD, for test, you can request a power profile but this profile should match with your sink PDO.
Regards
Yohann
2021-02-17 09:39 AM
Hello,
Perhaps you can have a look at this wiki article.
The consumer can select any of the profiles proposed by the provider. Whenever he needs.
You could even request a PDO that is not in your sink PDO list.
If you have STM32G4 package, check for the G4 Eval application example : file Projects\STM32G474E-EVAL\Demonstrations\Modules\ucpd\usbpd_dpm_user.c.
And look for function USBPD_DPM_RequestMessageRequest.
2021-02-18 12:13 AM
@Yohann M. , @Nicolas P thank you so much.
I figured out this problem.