Skip to main content
Associate III
February 25, 2026
Question

STM32 cloud AI

  • February 25, 2026
  • 3 replies
  • 318 views

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

3 replies

Julian E.
Technical Moderator
February 26, 2026

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

​In order 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.
Associate III
February 27, 2026

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.

Associate III
March 2, 2026

This is a kind reminder request to look into this problem.

Looking forward for your reply.

 

 

Thanks & Regards

Chanchal

Associate III
February 26, 2026

I have checked the middleware paths and corrected two of them as according to they are available in C/ST/stedgeai/<version>/middlewares. Still the build is failing with the error. I am attaching the error here. Can you please check it what can be the possibility?

 

 

hamitiya
ST Employee
March 2, 2026

Hello @chanchal94 ,

When regenerating, please uncheck this box to see if it corrects your issue

image.png

 

Best regards,

Yanis

​In order 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.
Associate III
March 3, 2026

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

Associate III
March 6, 2026

@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