2026-02-12 12:06 PM - last edited on 2026-02-18 1:54 AM by FBL
Hello,
I created a complex project for a STM32H573 based custom board. That project is ThreadX based and it shall use the USPBD package.
I generated to project with STM32CubeMX version 6.16.1 using STM32Cube MCU Package for STM32H5 Series 1.5.1 (see attached IOC file for reference)
I create the code for the latest STM32CubeIDE 2.0.0. The project is imported successfully, but does not compile and the following errors are logged:
Description Resource Path Location Type
'USBPD_CORE_PDO_TYPE_APDO' undeclared (first use in this function); did you mean 'USBPD_CORE_PDO_TYPE_FIXED'? usbpd_dpm_user.c /test03/USBPD/Target line 1100 C/C++ Problem
'USBPD_CORE_PDO_TYPE_APDO' undeclared (first use in this function); did you mean 'USBPD_CORE_PDO_TYPE_FIXED'? usbpd_dpm_user.c /test03/USBPD/Target line 1577 C/C++ Problem
'USBPD_ParamsTypeDef' has no member named 'PE_UnchunkSupport' usbpd_dpm_user.c /test03/USBPD/Target line 1507 C/C++ Problem
'USBPD_ParamsTypeDef' has no member named 'PE_UnchunkSupport' usbpd_dpm_user.c /test03/USBPD/Target line 1511 C/C++ Problem
'USBPD_PDO_TypeDef' has no member named 'SRCSNKAPDO' usbpd_dpm_user.c /test03/USBPD/Target line 1275 C/C++ Problem
'USBPD_PDO_TypeDef' has no member named 'SRCSNKAPDO' usbpd_dpm_user.c /test03/USBPD/Target line 1276 C/C++ Problem
'USBPD_PDO_TypeDef' has no member named 'SRCSNKAPDO' usbpd_dpm_user.c /test03/USBPD/Target line 1295 C/C++ Problem
'USBPD_PDO_TypeDef' has no member named 'SRCSNKAPDO' usbpd_dpm_user.c /test03/USBPD/Target line 1296 C/C++ Problem
'USBPD_PDO_TypeDef' has no member named 'SRCSNKAPDO' usbpd_dpm_user.c /test03/USBPD/Target line 1297 C/C++ Problem
make: *** [USBPD/App/subdir.mk:28: USBPD/App/usbpd_dpm_core.o] Error 1 test03 C/C++ Problem
make: *** [USBPD/App/subdir.mk:28: USBPD/App/usbpd_pwr_if.o] Error 1 test03 C/C++ Problem
make: *** [USBPD/App/subdir.mk:28: USBPD/App/usbpd.o] Error 1 test03 C/C++ Problem
make: *** [USBPD/Target/subdir.mk:22: USBPD/Target/usbpd_dpm_user.o] Error 1 test03 C/C++ Problem
make: *** Waiting for unfinished jobs.... test03 C/C++ Problem
unknown type name 'USBPD_PPSSDB_TypeDef' usbpd_dpm_user.h /test03/USBPD/Target line 96 C/C++ Problem
When looking at the code, I do not understand why these defines and types are missing, they should all be there.It looks like there are some project settings missing or wrong set. Maybe there is a bug in the code generator?
Any help on getting this to compile would be highly appreciated.
Thank you!
/Thomas
Solved! Go to Solution.
2026-02-17 7:23 AM
Hello @TThan,
After investigating internally, the configuration of USBPD should be changed from [Min Sink] to [Full Stack].
Only [Full stack] option could be selected, and the other options will be grayed out when X-Cube-TCPP is enabled.
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.
2026-02-12 1:10 PM
Hello@TThan
Let me thank you for your post.
I am currently checking this behavior, and I will get back to you ASAP.
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.
2026-02-16 3:41 AM - edited 2026-02-16 3:42 AM
Hello @TThan
Let me thank for bringing this issue to our attention.
The issue has been escalated internally to the dedicated team for further investigation and resolution (Ticket 227242).
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.
2026-02-16 4:41 AM
Hello Mahmoud,
thank you for investigating on this.
/Thomas
2026-02-17 7:23 AM
Hello @TThan,
After investigating internally, the configuration of USBPD should be changed from [Min Sink] to [Full Stack].
Only [Full stack] option could be selected, and the other options will be grayed out when X-Cube-TCPP is enabled.
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.