2026-02-25 5:33 AM
I am generating a project from scratch with the help of STm32 cloud AI for STM32N6570 MCU. When I loaded in STM32 IDE , the main.c inside application is getting build but as after that when I am trying to do changes in its .ioc file to add other features its middleware files are getting corrupted, path gets broken as soon as I press generate code in cube MX file. Kindly help me.
Thanks & Regards
Chanchal
2026-02-26 5:21 AM
Hi @chanchal94,
You need to fix the paths to the middlewares in cubeIDE settings.
If the problematic middlewares are related to the N6, you can find them in the N6 cubefirmware in the cubeMX install folder.
If they are related to AI middlewares, you can find them in C/ST/stedgeai/<version>/middlewares
Have a good day,
Julian
2026-02-26 8:41 AM
2026-02-26 11:04 PM
The core problem is when I download the whole project from STM32 AI studio, it seems fine, build was okay with zero errors, As soon as I make changes according to my project in MX configuration and generate code, it empties the NPU folder. I checked it inside middleware folder there was empty NPU folder , that is why build is failing. What can we do for that.
2026-03-02 6:14 AM - edited 2026-03-02 6:14 AM
This is a kind reminder request to look into this problem.
Looking forward for your reply.
Thanks & Regards
Chanchal
2026-03-02 6:54 AM
Hello @chanchal94 ,
When regenerating, please uncheck this box to see if it corrects your issue
Best regards,
Yanis
2026-03-02 9:11 PM - edited 2026-03-03 3:22 AM
I tried unchecking the box as suggested by you, @hamitiya, but the issue still persists. The problem remains the same — corrupted files and the path issue that I explained earlier in detail.
This is the error that is coming during build:
Description Resource Path Location Type make: *** No rule to make target 'C:/Users/hp/.stm32cubeaistudio/workspace/Modified_STM32/Middlewares/ST/AI/Npu/ecloader.c', needed by 'Middlewares/ST/AI/Npu/ecloader.o'. Stop. Modified_STM32_Appli C/C++ Problem
2026-03-05 8:50 PM
@hamitiya @Julian E. Kindly look into this problem as I am stuck in between of a project. It would be a great help.
Looking forward for your reply
Thanks & Regards
Chanchal