I can't burn or debug a project on STM32 IDE
- March 10, 2021
- 2 replies
- 2402 views
I'm working with Windows 10 and STM Ide version 1.5.1.
I have a project made it with CubeMX. I use FreeRTOS and some HAL libraries.
I can compile correctly:
arm-none-eabi-size ST-2100.elf
arm-none-eabi-objdump -h -S ST-2100.elf > "ST-2100.list"
arm-none-eabi-objcopy -O binary ST-2100.elf "ST-2100.bin"
text data bss dec hex filename
46372 20 16416 62808 f558 ST-2100.elf
Finished building: default.size.stdout
Finished building: ST-2100.bin
Finished building: ST-2100.list
I could debug it before, but now, when I try to debug it, I get same response:
STMicroelectronics ST-LINK GDB server. Version 5.7.0
Copyright (c) 2020, 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
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
-------------------------------------------------------------------
STM32CubeProgrammer v2.6.0-RC3
-------------------------------------------------------------------
ST-LINK SN : 066AFF485550755187253829
ST-LINK FW : V2J37M26
Board : NUCLEO-L053R8
Voltage : 3.25V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x442
Revision ID : Rev 1.0
Device name : STM32F09x/F030xC
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a02004.srec
File : ST-LINK_GDB_server_a02004.srec
Size : 46396 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 22]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:02.267
Verifying ...
Error: Data mismatch found at address 0x08004064 (byte = 0x33 instead of 0x01)
Error: Download verification failed
Encountered Error when opening C:\ST\STM32CubeIDE_1.3.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.5.0.202011040924\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...
STM32_Programmer_CLI.exe exists on that path, its version is 2.7.0-RC1
more stuff, appears a message window with this text:
Error in final launch sequence:
Failed to execute MI command:
load C:\\ws-1.15\\ST-2100\\Debug\\ST-2100.elf
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load C:\\ws-1.15\\ST-2100\\Debug\\ST-2100.elf
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load C:\\ws-1.15\\ST-2100\\Debug\\ST-2100.elf
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation
This error isn't new for me, last year some times I got this error, my solution was made a new workspace, import my project and then worked fine, but today I can't do it fix with my "recipe".
I create a new workspace, then a a new project from zero with CubeMX or ST Ide, generate code and then debug without a modification of generated code, I get always same response.
I updated ST Cube IDE from 1.5.1 to 1.6 and the problem persists.
I don't know what can I do to solve it.
Why appears a double slash on path?:
=> load C:\\ws-1.15\\ST-2100\\Debug\\ST-2100.elf
How I can resolve this?
