2025-09-11 7:17 AM
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.
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!
Solved! Go to Solution.
2025-09-11 7:26 AM
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:
Source code used by the deployment:
Have a good day,
Julian
2025-09-11 7:26 AM
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:
Source code used by the deployment:
Have a good day,
Julian
2025-09-12 2:29 AM
Hi Julian,
Thanks for the swift response.
I will give this a go and let you know if successful.
Thanks,
Björn
2025-09-16 1:54 AM
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
2025-09-16 2:25 AM
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
2025-09-16 4:05 AM - edited 2025-09-16 4:06 AM
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.
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).
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
2025-09-16 5:04 AM - edited 2025-09-16 5:08 AM
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
2025-09-17 12:32 AM
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.
I added the elf file manually and now this is how it looks.
Now I can debug and run, but I get very strange behavior with debugger.
Thanks,
Björn