USBDebug, non-blocking configuration | Cypress Semiconductor
USBDebug, non-blocking configuration
I need to send CyU3PDebugPrint output over the USB interface. I almost got it working with a little help from the USBDebug sample.
I noticed that if I don't poll the debug log endpoint on the host side (for example because my debug logger application is not running, or I don't click Transfer Data in the Control Center for a while) my firmware application seems to hang during CyU3PDebugPrint presumably because of the DMA backlog on the consumer socket.
How can I configure the endpoint (or the DMA?) to not block if the host does not "remove" data from the debug endpoint? Extra debug output should just be thrown away in this situation.