[STM32F0] 在使用STM32CubeIDE时,.elf文件加载失败

[复制链接]
235|13
铁头电子player 发表于 2025-10-19 00:17 | 显示全部楼层 |阅读模式
我在调试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中会失败?


进入猫次元 发表于 2025-10-20 12:11 | 显示全部楼层
调试接口配置可能有冲突。
stormwind123 发表于 2025-10-20 12:20 | 显示全部楼层
降低SWD速度,强制复位
probedog 发表于 2025-10-20 12:47 | 显示全部楼层
升级CubeIDE版本,旧版CubeIDE可能存在F0系列调试不兼容。
classroom 发表于 2025-10-20 13:11 | 显示全部楼层
调试器与芯片通信时序估计不匹配。
solty 发表于 2025-10-20 13:27 | 显示全部楼层
替换内置GDB为外部GDB
您需要登录后才可以回帖 登录 | 注册

本版积分规则

54

主题

56

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部