我刚刚在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
的端口。这可能是原因吗?
发布于 2020-09-07 22:54:11
出现此错误的原因有两种: openocd未运行或正忙。
只有在openocd和gdb之间已经有连接时,您才会看到使用netstat的3333。
由于在运行netstat时看不到3333,所以openocd很可能没有启动或崩溃。
运行ps ax | grep openocd
以确保正在运行openocd。
https://stackoverflow.com/questions/63642392
复制相似问题