cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate Cube AI Studio generated Neural-ART code into an existing project?

emmanuel_
Associate III

 

Dear all,


For the STM32N6570-DK kit, is there a simple tutorial that shows the workflow for integrating a model generated by STM32Cube AI Studio into a project?

A simple example would be: if an image is detected, we could turn on an LED on the kit.

A guide would be very welcome. Many thanks


Cheers


Emmanuel

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hi @emmanuel_ ,

 

In STM32cube AI Studio, you can generate 2 things:

  • Only the C code of the model
  • A template project 

The template project on seems to be what you request.

In the current version it doesn't do anything else than running an inference.

 

In the next version (end of april) we will also print the inference time via serial.

 

We are working on a tutorial to explain how to recreate manually the template project from a cubeMX blank project, generating the C files of the model, copying them in the project and recreating the simple application.

Do you think this is helpful? please let us know what you think, so that we can adapt our tutorial.

 

In the meantime, if you generate the project, I think that what you are looking for is in AI\App\x-cube-ai.c

The main.c call the function in the other file in the while(1) loop, nothing more.

 

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

3 REPLIES 3
Julian E.
ST Employee

Hi @emmanuel_ ,

 

In STM32cube AI Studio, you can generate 2 things:

  • Only the C code of the model
  • A template project 

The template project on seems to be what you request.

In the current version it doesn't do anything else than running an inference.

 

In the next version (end of april) we will also print the inference time via serial.

 

We are working on a tutorial to explain how to recreate manually the template project from a cubeMX blank project, generating the C files of the model, copying them in the project and recreating the simple application.

Do you think this is helpful? please let us know what you think, so that we can adapt our tutorial.

 

In the meantime, if you generate the project, I think that what you are looking for is in AI\App\x-cube-ai.c

The main.c call the function in the other file in the while(1) loop, nothing more.

 

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.
emmanuel_
Associate III

Hi @Julian E. ,

Thank you very much for your response.

This tutorial would be very helpful, especially if it clearly shows the steps to follow in order to successfully complete the project. 

The simplest tutorials are sometimes the most effective !

 

Cheers

 

Emmanuel

 

Hello , can you please include in the tutorial the correct debugging method for the generated project ? that would be helpful 

and also when can we expect this tutorial ?