cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to integrate downloaded C code generated in ST Edge AI Developer Cloud

Bjorn1
Associate II

HI everyone,

I have recently bought a STM32N6570-DK and I am trying to implement an example model from the Model Zoo on my board. I am able to get results and benchmark but when I go to Generate Your Project I am only able to Download C Code as seen in the image. 

Bjorn1_0-1757599764115.png

How do I now use these files in the zip? In this tutorial, it says that "The .zip package contains all network .c and .h files, the Cube.AI runtime library files, and the stm32ai command line reports and output. Users can replace the existing files in their project with these newly generated files", however when creating a new project, I do not have these files. 

Are there any guides on how to integrate these files into a new project for the STM32N6570-DK? Any help will be much appreciated.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hello @Bjorn1,

 

The Dev Cloud main purpose is to benchmark a model.

To then create an application, I would suggest to look at the model zoo services.

In your case, you seem to be interested in the hand posture use case.

Please find useful links below.

 

Note that with the model zoo services, you can also retrain, evaluate and quantize models if that is something that interest you.

 

Deployment guide model zoo:

stm32ai-modelzoo-services/hand_posture/docs/README_DEPLOYMENT.md at main · STMicroelectronics/stm32ai-modelzoo-services · GitHub

Source code used by the deployment: 

stm32ai-modelzoo-services/application_code/hand_posture/STM32F4 at main · STMicroelectronics/stm32ai-modelzoo-services · GitHub

 

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.

View solution in original post

7 REPLIES 7
Julian E.
ST Employee

Hello @Bjorn1,

 

The Dev Cloud main purpose is to benchmark a model.

To then create an application, I would suggest to look at the model zoo services.

In your case, you seem to be interested in the hand posture use case.

Please find useful links below.

 

Note that with the model zoo services, you can also retrain, evaluate and quantize models if that is something that interest you.

 

Deployment guide model zoo:

stm32ai-modelzoo-services/hand_posture/docs/README_DEPLOYMENT.md at main · STMicroelectronics/stm32ai-modelzoo-services · GitHub

Source code used by the deployment: 

stm32ai-modelzoo-services/application_code/hand_posture/STM32F4 at main · STMicroelectronics/stm32ai-modelzoo-services · GitHub

 

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.

Hi Julian,

Thanks for the swift response.

I will give this a go and let you know if successful.

Thanks,

Björn

Bjorn1
Associate II

Hi @Julian E. 

I used the model zoo services as you recommended. Opening the existing .project file builds without errors, but when I try to debug/run the project, I encounter an error while setting the debug configuration:

Range [0,-1) out of bounds for length...

I followed the workaround suggested in the STMicroelectronics Community Post where I followed the post made by Ghofrane GSOURI (ST Employee) which was to use a workaround by removing the following line from the .project file:

 

<nature>com.st.stm32cube.ide.mcu.MCUAppSProjectNature</nature>

 

Would you consider this a safe approach going forward, or do you recommend an alternative solution?

Thanks,

Björn

Hello @Bjorn1,

 

There is indeed this bug in cubeIDE 1.19.

In the internal ticket following this bug, it is Ghofrane GSOURI who was in charge of it. So, he is the expert, and I would follow what he says.

 

I personally reverted to version 1.18.1 when the bug first appeared.

From what I saw internally, it should be fix in the next CubeIDE version.

 

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.
Bjorn1
Associate II

Hi @Julian E. 

I’m trying to step through the code, but I’m running into some strange behavior. When I debug and use the Step Over button, the step controls grey out (see image) as if the code is running, even though there are breakpoints set further down. At that point, execution also seems to pause on the board.

Bjorn1_0-1758020182413.png

When I use breakpoints together with the Play button, I see other odd behavior—for example, execution will jump from inside the if block directly into the else block (see image).

Bjorn1_1-1758020323677.png

For context, this is with the object detection use case.

Can you explain why this is occurring? Perhaps due to deletion of 

<nature>com.st.stm32cube.ide.mcu.MCUAppSProjectNature</nature>

in .project file?

Thanks,

Björn

Hello @Bjorn1,

 

The dev team says that the workaround should not create such behavior. We will test on our side.

 

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.
Bjorn1
Associate II

Hi @Julian E. 

I am adding images of the debug config for more context. I initially had a problem with the debug config as seen below. Note that it built with no errors.

Screenshot 2025-09-15 121510.png

I added the elf file manually and now this is how it looks.

Screenshot 2025-09-17 092249.png

 Now I can debug and run, but I get very strange behavior with debugger.

Thanks,

Björn