2025-04-16 1:42 PM - edited 2025-04-16 1:43 PM
I am Working with the board NUCLEO-N657X0-Q, I need to generate a c code of the Ai model Run in the Board, for that I generated a c code for the STM32N6570-DK to run in my board from St developer zone. Unfortunately i cant build the project file in CUBE IDE i cant figure out what is the problem.
Solved! Go to Solution.
2025-05-21 4:47 AM
Hello @VinaySankar,
You probably have to update CubeMX:
Click Help > Check for Update
Or you can install the update using a .zip.
Click Install package as you did, then from local and select the zip from the X Cube AI 10.1.0 that you can download here:
https://www.st.com/en/embedded-software/x-cube-ai.html
Have a good day,
Julian
2025-04-17 2:31 AM
Hello @VinaySankar,
As you probably know, we have AI application examples for the DK board but not the Nucleo.
I would suggest you use the example application of the DK: STM32N6-AI - AI software ecosystem for STM32N6 with Neural-ART accelerator - STMicroelectronics
And the basic application example for the nucleo: STM32CubeN6 - STM32Cube MCU Package for STM32N6 series (HAL, CMSIS devices, and examples running on ST boards) - STMicroelectronics
(in STM32Cube_FW_N6_V1.1.0\Projects\NUCLEO-N657X0-Q)
There are currently bugs in X Cube AI for the Nucleo, the new version should drop around end of April
Have a good day,
Julian
2025-04-29 10:29 PM
Hi @Julian E.
I am generating an AI model in C through CubeMX and Xcube AI. As I was having trouble generating only the model, So I converted it by selecting an example code. I chose the example code of GPIO LED, enabled Xcube AI, uploaded the models, and generated the project file. While building the project file in Cube IDE, I encountered errors. The errors are listed below.
ERRORS:
../Src/aiValidation_ATON.c:48:10: fatal error: ai_io_buffers.h: No such file or directory
make: *** [Src/subdir.mk:79: Src/aiValidation_ATON.o] Error 1
make: *** Waiting for unfinished jobs....
../Src/app_x-cube-ai.c:89:43: error: 'RIF_RISC_PERIPH_INDEX_NPU' undeclared (first use in this function)
../Src/app_x-cube-ai.c:89:70: error: 'RIF_ATTRIBUTE_PRIV' undeclared (first use in this function)
../Src/app_x-cube-ai.c:89:91: error: 'RIF_ATTRIBUTE_SEC' undeclared (first use in this function)
make: *** [Src/subdir.mk:79: Src/app_x-cube-ai.o] Error 1
2025-04-30 6:59 AM
Hello @VinaySankar ,
I am not sure to understand your whole process for generating your final project that does not compile.
You say you use the example code of GPIO LED, but maybe a correct project to build would be a validation project for ai models.
Could you share your initial errors (from the message dated 2025-04-16 10:42 PM), this may be an easier way to start with.
Just in case you are interested, if you download STEdgeAI-Core - Artificial intelligence (AI) optimizer technology for STMicroelectronics products - STMicroelectronics, you can find extra "examples" and "documentation" related to ai (in particular, there is an "hello world" example that just does an inference, based on the "network.c" you generated.
If you want to fix your errors (which may be a bit more complex) The errors you have are related to the fact that:
ai_io_buffers.h is missing: this file is specific to the validation project (try to generate a validation project first to see what it looks like)
Let us know if it helps,
cheers.
2025-05-07 7:31 AM
Hi @Julian E. , @SlothGrill ,
As mentioned in the message
#There are currently bugs in X Cube AI for the Nucleo, the new version should drop around end of April
Is the release out for use.
Thanks,
Vinay
2025-05-19 11:13 PM
Hi @SlothGrill , @Julian E. ,
Is the New release of X-Cube Ai for Nucleo out or ready to use.
Can you please update on the same about the revised dates of release of the X-Cube Ai
Thanks,
Vinay Sankar
2025-05-20 7:37 AM
Hello @VinaySankar,
The new version of X Cube AI 10.1.0 is out. Could you try again and tell me what you get.
Have a good day,
Julian
2025-05-21 12:41 AM - edited 2025-05-21 12:56 AM
Hi @Julian E. ,
Thanks For your update. I tried to install the new verision of Xcube Ai from Cube MX, but there it does not shows any version to be installed, I also tried refreshing the page the version you described is not available to install. I have shared a picture of the same.
2025-05-21 4:47 AM
Hello @VinaySankar,
You probably have to update CubeMX:
Click Help > Check for Update
Or you can install the update using a .zip.
Click Install package as you did, then from local and select the zip from the X Cube AI 10.1.0 that you can download here:
https://www.st.com/en/embedded-software/x-cube-ai.html
Have a good day,
Julian
2025-05-23 12:53 AM - edited 2025-05-23 4:24 AM
Hi @Julian E. ,
I have successfully created a project file with cube MX and used an model from the ST modelzoo Model link :https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/image_classification/efficientnet/ST_pretrainedmodel_public_dataset/food-101/st_efficientnet_lc_v1_128_tfs/st_efficientnet_lc_v1_128_tfs_int8.tflite
While running it to the board an error message with
this is what hapening while running the code and it suddenly moves out of the debuging mode can u please help me with the solution for this one also.
Also for information while I am creating project with example selector i created a sample project of LED blinking. While running this project there were no issue while running this code.
Thanks
Vinay