Skip to main content
Associate III
July 4, 2025
Question

Error: binary file does not exist: Debug/STM32N6570-DK_GettingStarted_ObjectDetection.bin

  • July 4, 2025
  • 3 replies
  • 589 views

I was successfully programming my STM32N6 disco board until today when I got this error:

Board programming failed: "Error: binary file does not exist: Debug/STM32N6570-DK_GettingStarted_ObjectDetection.bin"

I am uploading quantized tflite models to the board and all the switches are correctly populated on the board. 

The same thing happens with 

on_cloud: False or True

Any ideas?

thanks

3 replies

Julian E.
Technical Moderator
July 4, 2025

Hello @dogg,

 

What model are you using?

I got this issue yesterday on the nucleo. I was using a model that was too big and causing an error when building the project. It resulted in the .bin file not being generated.

 

Can you go to modelzoo/application_code/object_detection/stm32n6/application/STM32N6570-DK/stm32cubeIDE and open the project in STM32CubeIDE.

Then please build the application and tell me the error you get.

 

it could also be helpful if you could share your config file and more logs that you get in the terminal. Thanks

 

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.
doggAuthor
Associate III
July 4, 2025

That must be it. This model is indeed bigger than the others.

Although I am getting this when I open the project:

Resource '/x-cube-n6-ai-people-detection/Src/main.c' does not exist.

 

Julian E.
Technical Moderator
July 4, 2025

You are working with the standalone object detection ai getting started?

This: GitHub - STMicroelectronics/STM32N6-GettingStarted-ObjectDetection: An AI software application package demonstrating simple implementation of object detection use case on STM32N6 product.​

 

Do you really not have the main in /src on your pc?

 

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.
doggAuthor
Associate III
July 4, 2025

I am working with the stm32ai-modelzoo-services github repo and running the stm32ai_mai.py script.

Julian E.
Technical Moderator
July 7, 2025

Hello @dogg,

 

Ok thanks,

Concerning the error "x-cube-n6-ai-people-detection/Src/main.c", it is pretty strange.

I don't know with version of the model zoo you are using, in the June update, the application_code were replaced with the v2 of the getting started. Maybe it comes from that..

 

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.
Visitor II
July 7, 2025

It looks like the `.bin` file is not being generated — this could be a build issue. Double-check your build settings and make sure the project compiles successfully before flashing. Also, make sure the output path hasn't been changed or accidentally cleared.