工作原因,要调试chip pro的片子,需要在Ubuntu上连接usb-serial的TTL线,芯片是PL2303
步骤如下:
连接usb到ubuntu机器
查看usb设备
dmesg|grep tty
[ 0.000000] console [tty0] enabled
[ 0.601118] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 2021.783234] usb 3-8: pl2303 converter now attached to ttyUSB0
[ 2037.443963] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 2095.632907] usb 3-8: pl2303 converter now attached to ttyUSB0
看到USB设备是ttyUSB0
配置minicom
sudo minicom -s
go to "Serial port setup" and change the first line to /dev/ttyUSB0.
找到"Serial port setup",把第一行变为:/dev/ttyUSB0
然后保存,"Save setup as dfl"
重新进入minicom,就可以了
sudo minicom