我在调试STM32F030K6时遇到了一个问题,无论是在调试模式还是运行模式下,STM32CubeIDE都无法将我的.elf文件加载进去。
每次都会弹出一个错误窗口,显示以下信息:
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"
我试了许多不同的调试配置选项,但没有一个成功。 当我使用“STM32CubeProgrammer”加载完全相同的.elf文件时,可以正常工作。但为什么在STM32CubeIDE中会失败?
|