cancel
Showing results for 
Search instead for 
Did you mean: 

"Error finishing flash operation" I can't debug after deleting sector 23.

ESalm.2
Associate

Hi All,

I'm using Nucle0-F429ZI board with SMT32Cube IDE. I can't debug after deleting sector 23. However, after the sector 12 deletes , there is no problem.

I get the error when I press the debug button again after running the code below.

//Erasing sector23

HAL_FLASH_Unlock();

 EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;

 EraseInitStruct.VoltageRange = VOLTAGE_RANGE_3;

 EraseInitStruct.NbSectors = 1;

 EraseInitStruct.Sector = FLASH_SECTOR_23;

 status = HAL_FLASHEx_Erase(&EraseInitStruct, &SECTORError);

 HAL_FLASH_Lock();

Error is:

Error in final launch sequence:

Failed to execute MI command:

load C:\\Users\\think2\\STM32CubeIDE\\workspace_1.3.0\\AppBoot\\Debug\\AppBoot.elf 

Error message from debugger back end:

Error finishing flash operation

Failed to execute MI command:

load C:\\Users\\think2\\STM32CubeIDE\\workspace_1.3.0\\AppBoot\\Debug\\AppBoot.elf 

Error message from debugger back end:

Error finishing flash operation

Failed to execute MI command:

load C:\\Users\\think2\\STM32CubeIDE\\workspace_1.3.0\\AppBoot\\Debug\\AppBoot.elf 

Error message from debugger back end:

Error finishing flash operation

Error finishing flash operation

What is the reason of this?0693W000000VgNiQAK.jpg

0 REPLIES 0