Skip to main content
Associate
May 8, 2025
Solved

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

  • May 8, 2025
  • 2 replies
  • 439 views

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?

Best answer by Mahmoud Ben Romdhane

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

 

2 replies

Technical Moderator
May 8, 2025

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.
loz01Author
Associate
May 8, 2025

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.

Technical Moderator
May 8, 2025

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

 

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.