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.
Solved! Go to Solution.
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
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