cancel
Showing results for 
Search instead for 
Did you mean: 

USB-C PD source project won't build - 'valueNotSetted" undeclared

loz01
Visitor

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?

3 REPLIES 3
Mahmoud Ben Romdhane
ST Employee

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

loz01
Visitor

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.

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.

 

MahmoudBenRomdhane_0-1746709222468.png

 

Thanks.

Mahmoud