2025-11-30 7:38 AM
Dear ST Team, I'm trying to deploy models on STM32N6570-DK, and there is the issue:
Followed tutorial below:
stm32ai-modelzoo-services/object_detection/docs/README_DEPLOYMENT_STM32N6.md at main · STMicroelectronics/stm32ai-modelzoo-services
Encountered error message below:
(st_zoo) PS C:\Users\ricky\git\stm32ai-modelzoo-services\object_detection> python stm32ai_main.py --config-path ./src/config_file_examples/ --config-name deployment_n6_ssd_mobilenet_v2_fpnlite_config.yaml
C:\Users\ricky\anaconda3\envs\st_zoo\lib\site-packages\mlflow\utils\requirements_utils.py:12: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
2025-11-30 21:33:53.440551: 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-11-30 21:33:53.440699: 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] : Using provided class names from dataset.class_names
[INFO] : ClearML config check
[INFO] : The random seed for this simulation is 123
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[INFO] : Generating C header file for Getting Started...
[INFO] : This TFLITE model doesnt contain a post-processing layer
loading model.. model_path="../../stm32ai-modelzoo/object_detection/ssd_mobilenet_v2_fpnlite/ST_pretrainedmodel_public_dataset/coco_2017_person/ssd_mobilenet_v2_fpnlite_035_192/ssd_mobilenet_v2_fpnlite_035_192_int8.tflite"
loading conf file.. "../application_code/object_detection/STM32N6/stmaic_STM32N6570-DK.conf" config="None"
"Debug" configuration is used
[INFO] : Selected board : "STM32N6570-DK Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/Debug/stm32n6)
[INFO] : Compiling the model and generating optimized C code + Lib/Inc files: ../../stm32ai-modelzoo/object_detection/ssd_mobilenet_v2_fpnlite/ST_pretrainedmodel_public_dataset/coco_2017_person/ssd_mobilenet_v2_fpnlite_035_192/ssd_mobilenet_v2_fpnlite_035_192_int8.tflite
setting STM.AI tools.. root_dir="", req_version=""
Cube AI Path: "C:\ST\STEdgeAI\2.2\Utilities\windows\stedgeai.exe".
[INFO] : Offline CubeAI used; Selected tools: 10.2.0 (x-cube-ai pack)
loading conf file.. "../application_code/object_detection/STM32N6/stmaic_STM32N6570-DK.conf" config="None"
"Debug" configuration is used
compiling... "ssd_mobilenet_v2_fpnlite_035_192_int8_tflite" session
model_path : ../../stm32ai-modelzoo/object_detection/ssd_mobilenet_v2_fpnlite/ST_pretrainedmodel_public_dataset/coco_2017_person/ssd_mobilenet_v2_fpnlite_035_192/ssd_mobilenet_v2_fpnlite_035_192_int8.tflite
tools : 10.2.0 (x-cube-ai pack)
target : "STM32N6570-DK Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/Debug/stm32n6)
options : --st-neural-art default@../application_code/object_detection/STM32N6/Model/user_neuralart_STM32N6570-DK.json --input-data-type uint8 --inputs-ch-position chlast
"series" value is not coherent.. stm32n6 != stm32n6npu
results -> RAM=614,480 IO=0:0 WEIGHTS=1,516,529 MACC=0 RT_RAM=1,789 RT_FLASH=572,412 LATENCY=0.000
[INFO] : Optimized C code + Lib/Inc files generation done.
[INFO] : Building the STM32 c-project..
deploying the c-project.. "STM32N6570-DK Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/Debug/stm32n6)
updating.. Debug
-> s:copying file.. "network.c" to ..\application_code\object_detection\STM32N6\Model\STM32N6570-DK\network.c
-> s:copying file.. "network_ecblobs.h" to ..\application_code\object_detection\STM32N6\Model\STM32N6570-DK\network_ecblobs.h
-> s:copying file.. "network_atonbuf.xSPI2.raw" to ..\application_code\object_detection\STM32N6\Model\STM32N6570-DK\network_atonbuf.xSPI2.raw
-> s:removing dir.. ..\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Lib\GCC\ARMCortexM55
-> s:copying dir.. "ARMCortexM55" to ..\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Lib\GCC\ARMCortexM55
-> s:removing dir.. ..\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Inc
-> s:copying dir.. "Inc" to ..\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Inc
-> s:removing dir.. ..\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Npu\ll_aton
-> s:copying dir.. "ll_aton" to ..\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Npu\ll_aton
-> u:copying file.. "app_config.h" to ..\application_code\object_detection\STM32N6\Application\STM32N6570-DK\Inc\app_config.h
-> updating cproject file "C:\Users\ricky\git\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Application\STM32N6570-DK\STM32CubeIDE" with "NetworkRuntime1020_CM55_GCC.a"
building.. Debug
flashing.. Debug STM32N6570-DK
Board programming failed: ""
Error executing job with overrides: []
Traceback (most recent call last):
File "C:\Users\ricky\anaconda3\envs\st_zoo\lib\site-packages\clearml\binding\hydra_bind.py", line 230, in _patched_task_function
return task_function(a_config, *a_args, **a_kwargs)
File "C:\Users\ricky\git\stm32ai-modelzoo-services\object_detection\stm32ai_main.py", line 220, in main
process_mode(cfg)
File "C:\Users\ricky\git\stm32ai-modelzoo-services\object_detection\stm32ai_main.py", line 93, in process_mode
deploy(cfg)
File "C:\Users\ricky\git\stm32ai-modelzoo-services\object_detection\src\deployment\deploy.py", line 122, in deploy
stm32ai_deploy_stm32n6(target=board,
File "C:\Users\ricky\git\stm32ai-modelzoo-services\common\deployment\common_deploy.py", line 505, in stm32ai_deploy_stm32n6
stmaic.build(session, user_files=user_files, serial_number=stlink_serial_number)
File "C:\Users\ricky\git\stm32ai-modelzoo-services\common\stm32ai_local\build.py", line 526, in cmd_build
_cube_ide_builder(cube_ide_exe[0], session, used_conf,
File "C:\Users\ricky\git\stm32ai-modelzoo-services\common\stm32ai_local\build.py", line 481, in _cube_ide_builder
res_code = _programm_dev_board(conf, session.series, serial_number=serial_number)
File "C:\Users\ricky\git\stm32ai-modelzoo-services\common\stm32ai_local\build.py", line 358, in _programm_dev_board
raise STMAICToolsError('Board programming failed!')
common.stm32ai_local.utils.STMAICToolsError: E400: Board programming failed!
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.It seems that model compiling succeeded but failed when flashing.
And this is the YAML file I edited:
Furthermore, example binaries in stm32ai-modelzoo-services/application_code/ works fine via CubeProgrammer, but failed when I run model-zoo-service python script.
How can I deal with the issue?
Many thanks
Emo