Skip to main content
Associate III
August 26, 2025
Solved

STM32U5 UCPD PDO Num BUGs

  • August 26, 2025
  • 2 replies
  • 506 views

Board:STM32U5A9xx

I set the Number of PDO to define = 5 in the cubeide.

But after generate code, the code in usbpd_pdo_defs.h, macro:PORT0_NB_SINKPDO is still 1U.
I also checked the file usbpd_pdo_defs_u5.ftl in cubeide's location, the macro PORT0_NB_SINKPDO is a value param from cubeide indeed, but it seems not effective. Is a bug?

Jason927_0-1756195540325.png

/* Define ------------------------------------------------------------------*/
#define PORT0_NB_SOURCEPDO 0U /* Number of Source PDOs (applicable for port 0) */
#define PORT0_NB_SINKPDO 1U /* Number of Sink PDOs (applicable for port 0) */
#define PORT1_NB_SOURCEPDO 0U /* Number of Source PDOs (applicable for port 1) */
#define PORT1_NB_SINKPDO 0U /* Number of Sink PDOs (applicable for port 1) */

 

Best answer by Mahmoud Ben Romdhane

Hello @Jason927 ,

 

I was able to reproduce your request.

Thank you for bringing this issue to our attention.

An internal Ticket was submitted to the Development Team (Internal Ticket Number: 216304).

I will keep you up to date when the problem is solved.

 

Thanks. 

Mahmoud

2 replies

Technical Moderator
August 26, 2025

Hello @Jason927 ,

 

Let me thank you for posting.

I am currently investigating your request. For more investigation, could you please provide your Ioc.File.

 

Thanks.

mahmoud

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.
Jason927Author
Associate III
August 26, 2025

@Mahmoud Ben Romdhane 
ioc file in here

Technical Moderator
August 26, 2025

Hello @Jason927 ,

 

I was able to reproduce your request.

Thank you for bringing this issue to our attention.

An internal Ticket was submitted to the Development Team (Internal Ticket Number: 216304).

I will keep you up to date when the problem is solved.

 

Thanks. 

Mahmoud

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.
Jason927Author
Associate III
August 26, 2025

Plus:
CubeIDE Version:1.19.0
MCU Package Version:1.8.0