问题描述
我刚刚在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。