cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 UCPD PDO Num BUGs

Jason927
Associate II

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

 

3 REPLIES 3
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 II

Plus:
CubeIDE Version:1.19.0
MCU Package Version:1.8.0

@Mahmoud Ben Romdhane 
ioc file in here