測(cè)試CH32V103 EVT的歷程SimulateCDC, 在編譯燒錄到評(píng)估板上后USB連接P9出現(xiàn)USB Serial 設(shè)備但是在Linux下沒(méi)有產(chǎn)生/dev/ttyACM0節(jié)點(diǎn),無(wú)法正常使用. 看了代碼發(fā)現(xiàn)是USB描述符配置有誤,修改0xff為0x02可以顯示/dev/ttyACM0但是依然無(wú)法正常通信.
[ 7292.412988] usb 3-2: new full-speed USB device number 13 using xhci_hcd
[ 7292.566500] usb 3-2: New USB device found, idVendor=1a86, idProduct=fe0c, bcdDevice= 0.01
[ 7292.566510] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7292.566513] usb 3-2: Product: USB Serial
[ 7292.566516] usb 3-2: Manufacturer: wch.cn
...沒(méi)有cdc_acm設(shè)備日志cdc_acm 3-2:1.1: ttyACM0: USB ACM device
編譯環(huán)境Ubuntu22.04 MounRiver 64位最新版本.