本帖最后由 andyJ 于 2021-7-15 10:02 编辑
環境:
開發版: M483KG
usb轉uart: PL 2303/ FT 232
目的: 如何使用HSUSBH_USBH_VCOM 讀寫PL 2303/ FT 232?
問題:
插拔PL2303/FR232裝置,會顯示Connect device, disconnect device
但是不知道如何傳收資料。
訊息如下:
+---------------------------------------------------------+
| M480 USB Host VCOM sample program |
+---------------------------------------------------------+
| (NOTE: This sample supports only one CDC device, but |
| driver supports multiple CDC devices. If you |
| want to support multiple CDC devices, you |
| have to modify this sample. |
+---------------------------------------------------------+
USB static memory: 6/256, heap used: 0
Connect device =>
New full-speed device address 2 assigned.
USB static memory: 7/256, heap used: 568
disconnect device...
USB static memory: 6/256, heap used: 0
USB static memory: 6/256, heap used: 0
Connect device =>
New full-speed device address 3 assigned.
USB static memory: 7/256, heap used: 568
disconnect device...
USB static memory: 6/256, heap used: 0
USB static memory: 6/256, heap used: 0
Connect device =>
New full-speed device address 4 assigned.
USB static memory: 7/256, heap used: 568
|