I am running a firmware on MCF52254. Basically, I am collecting data which the microcontroller computes through USB. I am sending the data through bulk endpoint without any problem. I am collecting the data in the micro controller at 5 MHz and sending it through the bulk endpoint to the host. I noticed that sometimes I get an error DMA error (DMA_ERR) and bus turnaround timeout error (BTO_ERR) on usb. When I cleared it, it starts sending the data again.
What could be cause of the problem. Is clearing the data fine as I need to send the data in real time to the host.