Skip to main content
Associate II
March 5, 2026
Solved

STM32N6570-DK AI code flashing

  • March 5, 2026
  • 3 replies
  • 169 views

Hi 

I am using the STM32N6570-DK board for AI application development and want to flash the code from the 'https://github.com/STMicroelectronics/STM32N6-GettingStarted-ImageClassification' repository. However, when I flash the .elf file from the debug folder, I get an invalid output. Do I need to flash the FSBL and model hex separately? Is there a specific flashing sequence I should follow? Currently, both BOOT0 and BOOT1 are set to 0, and I suspect the AI model is missing from the flash memory.

Best Regards

Ram

3 replies

Julian E.
Julian E.Best answer
Technical Moderator
March 5, 2026
​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.
Associate II
March 5, 2026

Hi @Julian E. 

 

Can i do the same from cube IDE? if so, please let me know the steps for flash the 3 .hex. Alo can i flash .elf?

 

Best Regards

Ranjith Remasan

Julian E.
Technical Moderator
March 6, 2026

Hi @RanjithRemasan  ,

 

it is maybe possible via CubeIDE, but I don't know how... Please try to open a new thread in the STM32 tools forum board. I didn't find an example on google.

 

STM32Cube Programmer is a small tool made only for that, so I don't see why you would avoid using it..

 

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.
hamitiya
ST Employee
March 6, 2026

Hello,

To complete what shared Julian:

From STM32CubeIDE, you have the ability to load .elf as well as .hex files during your debug startup:

 

image.png

 

image.png

If flashing .bin, you will need to provide the address where you want to load your content. For .hex and .elf file, start address is already in the file

This content will be loaded through the debugger.

 

Best regards,

Yanis

​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.