解决Vivado连接不到硬件的报错

报错

ERROR: [Common 17-39] 'connect_hw_server' failed due to earlier errors.

报错详细信息

点击查看代码
connect_hw_server -allow_non_jtag
INFO: [Labtools 27-2285] Connecting to hw_server url TCP:localhost:3121
INFO: [Labtools 27-2222] Launching hw_server...
INFO: [Labtools 27-2221] Launch Output:

****** Xilinx hw_server v2023.2
  **** Build date : Oct 13 2023 at 21:31:40
    ** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.: Socket bind error. 

ERROR: [Labtools 27-2220] Launch Error:
Unable to launch local hw_server executable.

ERROR: [Common 17-39] 'connect_hw_server' failed due to earlier errors.

解决方法

管理员权限运行cmd,查看端口占用,命令如下:

点击查看代码
netsh int ip show excludedportrange protocol=tcp

vivado需要用到的端口是3121,Windows系统保留了部分端口不允许应用使用,所以要打开这个端口。

运行下面的命令:

点击查看代码
net stop winnat
netsh int ip add excludedportrange protocol=tcp numberofports=3 startport=3000
netsh int ip add excludedportrange protocol=tcp numberofports=1 startport=3121
net start winnat

问题解决喽!

参考

https://zhuanlan.zhihu.com/p/670343325

posted @ 2024-11-07 16:05  Little_R  阅读(1827)  评论(0)    收藏  举报