2021-12-13 05:51 AM
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?
Solved! Go to Solution.
2021-12-27 04:35 AM
hi, i solved this problem as follows: i cleaned the processor with a new one and cleaned the board. Then it stopped giving this error.
2021-12-13 05:53 AM
2021-12-13 05:57 AM
When I try to delete the flash using STM32CubeProgrammer it gives this error.
2021-12-13 06:04 AM
Verify that NRST isn't being held low on the target board.
You can try to connect under reset. If you reassigned the SWD pins, the connection may error out when the chip starts.
Attach your schematic if you can.
2021-12-13 06:40 AM
Hi. This is my circuit. When I measure the NRST lead, it comes out 3.3 volts
2021-12-13 06:48 AM
You should have decoupling caps close to each VDD pin as well as a bulk ceramic capacitor on that net somewhere. I only see one decoupling cap. Unsure what the cap on the left is. These issues may or may not be the problem.
As this is probably pigtailed a good distance from the programmer, you can also try using a lower SWD clock speed.
2021-12-13 10:31 PM
What do you mean by bulk ceramic capacitor? Do you have an example schematic?
2021-12-14 06:48 AM
Here is the L0 hardware development guide:
The bulk capacitor is C11 in Figure 15.
2021-12-15 12:19 AM
Thank you
2021-12-27 04:35 AM
hi, i solved this problem as follows: i cleaned the processor with a new one and cleaned the board. Then it stopped giving this error.