GDB调试错误-“ localhost:3333:操作超时”

问题描述

我刚刚在Eclipse中完成了一个Espressif项目的设置,但是在遵循instructions here之后使用OpenOCD进行调试时,出现以下错误:

Error in final launch sequence:

Failed to execute MI command:
-target-select remote localhost:3333

Error message from debugger back end:
localhost:3333: Operation timed out.
Failed to execute MI command:
-target-select remote localhost:3333

Error message from debugger back end:
localhost:3333: Operation timed out.
localhost:3333: Operation timed out.

这是否意味着端口3333繁忙或不存在? 另外,当我在终端中运行netstat时,没有看到带有3333的端口。那可能是为什么吗?

解决方法

有两种方法可以得到此错误:openocd未运行或繁忙。

仅当openocd和gdb之间已经存在连接时,您才会看到3333和netstat。

由于在运行netstat时看不到3333,因此很有可能openocd无法启动或崩溃。

运行ps ax | grep openocd以确保正在运行openocd。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...