cancel
Showing results for 
Search instead for 
Did you mean: 

Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 150] Error: failed to erase memory

ZKURT.1
Senior

Hi

. I am using STM32L010C6tx processor. I drew the circuit myself. I did SYS-> debug serial wire. I was able to install without any problem. But sometimes "Memory Programming...

Opening and parsing file: ST-LINK_GDB_server_a14408.srec

 File : ST-LINK_GDB_server_a14408.srec

 Size: 19268 Bytes

 Address: 0x08000000

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 150]

Error: failed to erase memory

Error: failed to erase memory

ST-LINK device status: UNKNOWN

CM3 Failed to print all registers

FAILED to REGISTER Values ​​from the target

Debugger connection lost.

Shutting down...

" I'm getting it. I can't fix it. Any ideas?

10 REPLIES 10

Hi, ZKURT.1

I am also facing same problem 

I tried with IDE 12.0, 15.0, 14.0 

CUBEMX  6.10

I tried Full chip Erase through Cube Programmer but it's not working.

 i cleaned the processor with a new one means what u did exactly?

Log output file: C:\Users\MQSTEC~1\AppData\Local\Temp\STM32CubeProgrammer_a13108.log
ST-LINK SN : 0673FF555551847167202052
ST-LINK FW : V2J44M29
Board : 32F769IDISCOVERY
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x451
Revision ID : Rev A
Device name : STM32F76x/STM32F77x
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : --

 

Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a13108.srec
File : ST-LINK_GDB_server_a13108.srec
Size : 10.25 KB
Address : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Error: failed to erase memory


Error: failed to erase memory
Shutting down...