Skip to main content
Associate III
April 20, 2026
Solved

STM32N6570-DK - Unable to debug

  • April 20, 2026
  • 2 replies
  • 398 views

I have project consisting of FSBL+Application (writing AI code in application), I want to debug application code, but unable to do it . 
My core doubt is should I go via FSBL debugging or Application debugging while working with real time detection in AI ? I am very much confused in this application debugging, kindly address it.

I have ensured the external memory loader in cube Programmer as well as in debugger settings is same & loaded .
I had flashed the binaries in cube programmer FSBL-trusted bin at 0x70000000 and application trusted-bin at 0x70100000 and signed them also. 

I have attached a word document having screenshots of debugger settings and problems coming in debugging for each directly application and via FSBL. & one screenshot of external memory settings in .ioc file.

Thanks & Regards

Chanchal

Best answer by hamitiya

Hello,

When you are stuck in "XSPI_NOR_Init", it is usually after a External flashing procedure.

To "fix" the issue, you need to do an MCU power-cycle, by either plug/unplug the board, or doing a "Powerdown" command with STM32CubeProgrammer.

 

Powercycle is needed everytime you flash the "External Flash"

 

Best regards,

Yanis

2 replies

Associate III
April 22, 2026

While going via FSBL debugging , I am following these steps 

Checked for External Loader in cube programmer, Mass erase memory in cube programmer, Flashing trusted binaries of fsbl at 0x70000000 and appli at 0x70100000, closing cube programmer , open IDE and debug fsbl project.

 

Sometimes it is showing STM32 programmer failed and sometimes it is jumping to BOOT_Application, enters main code and crashes showing target not responding and it doesnt stop from stop button also.

chanchal94_0-1776864441076.png

chanchal94_1-1776864455617.png

chanchal94_4-1776864587326.png

 

 

 

Associate III
April 28, 2026

I am still stuck in this problem. Kindly help.

I want to run AI application in my project. Right now when I am debugging through FSBL , It is showing hard fault. I am attaching the screenshots of FSBL debugger settings and Problem coming with it. 
I tried debugging application directly also, It goes till aiinit() and crashes as it does not have individual system clock config() being present in fsbl only.
Can you suggest me what can be the probable issues of NPU crashing?

chanchal94_1-1777360258211.png

chanchal94_2-1777360295661.png

After jumping to Boot_Application, It crashes.

hamitiya
hamitiyaAnswer
ST Employee
May 4, 2026

Hello,

When you are stuck in "XSPI_NOR_Init", it is usually after a External flashing procedure.

To "fix" the issue, you need to do an MCU power-cycle, by either plug/unplug the board, or doing a "Powerdown" command with STM32CubeProgrammer.

 

Powercycle is needed everytime you flash the "External Flash"

 

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.