2025-07-23 10:45 PM
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
2025-07-29 2:48 AM
Hello @Sudarshan
Did you update include/source paths in project properties correctly?
2025-07-29 3:46 AM
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 ?
2025-07-29 3:59 AM
Hello @Sudarshan
Please follow these steps: