2025-12-20 5:42 PM - edited 2025-12-23 12:52 AM
Hi,
I am working on STM32N6570-DK Edge AI development on Windows and I am facing a board programming error when using stm32ai-modelzoo-services. I would like some guidance on the possible root cause and recommended troubleshooting steps.
Environment
Host OS: Windows 11
Board: STM32N6570-DK
Tools and versions:
Python: 3.9
Model and dataset
Model: st_yolo_x
Dataset: MS COCO
Completed steps:
Followed the official instructions to install and configure stm32ai-modelzoo-services on Windows
Successfully ran chain_tqeb (training / quantization / evaluation / benchmark) to completion
The quantization output folder contains:
Quantized model artifacts (e.g. .tflite / .onnx as produced by the pipeline)
A user_config file adapted from the official examples
Problem description
When running chain_qd or the deployment step for the STM32N6570-DK, the process fails at the “Board programming” stage.
The exception I receive is:
common.stm32ai_local.utils.STMAICToolsError: E400: Board programming failed!
At the moment of failure, res_code = -1.
From the logs it looks like all model‑related steps (conversion, code generation, project creation) succeed, and only the board programming / flashing step fails.
Attachments
I attached a ZIP file that contains:
The quantized .tflite model generated from the st_yolo_x network trained on the MS COCO dataset.
This file reflects the exact model I am trying to deploy to the STM32N6570-DK when the E400: Board programming failed! res_code = -1 error occurs.
I will also test with different STM32CubeProgrammer versions on Windows to see whether the programmer version has any impact on this error and will update this thread with my findings.
I would like to add an update based on the solution proposed in
#850742
Following the suggestion there, I opened the project generated by stm32ai-modelzoo-services in STM32CubeIDE:
...\application_code\object_detection\STM32N6\Application\STM32N6570-DK\STM32CubeIDE
Then I built the project manually in STM32CubeIDE. The build completed successfully with:
0 errors, 0 warnings
The following output files present in the Debug folder:
STM32N6570-DK_GettingStarted_ObjectDetection.elf
STM32N6570-DK_GettingStarted_ObjectDetection.bin
STM32N6570-DK_GettingStarted_ObjectDetection_signed.bin
This confirms that the generated project fits in the STM32N6570-DK memory and that the compilation / linking steps are fine. The issue I am still facing is only at the board programming stage when running the deployment chain from the model zoo (I get Board programming failed in the console).
2026-01-09 5:22 AM
Hi @jasonwu,
Thank you for this information.
I did successfully deploy your model with model zoo. The only issue I can see is that maybe cubeIDE1.19 could cause the issue; I've seen error due to this version.
In any case, I see that you successfully deployed it manually and I don't see anything wrong with what you described/transmitted.
Have a good day,
Julian