usb problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

usb problem

1,281件の閲覧回数
eao
Contributor I

Hello, official website staff, I found a problem in imxrt1170 platform, in board_usb_device.c, line 350, function
usb_DeviceCdcAcmRecv(handle, USB_CDC__VCOM_BULK_OUT_ENDPOINT, s_currRecvBuf, g_UsbDeviceCdcVcomDicEndpoint[1].maxPackrtSize), the last one in maxpacketsize parameter, I seem to be able to modify its size, I will modify it to 2048, the usb can still be normal, but once I modify it to 10000, it seems to communicate abnormal, please ask This is why? Thanks! 

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,251件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @eao ,

USB FS bulk transfer maximum size is 64. USB HS bulk transfer maximum size is 512.

 

Regards,

Jing 

0 件の賞賛
返信

1,242件の閲覧回数
eao
Contributor I
thanks!
I would like to ask a question, in the official example of usb, "dev_cdc_vcom_bm_cm7" is used as a slave device and the computer is used as the master device to send data to the development board, I found that multiple interrupts are generated and each interrupt has 512 bytes, is there an example of this? Is there any example where only one interrupt can be generated and all data will be received? Thanks!
0 件の賞賛
返信

1,222件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @eao ,

Sorry I don't understand what you mean. CDC example use 2 endpoint, one bulk in and one bulk out. There isn't examples use only one interrupt to send all data.

 

Regards,

jing

0 件の賞賛
返信