Why does .elf load fails when using STM32CubeIDE ?
- November 16, 2022
- 5 replies
- 6122 views
Hello,
I have a problem with STM32CubeIDE which fails to load my .elf file into the STM32F030K6 I am trying to debug, in either debug or run modes.
Everytime, an error window pops up with following message:
"Error in final launch sequence:
Failed to execute MI command:
load xxxx.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load xxxx.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load xxxx.elf
Error message from debugger back end:
Load failed
Load failed"
In addtition, I put in .txt attached the messages I get in the Console tab after launching debug. It seems to go wrong from the lines:
"GDB session thread running
GdbSessionManager, session started: 2
Enter STM32_HardwareReset() function
Enter STM32_InitAfterReset() function
NVIC_DFSR_REG = 0x00000009
GDB session terminated: Client connection lost
GdbSessionManager, session terminated: 1
GDB session terminated: Client connection lost"
I have tried many different debug configuration options, but none of them solved my problem.
When I use "STM32CubeProgrammer" to load the exact same .elf file, it works fine. Do you have any idea why it would fail with STM32CubeIDE?
I am using the latest STM32CubeIDE version: v1.10.1 (Build: 12716_20220707_0928 (UTC)). I work on Windows 11.
My STM32CubeProgramme version is v2.11.0.
Any help would be very much appreciated as I have already spent a full day trying to solve this issue.
RL