Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on how to deploy, debug, and optimize AI models on ST microcontrollers, microprocessors, and smart sensors.
Most recent activity
When I try to launch the "train.py" file, in conda virtual environment it gives me an error "ModuleNotFoundError: No module named 'logs_utils'". This is a module called on the code line 23 of the train.py. After that I've proceed with a "pip list" to see the modules instaled, but indeed the 'logs_utils'" isn't there.I've tried to install it with "pip install logs_utils" but it simply can't find the module.I've google it and the only module that it seems to exist is the "log_utils".Any one knows how to turn around this?Thank you.
Hi,Is it possible to add the custom post-processing function in the middleware of the object detection application https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/stm32ai_application_code/object_detection?Thanks! Reply
It's a shame that the serial emulator in AI Studio only supports a COM port as input and not an offline .csv file of recorded data, as it's not always possible to have access to a live stream.I've noticed as well that the COM port options don't seem to include COM ports that have redirected from a host computer when using Remote Desktop (but TeraTerm appears to do this OK).
Why does the datalogger crash when I put a device_config.json file on the SD card ?I created the device_config.json file using the Python GUI tool, saved it to the computer and then copied it to the root folder of the SD card. The only changes I made was to the accelerometers where I changed the range to 4g (with the exception of IIS2ICLX which was left at 3g).I put the SD card in the STWINBX1 and pressed the RESET button.When I try to start the log (by pressing the USER button) the software seems to crash.The green LED (LED_1) stays in the state when the USER button was pressed (i.e. permanently on or off).The board has to be reset, but then the same happens again if I try to start a log.When I try to access the log files on the SD card on the computer, I get an error saying the directory is corrupt, so this probably shows that the software is crashing...I cannot delete the folders, so I have to reformat the SD card.I have attached a copy of the device_config.json
Hi,I am trying to deploy a pytorch deep learning to stm32. I first converted it to an onnx model and after that verified it in STM32Cube.AI Developer Cloud and in the middle step of optimize it reported the following error. stm32ai analyze --model trans_model_8.onnx --allocate-inputs --allocate-outputs --compression none --optimization balanced --target stm32f4 --name network --workspace workspace --output output STEdgeAI Core v9.0.0-19802 INTERNAL ERROR: Mismatch in input shape of gemm: (BATCH: 1, CH : 12, H: 8 ) x (BATCH: 1, CH: 8, H: 12) When I look at the model visualization in netron I see that the gemm operation is only present in the last linear layer, but that operation is converting 1x702 data to 1x2. I don't know if there's something I'm missing.Would be great if you could assist me in resolving this issue. Thank you!
Hi,I am a research intern working on edge AI for anomaly detection.I am trying to integrate my anomaly detection NEAI model with a Network Management Card project which is in C++(cpp) running on STM32MP1.I would like to know the possibility of integration NEAI anomaly detection static library with a C++ project running on ST MCU. Thanks in advance!
I am validating a classification model on STM32H745-DISC0 board. The validation is successful but id does not show any accuracy related parameter.It shows all the parameters except accuracy. rmseMaeL2rmeanstd Ritesh
When converting a generated validation report in Nanoedge ai studio (v4.5.0) I've noticed that the format isn't good because it chops off the right-hand side of the confusion matrix. I can see there's a horizontal scrollbar but it doesn't work in the PDF and resizing the document doesn't show the missing part of the table.I don't see a workaround for this because you can't print the report from the popup window where it does display nicely, all you can do is convert to PDF.I've attached an example of what I mean with the produced report...
Hello, I am trying to train your models on a custom dataset created with the STM32F401 and X-NUCLEO 53L5A1 expansion board, and I am new to these things. I have downloaded the hand_posture folder on the model zoo section on GitHub, and followed all the instructions to modify the yaml file and preparing the dataset. But when I run the stm32ai_main.py file it tells me that not all dependencies have been iinstalled, even for other .py files that run with that main file. After I tried to find myself some of these missing dependencies (like Keras, Hydra and other stuff) there are many more missing and I could not find any of these online. Is there a repository to find the necessary files to run the training without errors?
Is there a datalogger using the internal adc of stm32h747i-disco?
Hello.I'm working on the stm32h753vit6 MCU trying to integrate the X-CUBE-AI software package into my project and I noticed a couple of issues.1) After installing the package, I go into the IOC and as soon as I enable the X-CUBE-AI, the RCC_OSC_OUT pin reverts to the reset_state for some reason.2) Also as soon as I enable the X-CUBE-AI, Changes start happening in my clock tree.If I set back the clock tree to the configuration it was before enabling the X-CUBE-AI, My code crashes at the SystemClock_Config method (The method is autogenerated and I don't make any changes to it).Has anyone come across a similar issue?Thank you in advance, Yonatan.
Goodmorning, I have a problem with the validation on target of a CNN network on XcubeAI.I tried to validate the networks on desktop, and it runs, but, when I try to validate on target it gives me that error, I ask you if someone has a solution or something else to try to fix this problem.I'm using version 1.15.1 of STMCUBEIDE and v. 9.0.0 of cube AIthe board I try to validate is UFBGA144. Building project Generating project Temporary project loaded Temporary AI configuration done Generating temporary project code Building project C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG -DUSE_HAL_DRIVER -DSTM32L4R9xx -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IDr
I am using the STEVAL-STWINBX1 development board with the FP-SNS-DATALOG2 software V2.2.0.When I try to connect using the Python GUI tool, it gets stuck at "Device Template Model Loading"....I reverted back to V2.1.1 and the GUI tool works.Is there a bug in this new release V2.2.0 ?
Hi,I am trying to analyse a pre-trained model (Keras, .h5) using STM32CubeMX X-CUBE-AI software and encountered the error “[AI:network_1] NOT IMPLEMENTED: Unsupported layer type: SlicingOpLambda”. The model is trained with the stm32ai-modelzoo library under object_detection. Attached is the screenshot of the error message. Any help would be appreciated.Following are some information regarding the versions of the software that I am using. Python version: 3.10.0STM32CubeMX version: 6.12.0X-CUBE-AI version: 9.0.0Github link for model zoo training steps: https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/src/training/README.mdtraining_config.yaml settings:
hello everyone.I created a project for the STM32H747I-DISCO chip, the goal was to run an image classification model on it.I used a model from model zoo. and did quantization on it following the instructions there.The part where I am stuck is when I generated the code through CubeMX then opened the project in CubeIDE and build the project (for CM7 core) but how do you flash the chip? I tried running the project then disconnected the chip and plugged it again, but nothing happened (and nothing on the screen) :thinking_face:.
Hello! I recently used stm model zoo and deployed an image classification model on a chip. The flashing part is made automatically if the chip is connected, but I was wondering how to do it manually (using another software)?I get these folders after processing the deployment code but I do not really understand which files to use. If someone familiar with Model zoo can help me figure this out!Thanks in advance!
I want to use X CUBE AI VERSION 7.3.0. I have installed the package with correct version but when I try to use it pops a saying "Please select local zip file for X-Cube-AI stm32ai utilities". I cannot find the zip file anywhere where should be located. I have also tried version 9.0.0 and no tab opens up in that version. But I need to use 7.3.0. I am attaching a screenshot as well.
Hello, im trying the examples from Fp-ai-facerec but it only have binaries files, so i could'nt understant how it work to config. PLease if anyone have code of this packs please dm me, thanks a lot :3
I am currently having an issue with flashing my neural network (saved as a .tflite model) to my Nucleo-L476RG board. I am able to analyze the model successfully, but when I select, "Validate on Target", I receive the error message below: E200(ValidationError): stm32: Unable to bind the STM AI runtime with "network" c-model: [] connection to "serial:115200"/"115200" run-time fails E801(HwIOError): Invalid firmware - COM2:115200 I have the following screenshots to show my STMCubeIDE as I attempt to validate on target: If someone knows how to fix this issue, please let me know.
Hello, Iam Sudarshan, A working professional and have recently got interested in TinyML. So me being curious, i wanted to interface camera and LCD with my STM32F411RE Nucleo board to run AI models on it.As per my understanding i would be able to interface STM32 camera module and an LCD using I2C or SPI protocols. Can you please tell me if i'am heading towards right direction?
Hello,What is the solution for implementing an LSTM model on an STM32?
so im trying to create a model that distinguish different types of pasta based on an already existng model(people detection in fp ai vision) . i followed the provided guide step by stephttps://wiki.stmicroelectronics.cn/stm32mcu/wiki/AI:How_to_use_transfer_learning_to_perform_image_classification_on_STM32?fbclid=IwZXh0bgNhZW0CMTAAAR25n0jxpKo1k2Uj9cMePZSWMndI6WrCJdcJVDusByLj9vjdIXR160Wz2X4_aem_429JIxKjhUbaTfukJ86K7wi donwloaded the model and generated the files with x cube ai and cubeMX and mooved the files to the fp ai vision people detection project.... when i build the project the file network.c generated 110 errors and all errors are from it alone. the other files dont have a single error .and all the errors are likeexample of lines that have errors in network.c file(there is plenty like this in many other places in the files this typeDescription Resource Path Location Type 'ai_layer_conv2d' {aka 'struct ai_layer_conv2d_'} has no member named 'in_ch_format' network.c /STM
hello,I followed this tutorial 'How to use transfer learning to perform image classification on STM32.' During the project deployment step, when I build, I encounter these errors (Description Resource Path Location Type 'ai_layer_conv2d' {aka 'struct ai_layer_conv2d_'} has no member named 'in_ch_format' network.c /STM32H747I_DISCO_PersonDetect_Google_CM7/Application line 4063 C/C++ Problem)in the file network.c. Can you help me resolve them )in the file network.c. Can you help me resolve them
I am trying to use the raw data from the 3-axis digital magnetic sensor (IIS2MDC) to get a compass heading, but cannot get it to work.With the STWINBX1 flat on a table, I slowly rotated it 360 degrees starting from north.I then exported the data and used the following formula to calculate the heading...The result shows a heading between 285 degrees to 344 degrees (instead of a full 360 degree swing)...The raw data looks like this...Spreadsheet iis2mdc.xlsx is attached for reference.
I am using the STEVAL-STWINBX1 development board with the FP-SNS-DATALOG2 software.I would like to configure an external interrupt for a digital input, but it appears all 15 external interrupts are being used ?On the schematic, there is a table which implies all 15 external interrupts are used....However, in exti_pin_map.c external interrupts 5, 11, 12 and 13 don't appear to be used...Yet the STEVAL-STWINBX1_FP-SNS-DATALOG2.ioc configuration shows all 15 external interrupts are used... Using the Segger J-Link debugger, I set break points at each external interrupt in the source file stm32u5xx_it.c... The breakpoints work for the following external interrupts:EXTI0_IRQHandler when USR_BUTTON is pressedEXTI10_IRQHandler when BUTTON_POWER is pressedHowever, the only other external interrupt which breakpoints is EXTI14_IRQHandler.I don't understand why the external interrupts do not breakpoint ?I can't work out if there is a spare external interrupt, because of the disc
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.