Skip to main content
BS K.739
Visitor II
Question

error message from debugger back end: error finishing flash operation;

i'm using stm32f407 discovery board, and mac as host and i'm getting the above error while debugging. Please someone help me to resolve this issue

This topic has been closed for replies.

3 replies

alister
Senior III

You might check your option bytes are sensible for debugging with STM32CubeProgrammer. E.g. RDP is off, WRP and PCROP over the sectors you're loading are off, hardware WDG is off.

MBala.2
Visitor II

You have to install STM32 ST-Link Utility and erase with it the whole flash memory. After that, update the firmware on the board again.

For me this solved the problem.

HERO
Visitor II

Actually there is a simple way to solve this problem:

0693W000007B2m7QAC.png