我尝试在
STM32L552ZET6Q
MCU 上运行程序。我使用 STM32CubeIDE
来编写程序,ST-LINK (ST-LINK GDB server)
作为调试探针和 SWD
接口。
我成功编译了程序,但是在调试时,出现以下错误:
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:
localhost:61234: Connection timed out.
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:
localhost:61234: Connection timed out.
localhost:61234: Connection timed out.
我尝试通过网上的各种建议来解决该问题,但无法解决。请帮我解决这个问题。
STM32CubeIDE -> 运行 -> 运行配置... -> 在左侧选择您的配置,然后 -> 调试器 -> 重置行为 -> 类型:重置下连接
这对我有用。我也遇到了同样的问题并且找不到解决方案。过了一会儿,我注意到使用 STM32CubeProgrammer 完全擦除芯片的 FLASH 后,我可以写入芯片的 FLASH 一次 - 这表明看门狗定时器可能是罪魁祸首。
我一次又一次所做的就是拔掉有输出电压的电线,例如3.3V。
更具体地说,我想要 nucleo 和 arduino 之间的通信,其中 arduino 通过检测输出 3.3V 来检测 nucleo 是否已通电。当我拔掉这条线时,上传工作正常,否则会出现此消息。
尝试重新安装 ST-link 驱动程序。 适用于 win10 x64:https://www.st.com/en/development-tools/stsw-link009.html
我仍然遇到同样的错误:
Failed to execute MI command:
最终启动顺序错误:
执行MI命令失败: 目标远程本地主机:61234
来自调试器后端的错误消息: 本地主机:61234:连接超时。 执行MI命令失败: 目标远程本地主机:61234
来自调试器后端的错误消息: 本地主机:61234:连接超时。 本地主机:61234:连接超时。
请帮我解决这个问题。