Skip to main content
Associate II
May 20, 2025
Solved

Error in flashing the stm32n6570-dk board

  • May 20, 2025
  • 1 reply
  • 682 views

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\windows\stedgeai.exe".
[INFO] : Offline CubeAI used; Selected tools: 10.0.0 (x-cube-ai pack)
loading conf file.. "D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\stmaic_STM32N6570-DK.conf" config="None"
"n6 release" configuration is used
compiling... "yolov8n_256_quant_pc_uf_od_coco-person-st_tflite" session
 model_path : ['yolov8n_256_quant_pc_uf_od_coco-person-st.tflite']
 tools : 10.0.0 (x-cube-ai pack)
 target : "STM32N6570-DK Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/n6 release/stm32n6)
 options : --st-neural-art default@D:/code/stm32ai-modelzoo-services/application_code/object_detection/STM32N6/Model/user_neuralart.json --input-data-type uint8 --inputs-ch-position chlast
"series" value is not coherent.. stm32n6 != stm32n6npu
 results -> RAM=1,665,024 IO=196,608:26,880 WEIGHTS=3,051,345 MACC=0 RT_RAM=1,893 RT_FLASH=459,010 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/n6 release/stm32n6)
updating.. n6 release
 -> s:copying file.. "network.c" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Model\network.c
 -> s:copying file.. "network_ecblobs.h" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Model\network_ecblobs.h
 -> s:copying file.. "network_atonbuf.xSPI2.raw" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Model\network_atonbuf.xSPI2.raw
 -> s:removing dir.. D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Lib\GCC\ARMCortexM55
 -> s:copying dir.. "ARMCortexM55" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Lib\GCC\ARMCortexM55
 -> s:removing dir.. D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Inc
 -> s:copying dir.. "Inc" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Inc
 -> s:removing dir.. D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Npu\ll_aton
 -> s:copying dir.. "ll_aton" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Middlewares\AI_Runtime\Npu\ll_aton
 -> u:copying file.. "app_config.h" to D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\Inc\app_config.h
 -> updating cproject file "D:\code\stm32ai-modelzoo-services\application_code\object_detection\STM32N6\STM32CubeIDE" with "NetworkRuntime1000_CM55_GCC.a"
building.. n6 release
flashing.. n6 release STM32N6570-DK
[returned code = 1 - FAILED]
$ cwd: D:/code/stm32ai-modelzoo-services/application_code/object_detection/STM32N6/STM32CubeIDE
$ args: STM32_Programmer_CLI -c port=swd mode=HOTPLUG --extload E:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin\ExternalLoader/MX66UW1G45G_STM32N6570-DK.stldr -w ../Model/network_atonbuf.xSPI2.bin 0x70380000
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.18.0
 -------------------------------------------------------------------

ST-LINK error (DEV_CONNECT_ERR)
Board programming failed: "ST-LINK error (DEV_CONNECT_ERR)"
Board programming failed: "ST-LINK error (DEV_CONNECT_ERR)"
[INFO] deployment complete
[INFO] : Please on STM32N6570-DK toggle the boot switches to the left and power cycle the board.

It shows the deployment complete,the development board can run the YOLO model and display the inference speed, but it cannot draw the bounding boxes.I found the same issue here: https://community.st.com/t5/edge-ai/stm32n6570-dk-model-zoo-delpoyment-error/td-p/783126  but I cannot solve this problem like this.

Thanks for help!

Best answer by Julian E.

Hello @wyb217,

 

The model zoo was updated a few days ago. Are you using its last version? Could you try.

What OS are you using Windows,Linux or Mac?

 

When you open STM32CubeProgrammer and plug the ST through its ST Link, when you click connect, does it work?

 

Could you also share your .yaml (in a zip to upload it here) please?

 

Have a good day.

Julian

1 reply

Julian E.
Julian E.Best answer
Technical Moderator
May 20, 2025

Hello @wyb217,

 

The model zoo was updated a few days ago. Are you using its last version? Could you try.

What OS are you using Windows,Linux or Mac?

 

When you open STM32CubeProgrammer and plug the ST through its ST Link, when you click connect, does it work?

 

Could you also share your .yaml (in a zip to upload it here) please?

 

Have a good day.

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Senior
May 21, 2025

你好!

在使用 stm32ai-modelzoo-services-3.1.0 时,是否需要下载最近更新的 stm32ai-modelzoo-main