2025-05-08 5:23 AM
Hi, was wondering if anyone could suggest what the problem could be with trying to build the example USB-C PD Source application per this tutorial :
https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_Source
I've checked that I have worked through all the steps as instructed but build is failing with error :
/USBPD/Target/usbpd_devices_conf.h:83:58: error: 'valueNotSetted' undeclared (first use in this function)
83 | NVIC_SetPriority(valueNotSetted,2); \
Looks like I have a missing or incomplete header file. Can anyone help?
2025-05-08 5:36 AM
Hello @loz01 ,
First let me thank you for posting and welcome to the ST Community.
You request is under investigation, and I will get back to you ASAP.
I suggest also that you 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-05-08 5:44 AM
Hi Mahmoud,
I found the problem, if it helps, the UCPD1 and UCPD2 interrupts were not set to enabled in NVIC settings for some reason, I am sure I clicked the checkbox! Anyway, I corrected, generated the code again and this time it built.
Thanks for the quick response.
2025-05-08 6:01 AM
Hello @loz01 ,
It is good to hear from you that the setting problem is solved.
I reproduced the STM32CubeMX settings provided in this Wiki and I confirm that the project compiles with 0 errors.
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.