2025-10-22 12:50 AM
Hi,
I´ve problems getting UCPD running on a STM32H563. With STM32G0 I´ve alraedy realized a lot of such projects with UCPD. Hence I suggest, that it maybe is a problem of the DMA which is much more complicated to configure on the H5. Is there any information about how to configure UCPD on H5?
Best,
Achim
2025-10-22 2:01 AM
Hi @AWack
Here you can find example firmware of UCPD on H563. If still having issues linked to UCPD and DMA configuration, provide more details to help you further.
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.
2025-10-22 3:34 AM
2025-10-23 4:09 AM
Hi @AWack
EPR should be supported using our stack. However, as of now we don't have an example firmware to reach 20V and hardware setup to test this. Based on your screenshot, it seems EPR mode, is still not configured!
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.
2025-11-17 5:04 AM
Hi AWack
Please find attached an .ioc for an USB PD DRP on a STM32H573 as example for the DMA configuration on H5.
Feel free to share your .ioc
-----------------
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.
2026-01-21 1:50 AM
2026-01-21 4:41 AM
Hi AWack,
You are using ADC1-IN5 for USB-PD.
Could you try again changing the ADC1 "overrun behaviour" configuration to : "Overrun data overwritten".
Also, there is no need to enable "DMA continuous requests" or for GPDMA configuration for the ADC1.
The rest of your configuration looks fine.
2026-02-25 12:37 AM
Hi,
I´m still struggling... also changing the ADC configuration didn´t help....
I also tried it with the Nucleo H563 board (after desoldering R60). Same result...
Best regards,
Achim
2026-03-02 11:03 PM
Hi AWack
For the Nucleo-H653 board, you will find a working .ioc file attached to generate the project. It includes a 20V 100mA PDO.
By connecting a 20V capable USB-Type C charger, the software negociates a 20V. You can verify with STM32CubeMonitor-UCPD.
But, on this hardware, the TCPP01 OVP is set to 6V (R56 = 2.4kOhms), then when Vbus=20V it opens the Vbus path.
So you can replace R56 by a 620 Ohms resistor to increase the OVP to 22V.
I have experimentally validated this solution on my end, please let me know.
Best regards
2026-03-03 2:22 AM
Hi PPAIL.1,
thanks a lot for the detailed response!!!
Now it works on the Nucleo board :) I think my mistake was, the DMA address incrementation. I increased for RX and TX address at memory side.
But trying to get it run on our own board, it doesn´t work. I´ve compared all ioc settings and the only difference I can figure out is, that I´m using FreeRTOS instead of ThreadX. Could this be the cause?
Best regards,
Achim