cancel
Showing results for 
Search instead for 
Did you mean: 

Error message from debugger back end: Error finishing flash operation ,Failed to execute MI command:

qldrh
Associate II

 

Hello,

I am using STM32CubeAI Studio with the NUCLEO-N657X0-Q board.

Board:

  • STM32N657X0H3Q
  • NUCLEO-N657X0-Q

Tools:

  • STM32CubeIDE 2.1.1
  • STM32CubeMX 6.17.0
  • STM32CubeProgrammer 2.22.0
  • STM32CubeAI Studio

I generated a project from STM32CubeAI Studio and tried to run/debug it, but flashing always fails.

Main error:

Error finishing flash operation
failed to erase memory
Load failed

Detailed log:

Erasing external memory sectors [16 19]
Error: failed to erase memory

Additional information:

ST-LINK FW  : V3J17M10
Board       : NUCLEO-N657X0-Q
Device name : STM32N657
SWD freq    : 8000 KHz
Connect mode: Hot Plug
Reset mode  : Software reset

I already tried:

  • Full chip erase using STM32CubeProgrammer
  • Under Reset mode
  • Lower SWD frequency (4000 / 2000)
  • Regenerating project
  • Rebuilding FSBL and Application
  • Reconnecting USB power
  • Creating a new CubeAI Studio project

However, the same error still occurs.

Could this be related to:

  • external XSPI flash loader,
  • STM32CubeIDE version compatibility,
  • CubeAI Studio generated partition layout,
  • or STM32N6 external memory initialization?

I would appreciate any guidance.

Thank you.

0 REPLIES 0