WATCH ON-DEMAND | STM32 Summit 2026
Ask questions and find answers on how to deploy, debug, and optimize AI models on ST microcontrollers, microprocessors, and smart sensors.
Most recent activity
Hi,I have migrated to STEdgeAI v2.1 and I can't analyze or compile an audio ONNX quantizaied model for STM32N6.Before this, the same model was being analized correctly with version 2.0 of stedgeai.This is the error:C:/ST/STEdgeAI/2.1/Utilities/windows/stedgeai.exe analyze -v3 --target STM32N6 -m "model.onnx"ST Edge AI Core v2.1.0-20194 329b0e98dINTERNAL ERROR: Unexpected conditionThe PASS progress is rising to 11%, but then it fails and stops. There isn't any other log information.Is there any bug with the STEdgeAI new version that explains this behaviour?Thank you,Gilen
I am using a STM32U575ZIT6 MCU, on a custom board, and I wanted to know which option to choose on the data logger generator screen, I have a ISM330DHCX accelerometer on my board
Dear Community,I'm evaluating whether some of the STM32 ICs are suitable for future projects using simple CNNs (Convolutional Neural Networks).I'm running into problems when trying to analyze a simple CNN model in the ONNX format (converted to ONNX from pyTorch) in the STM32CubeMX AI IDE. I'm using ST Edge AI Core v2.0.0-20049 and once I click on 'analyze' in the network tab, the IDE gives me the error 'INTERNAL ERROR: 'kernel_shape''. Please see the model attached below.I could not find any hint in the docs and as far as I know all the operations should be supported, shouldn't they?I tried to experimenting with the layers and the kernel sizes but the error was not fixed.The CONV-Layer is leading to the error.I would be happy about a hint how to fix this error or if the platform does not support some operations or if there are some general issues known with CNNs.I attached the ONNX model below.Thank you!
Hello,I have a discovery kit STM32N6570-DK and I am trying to follow the instructions in ST Model Zoo Services so that I can train, evaluate and deploy an object detection model that can detect cars. So I downloaded the Pascal_VOC_2012 dataset, I made some custom data cleanup to keep only the images with the vehicles, (classes [ bicycle,bus,car,motorbike ]) and on that I used the predefined scripts in ST model zoo to train st_ssd_mobilenet_v1. This went well and the evaluation gave good accuracy results. Then I used the scipts to make predictions on some images. The prediction options "host" and "stedgeai_host" also went well. When I try the option "stedgeai_n6", then the compilation and programming of the board works ok but then the inference freezes. After some debugging I found out that there is a software epoch that performs a Tile operation and this one freezes. In the network_generate_report.txt I noticed some question marks just before this Tile epoch.&
Hi, When changing from a Tiny YOLOv2 model to ST SSD Mobilenet v1 I strangely got the following error:Bus interface interruptBUSIF0 ERR: 0x10BUSIF1 ERR: 0x0ATON_STD_IRQHandler()@763: irqs=0xlxassertion "0" failed: file "Y:/VM/stm-workspace/fall-guard-v2.0.0/Lib/AI_Runtime/Npu/ll_aton/ll_aton_runtime.c", line 767, function: __LL_ATON_RT_IrqErr I tried other models but only Mobilenet v1 always returns this error. Is there a specific config required? Thanks,Gino
1. X-CUBE_AI forces the use of the bypass clock source and enables both I-Cache and D-Cache.2. Following the advice in https://community.st.com/t5/edge-ai/x-cube-ai-integration-and-clock-errors/td-p/706076 allowed me to avoid the bypass clock source, but the caches remain enabled. Additionally, the SystemClock_Config function enters a hardfault at: RCC_OscInitStruct.HSI48State = RCC_HSI48_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;3. When TouchGFX is not used, X-CUBE_AI can apply templates normally and generates an additional app_x-cube-ai.c file. The code in this file seems self-contained, so the clock initialization issue is likely not related to this. 4. Are there any solutions or workarounds to resolve the clock configuration conflict and disable the forced enabled caches? My project relies heavily on DMA operations, and I prefer not to use the cache. Thank you for your assistance.The whole SystemClock_Config function as follow:void SystemClock_Config(void){RCC_OscInitTypeDef
Hi All,I’m trying to hunt down the best board for my new project. Basically I need the following functionality either on the board or via add-on boards. I can see a few possibilities but I haven’t had much experience so I thought it best to ask. Thankyou!RequirementsTinyML (processed onboard) 0.5 and above TopsGenerate and encode sinewave between 18kHz - 21kHzMicrophone inputClass d Speaker out (=>3w preferably)Low powerEthernet (RJ45)Not a requirement but would be greatPOEWifiLow budget
Hi, I'm working with implementing a Spiking Neural Network on a neural ART equipped STM32N6 board. As a true SNN has operators that are not supported by the STEdgeAI compiler, I have opted to create a ANN model that simulates spiking behaviour. My problem is that the current approach utilizes custom RNN layers which seem to not be supported either by STEdge nor by TFLite conversion. A partial solution for that was to unroll my "RNN layers" by using a fixed time step. This allowed me to convert my model into TFLite but when I import my model into the STEdgeAI suite I seem to be unable to neither quantize, optimize or benchmark it. Am I still using something unsupported which blocks me from using my model? Or am I missing some other step to use my model in STEdgeAI?Attached is the unrolled single neuron model in ".tflite", snn_to_ann_neuron.py which is the original implementation, and unrolled_s2a.py which is my code to unroll it. Thanks in advance!
I am just starting with STM32CubeMX and X-Cube-AI. I am reading the documentation "Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI)" and got the point where it says to load a "public Keras HAR model file". Where do I find this file?
Hi. I need to create my own boot leader that will be able to update itself and the application as well. I don't want to sign this boot leader and the application every time. Is it possible to create a simple FSBL that will be signed and permanently placed in memory and its only task will be to jump to my bootloader, which will not be signed? I don't fully understand this, because in many places you can find information that the application must also be signed, but e.g. the FSBL that is in the examples only does jump to the application (it does not check any signatures or header)BRArtur
I am currently running the object detection application code firmware from the STM32AI ModelZoo Services on STM32N6570-DK.I would like to extend its functionality with the following two features:- Convert the captured RGB frame to JPEG format.- And then store the converted JPEG image onto the SD card available on the discovery kit.Can someone please advise on the best approach to implement these features within the current firmware architecture?Thank you for your support.
I used JPG photos for training. So, after integrating it into the STM32U5 using X-CUBE-AI, what kind of data should I use for verification?Used RGB565?YUV?I have tried using JPG data, but it didn't work.
Can anyone please help with the step by step process for deploying a deep learning model on NUCLEO-H753ZI board using STM32CubeIDE and XCubeAI package...I am not able to do it even after trying multiple times...please help me through this .... using a video or something... as i tried many solutions here...Or i can provide the remote access of my system to you... if it is possible... It is really urgent and needed...
My question is same the title. I know that you have zoo model with custom training script to training or fine tuning based on provided model. But I have a new model, that is trained in other environment, I exported it to ONNX. How can I deploy this model to this board? Thank you.
HelloI want to use ST Edge AI Core for model validate on STM32MP257.When I set the parameter --mode host, the report results include "Inference time per node" command: stedgeai validate -m ./linear_model_quantized.onnx --target stm32mp2 --mode host -v 2part of report result: Inference time per node---------------------------------------------------------------------------c_id m_id type dur (ms) % cumul name ---------------------------------------------------------------------------0 0 NL (0x107) 0.001 30.8% 30.8% ai_node_0 1 18 Dense (0x104) 0.001 30.8% 61.5% ai_node_1 2 18 NL (0x107) 0.001 26.9% 88.5% ai_node_2 ---------------------------------------------------------------------------n/a n/a Inter-nodal 0.000 11.5% 100.0% n/a ---------------------------------------------------------------------------total 0.003 --------------------------------------------------------------------------- But I want to see the actual inference time of each layer of the model running
Hi, Im implementing an YoloV8n model into the STM32 MPU257-DK, and its already working for the models available at, but I would like to know if there is any COCO 80 classes model and not person only. I got the .tflite in the following link:https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/yolov8n/README.md
Hello,I met these logs when I try to deploy a model on stm32n6d570-dk:1 physical GPUs, 1 logical GPUs [INFO] : Setting upper memory limit to 6GBytes on gpu[0] [INFO] : Running `deployment` operation mode [INFO] : ClearML config check [INFO] : The random seed for this simulation is 127 INFO: Created TensorFlow Lite XNNPACK delegate for CPU. [INFO] : Generating C header file for Getting Started... loading model.. model_path="yolov8n_256_quant_pc_uf_od_coco-person-st.tflite" loading conf file.. "D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\stmaic_STM32N6570-DK.conf" config="None" "n6 release" configuration is used [INFO] : Selected board : "STM32N6570-DK Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/n6 release/stm32n6) [INFO] : Compiling the model and generating optimized C code + Lib/Inc files: yolov8n_256_quant_pc_uf_od_coco-person-st.tflite setting STM.AI tools.. root_dir="", req_version="" Cube AI Path: "E:\ST\STEdgeAI\2.0\Utilities\w
hello I would like to know the possible reasons for anomalies. I used the AI library generated by NanoEdge AI Studio to run tests on STM32F407, and the similarity obtained was abnormal. Some exceed 100, such as 255, and I would like to know the possible reasons for such anomalies. Thanks.
你好,你是否解决了这个问题?
Please help, why can my configuration of flower work normally, but when I change the model st-minst and follow the same steps to deploy and burn, the LCD screen does not light up and the model does not work.
Hello everyone,I am trying to convert a tf.matmul operation into a .tflite model and deploy it on the STM32MP257F-EV1 NPU for acceleration. My inference inputs are (1, 1, 384) and (1, 51865, 384). Below is my code:import tensorflow as tfimport numpy as nphidden_states = tf.keras.Input(shape=(1, 384), dtype=tf.float32)output_embeddings = tf.keras.Input(shape=(51865, 384), dtype=tf.float32)output = tf.matmul(hidden_states, output_embeddings, transpose_b=True)# Create a new standalone modelmatmul_model = tf.keras.Model(inputs=[hidden_states, output_embeddings], outputs=output)matmul_model.summary()# Define the inputshidden_states = tf.random.normal((1, 1, 384), dtype=tf.float32) * 3output_embeddings = tf.random.normal((1, 51865, 384), dtype=tf.float32) * 3# Call the model with separate argumentsoutput = matmul_model([hidden_states, output_embeddings])print(output.shape)matmul_model.save("matmul_saved_model", save_format="tf")# Load the saved encoder modelmatmul_model = tf.keras.models.loa
I tried generating a project file from CubeMX for my Board STM32N657-Q, themodel i downloaded from st modelzoo "mobilenet_v1_0.25_224_int8.tflite" As I got some problem with converting it through Board selection in Cube MX, I tried it cobining it with a example code selection So i selected a example for UART_Printf. in that i enabled Xcube AI in cofiguration and generated the C file. But while running the generated project file whiloe building it in cubeIDE iam getting lots of errors i have shared the errors
I am using the STM32 Model Zoo services repo for th This link shows the READme that I used from the application software that I downloaded from STM32 website. I dont think I am correctly importing the project. I have double clicked the .project file and the it doesnt setup the folders for the makefile correctly. I would like to know what is the correct way to import this project. I dont know what I have to include in the "Path and Symbols" for the preferences for the project file. https://github.com/STMicroelectronics/stm32ai-modelzoo-services/blob/main/application_code/object_detection/STM32N6/README_ModelZoo.md "You can launch the STM32CubeIDE/.project with STM32CubeIDE. With the IDE, you can modify, build, and deploy your project on the target. To update the weights, flash them by following the instructions in the Program hex files documentation." I am building the blue "Getting Start project file"
I followed the steps in the link below and then ran main.py, but I encountered the following error. I don’t know how to resolve it. I also set the BOOT0 and BOOT1 switches on the board, but I still get the same result. https://github.com/STMicroelectronics/stm32ai-modelzoo-services/blob/main/object_detection/deployment/README_STM32N6.md (st_zoo) C:\Users\wwnso\Desktop\STM\stm32ai-modelzoo-services\object_detection\src>python stm32ai_main.py --config-path ./config_file_examples/ --config-name deployment_n6_ssd_mobilenet_v2_fpnlite_config.yaml 2025-03-14 02:35:59.704524: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2025-03-14 02:35:59.705273: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. [WARNING] The usable GPU memory is unlimited. Please consider setting the 'gpu_memory_limit' attribute
D:\stm32aibushu\stm32ai-modelzoo-services\object_detection\src>python stm32ai_main.py --config-path ./config_file_examples/ --config-name my_deployment_n6_ssd_mobilenet_v2_fpnlite_config.yaml2025-05-16 11:30:17.018496: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found2025-05-16 11:30:17.018747: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.[WARNING] The usable GPU memory is unlimited.Please consider setting the 'gpu_memory_limit' attribute in the 'general' section of your configuration file.[INFO] : Running `deployment` operation mode[INFO] : ClearML config check[INFO] : The random seed for this simulation is 123INFO: Created TensorFlow Lite XNNPACK delegate for CPU.[INFO] : Generating C header file for Getting Started...[INFO] : This TFLITE model doesnt contain a post-processing layerloading model.. m
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.