cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 UCPD PDO Num BUGs

Jason927
Associate III

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)     */

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

5 REPLIES 5
Mahmoud Ben Romdhane
ST Employee

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.

Jason927
Associate III

Plus:
CubeIDE Version:1.19.0
MCU Package Version:1.8.0

@Mahmoud Ben Romdhane 
ioc file in here

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.

@Mahmoud Ben Romdhane 
I dynamically created a PDO SNK List based on the Source's PDO, so, no need to focus in this bug for me. THANKS.