Why failed to erase memory
Hi all,
I am new at STM32 world, however I had a 1-2 days long meeting with Bluepill board about two years ago. That time I used succesfully Atollic studio to do my first steps with Bluepill and ST-LINK clone bought on ebay.
Now I want to re-start with some led-blinking program. I use the devices successfully used before. The difference is that I have just-installed STM32CubeIde and STSW-LINK004.
There is an error I cannot overcome. The programming device is recognised but the connection lost soon.
Than I guessed the ST-LINK clone is not supported any more. So I tryed programming part of 32F072BDISCOVERY board. I made a successful version upgrad but the error is the same.
However the command line st-flask erase is working.
I found same issues but the answer - if was there any - did not help.
Please help to solve this phenomena.
Istvan
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
STMicroelectronics ST-LINK GDB server. Version 5.5.0
Copyright (c) 2019, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Waiting for debugger connection...
Debugger connected
-------------------------------------------------------------------
STM32CubeProgrammer v2.4.0
-------------------------------------------------------------------
ST-LINK SN : 56FF68064966485644190167
ST-LINK FW : V2J37S7
Voltage : 3,26V
SWD freq : 1800 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x410
Device name : STM32F101/F102/F103 Medium-density
Flash size : 128 KBytes (default)
Device type : MCU
Device CPU : Cortex-M3
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_gb8sTl.srec
File : ST-LINK_GDB_server_gb8sTl.srec
Size : 23120 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 22]
Error: failed to erase memory
Error: failed to erase memory
Encountered Error when opening /opt/st/stm32cubeide_1.3.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_1.3.0.202002181050/tools/bin/STM32_Programmer_CLI
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...
