Associate II
Nov 28, 2019 2:57 AM UTC
Solved
How to use two ucpd port in stm32g0?
- 5 replies
- 2321 views
I generated my code by stm32cubemx, and use ucpd1 as sink&dead battery, use ucpd2 as drp. But got USBPD_ERROR in USBPD_DPM_InitCore after execute " CHECK_PE_FUNCTION_CALL(USBPD_PE_Init(USBPD_PORT_0, (USBPD_SettingsTypeDef *)&DPM_Settings[USBPD_PORT_0], &DPM_Params[USBPD_PORT_0], &dpmCallbacks));
"
and USBPD_PE_Init success when just use ucpd1, why the added ucpd2 caused the ucpd1 USBPD_PE_Init error?
thanks.
