cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling error in Example code (Ux_Device_CDC_ACM) of STM32U5G-DK2

Sudarshan
Associate II

Hello,

I have got STM32U5G-DK2 and i downloaded the example repository for the same. I build the example (Ux_Device_CDC_ACM) at the original location in Repository folder by opening it in STM32CubeIDE. It builds successfully but when I copy the same example code to another folder and import it in new workspace then I am getting the following error after building the project (Ux_Device_CDC_ACM):

 

11:06:51 **** Incremental Build of configuration Debug for project Ux_Device_CDC_ACM ****

make -j16 all

make: *** No rule to make target '/Middlewares/ST/usbx/common/core/src/ux_device_stack_alternate_setting_get.c', needed by 'Middlewares/USBX/UX Device CoreStack/ux_device_stack_alternate_setting_get.o'. Stop.

"make -j16 all" terminated with exit code 2. Build might be incomplete.

 

11:06:51 Build Failed. 1 errors, 0 warnings. (took 274ms)



This is happening with any project I copy from original repository to my new workspace. I copy these projects just to leave original code untouched.

Kindly guide me to remove this error.

 

With regard,

Sudarshan Chaudhary

 

3 REPLIES 3
Saket_Om
ST Employee

Hello @Sudarshan 

Did you update include/source paths in project properties correctly?

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.
Saket_Om

Hello @Saket_Om ,

How to update these source paths in projects. I just copied only the particular example project folder to my desired location and opened it in STM32CubeIDE. Then it shows above error.
What and How should I change after opening this project in IDE, please tell ?

 

Hello @Sudarshan 

Please follow these steps:

  1. Right-click your project > Properties.
  2. Go to C/C++ General > Paths and Symbols.
  3. Update all paths.

Saket_Om_0-1753786605506.png

 

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.
Saket_Om