RT1064 EVK USB DEVICE no interrupt

cancel
Showing results for 
Search instead for 
Did you mean: 

RT1064 EVK USB DEVICE no interrupt

Jump to solution
234 Views
vdinh
Contributor I

I use the demo code evkmimxrt1064_dev_cdc_vcom_lite_bm on the RT1064 EVK.  The code works fine as the data echo back from the input char.  Now I want to change it to send the input to another place instead of sending it back to the USB port.  After code modification, I don't get the USB interrupt anymore. except the first input char (I have a breakpoint at USB_OTG1_IRQHandler()).  If I send the data to other place and back to the USB port then I can get the interrupt for every char.

Is there a register that need to be reset to reenable the interrupt in 

USB_DeviceSendRequest(s_cdcVcom.deviceHandle, USB_CDC_VCOM_BULK_IN_ENDPOINT, s_currSendBuf, size);

Thanks.

0 Kudos
1 Solution
213 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @vdinh ,

Please refer to this case.

https://community.nxp.com/t5/i-MX-RT/Apparent-bug-in-virtual-com-port-example/td-p/1161889

You can avoid this problem by calling

USB_DeviceSendRequest(s_cdcVcom.deviceHandle,USB_CDC_VCOM_BULK_IN_ENDPOINT,0,0);

 

Regards,

Jing

View solution in original post

1 Reply
214 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @vdinh ,

Please refer to this case.

https://community.nxp.com/t5/i-MX-RT/Apparent-bug-in-virtual-com-port-example/td-p/1161889

You can avoid this problem by calling

USB_DeviceSendRequest(s_cdcVcom.deviceHandle,USB_CDC_VCOM_BULK_IN_ENDPOINT,0,0);

 

Regards,

Jing