Respected sir,
Please reply asap. Its urgent.
I have added one more case into RxHandler which is USB_EVENT_ERROR in the usb_dev_serial example. I want to check USBERR_DEV_RX_FIFO_FULL error. But i am not able to generate this error. My program does not go into the USB_EVENT_ERROR case. I have set 256 buffer size and i filled it completely. The USBBufferSpaceAvailable(); function also returns 0 remaining buffer size. But it does not generate USB_EVENT_ERROR . So my questions are
1. Can I add USB_EVENT_ERROR case into RxHandler (); ??
2. As per LIB GUIDE USBERR_DEV_RX_FIFO_FULL gets generated when FIFO is full. So when buffer is full , will this error get generated?? Is FIFO same as buffer??
3. How to generate and verify this error manually??
Regards,
Digvijay