2020-08-17 01:07 AM
Hey there,
since a few weeks i am setting up a USB-PD sink with the Nuc-USBPDM1 and Nuc-G474.
In this special case i want to:
1. Read out charger PDOs
2. Set up Fixed PDOs (e.g. 15V@3A) and switching during runtime
3. Set up APDOs according to PPS (variable voltage and current) and switching during runtime
My project files are generated by CubeMX with firmware package 1.2.0 for the G4 series (with 1.3.0 i couldn't get this work). I am using non RTOS mode.
For now it is possible for me to select fixed PDOs and switching them during runtime (by USBPD_DPM_RequestMessageRequest). But when i want to set up an APDO (by requesting continuously every 100ms) i can't get this work.
Only the first request is sent by the stack (proved with Cypres USB-PD protocol analyser) and after this i only get a "USBPD_BUSY" or "USBPD_ERROR" by the request function and the stack goes crazy (hard resetting every few seconds). The whole board has to be reset, that USB-PD stack works stable again.
Is there any possibility to get PPS working properly with my setup. Or do i have to make special changes in CubeMX, "usbpd_dpm_user" or "usbpd_dpm_core"?
Best regards
Solved! Go to Solution.
2020-09-23 10:47 PM
Dear @Guenael Cadier ,
thank you for the new lib. This solved my problem completely!! Now switching between PDOs and APDOs during runtime with my sink emulation is possible without getting any unexpected HardReset signaling.
Best regards