[STM32F4] STM32Cube IDE调试启动过程中出错

[复制链接]
1455|36
WHALEE 发表于 2025-10-6 21:54 | 显示全部楼层 |阅读模式
用STM32F4 Discovery开发板。在使用STM32Cube IDE调试启动过程中,遇到了以下错误。当我调试应用程序时,出现了以下错误。

Error in final launch sequence:

Failed to execute MI command:

-exec-run

Error message from debugger back end:

During startup program exited with code 126.

Failed to execute MI command:

-exec-run

Error message from debugger back end:

During startup program exited with code 126.

During startup program exited with code 126.

导致此错误的常见可能原因有哪些?
pl202 发表于 2025-10-7 08:03 | 显示全部楼层
重新拔插调试器              
alvpeg 发表于 2025-10-7 20:25 | 显示全部楼层
默认调试端口可能被其他程序占用              
benjaminka 发表于 2025-10-7 21:48 | 显示全部楼层
驱动未正确安装。              
rosemoore 发表于 2025-10-7 22:48 | 显示全部楼层
有没有修改过 工程属性 / 工具链 / 调试配置?
abotomson 发表于 2025-10-8 12:34 | 显示全部楼层
调试器配置与硬件不匹配。              
modesty3jonah 发表于 2025-10-8 12:59 | 显示全部楼层
有足够的权限访问调试设备。              
primojones 发表于 2025-10-8 15:12 | 显示全部楼层
该错误通常是因为运行时找不到必要的库文件所导致
lzbf 发表于 2025-10-8 16:00 | 显示全部楼层
ST-Link连接异常              
modesty3jonah 发表于 2025-10-8 16:52 | 显示全部楼层
确保开发板硬件没有损坏。              
tifmill 发表于 2025-10-8 19:06 | 显示全部楼层
​​Clean + Rebuild​​  
tabmone 发表于 2025-10-10 10:53 | 显示全部楼层
错误代码126在Linux/macOS中常与权限不足或缺少执行权限相关。
ccook11 发表于 2025-10-10 12:18 | 显示全部楼层
以管理员身份运行STM32Cube IDE。
10299823 发表于 2025-10-10 13:37 | 显示全部楼层
文件是32位的,而使用的linux是64位
louliana 发表于 2025-10-10 14:23 | 显示全部楼层
缺少必要的DLL文件而导致的编译错误。
jcky001 发表于 2025-10-10 15:03 | 显示全部楼层
可能是ST-LINK调试器与开发板连接不良。
onlycook 发表于 2025-10-10 16:03 | 显示全部楼层
调试器驱动可能没有正确安装或版本过旧。
powerantone 发表于 2025-10-10 17:14 | 显示全部楼层
调试器端口是不是被其他程序占用了?
probedog 发表于 2025-10-10 18:05 | 显示全部楼层
断开并重新连接ST-LINK看看。
stormwind123 发表于 2025-10-10 19:36 | 显示全部楼层
重新安装一下ST-LINK驱动。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

61

主题

61

帖子

0

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