This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OCTVO-3P-AM335X: Ti-RTOS USB Bulk Write error lockup

Part Number: OCTVO-3P-AM335X
Other Parts Discussed in Thread: SYSBIOS

Hi all,

I have been working on an AM335x (Octavo) based camera design running TI-RTOS (PDK 1.0.13) feeding video data on request to a Window10 PC over USB.

One thread runs the USB - wait for a bulk command, send a bulk response kinda loop. Based on the example code from TI.

One thread periodically flashes an LED to indicate the RTOS is up. and running.

printf outputs to a serial port for logging.

This can run for days without issue. If the PC is under heavy load however,  a call to USBD_bulkWrite can be made to fail:

if (MAX_TRANSFER_SIZE != USBD_bulkWrite(m_hUSB, pUsbBuffer + packetOffset + transferOffset, MAX_TRANSFER_SIZE)) {
       printf("[usbApp] video USB write error 0x%x 0x%x+0x%x+0x%x 0x%x\n", m_hUSB, pUsbBuffer, packetOffset, transferOffset, MAX_TRANSFER_SIZE);

}

After a write error the thread running the led hangs. Sometime I can trap an exception, but it seems random..

Any thoughts? 

Bruce,.