2025-08-26 1:10 AM
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?
/* 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) */
2025-08-26 1:19 AM - edited 2025-08-26 1:19 AM
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.
2025-08-26 1:22 AM
Plus:
CubeIDE Version:1.19.0
MCU Package Version:1.8.0
2025-08-26 1:27 AM
@Mahmoud Ben Romdhane
ioc file in here