cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6570-DK AI code flashing

RanjithRemasan
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hi @RanjithRemasan,

 

It is explained here:

STM32N6-GettingStarted-ImageClassification/Doc/Program-Hex-Files-STM32CubeProgrammer.md at main · STMicroelectronics/STM32N6-GettingStarted-ImageClassification · GitHub

 

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.

View solution in original post

4 REPLIES 4
Julian E.
ST Employee

Hi @RanjithRemasan,

 

It is explained here:

STM32N6-GettingStarted-ImageClassification/Doc/Program-Hex-Files-STM32CubeProgrammer.md at main · STMicroelectronics/STM32N6-GettingStarted-ImageClassification · GitHub

 

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.

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.
ST Employee

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

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.