Xilinx Vitis 2020.2 Ubuntu 设置串口连接ZCU102开发板

作者:hitercch

版权声明:本文为CSDN博主「hitercch」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u011747505/article/details/110265522

前提环境:开发板上电后,JTAG模式启动,SD卡已烧写系统文件,JTAG 和UART已连接主机

首先 下载驱动Linux_3.x.x_4.x.x_VCP_Driver_Source.zip,网址https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

编译安装

make
cp cp210x.ko /lib/modules/<kernel-version>/kernel/drivers/usb/serial
insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko
insmod cp210x.ko

然后Terminal中执行 dmesg | grep tty

dmesg | grep tty
[ 0.077306] printk: console [tty0] enabled
[ 11.762257] usb 1-9: FTDI USB Serial Device converter now attached to ttyUSB0
[ 11.765588] usb 1-10: cp210x converter now attached to ttyUSB1
[ 11.766179] usb 1-10: cp210x converter now attached to ttyUSB2
[ 11.766630] usb 1-10: cp210x converter now attached to ttyUSB3
[ 11.767095] usb 1-10: cp210x converter now attached to ttyUSB4
[ 2874.130151] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[ 2874.130635] cp210x ttyUSB2: cp210x converter now disconnected from ttyUSB2
[ 2874.131046] cp210x ttyUSB3: cp210x converter now disconnected from ttyUSB3
[ 2874.131518] cp210x ttyUSB4: cp210x converter now disconnected from ttyUSB4
[ 2875.849944] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 2935.341174] usb 1-10: cp210x converter now attached to ttyUSB0
[ 2935.342065] usb 1-10: cp210x converter now attached to ttyUSB1
[ 2935.342928] usb 1-10: cp210x converter now attached to ttyUSB2
[ 2935.343950] usb 1-10: cp210x converter now attached to ttyUSB3
[ 2938.964674] usb 1-9: FTDI USB Serial Device converter now attached to ttyUSB4

然后执行 ls -l /dev/ttyUSB*

ls -l /dev/ttyUSB*
crw-rw-rw- 1 root dialout 188, 0 11月 28 13:02 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 11月 28 13:02 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 11月 28 13:02 /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 3 11月 28 13:02 /dev/ttyUSB3
crw-rw---- 1 root dialout 188, 4 11月 28 13:02 /dev/ttyUSB4

在Vitis中点击 Window, Show view如下图,不知道为啥软件界面不能截屏

打开Vitis Serial Terimal自带的串口工具

点击右上角的加号,Port输入框输入/dev/ttyUSB0,Connected to: Serial(/dev/ttyUSB0,115200,0,8)提示连接成功

(输入ttyUSB0不行,输入别的也不行,都试过了)


这样就可以执行开发板上的命令了。类似于远程连接ssh了

最新文章

最新文章