解决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

本文作者:Little_R

本文链接:https://www.cnblogs.com/Little-Rainbow/p/18532482

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   Little_R  阅读(551)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起