LPC5528 USB Full Speed throughput
Hello All,
I'm working on a project using the LPC5528. It's a printer application were the LCP5528 is used perform print jobs.
The print job data is transferred from a Host processor to the LPC5528 via FS USB0 interface using a Bulk type Endpoint. We are using NXP MCUXpresso SDK USB Stack implementation.
The problem we're seeing is that we're not getting efficient throughput on the USB Bulk transfers. Every other Bulk transfer is being NAKED by the LPC5528.

I timed the execution of the USB ISR handler on the LPC5528 from the point the interrupt fires to the point were the USB stack calls the Callback function and re-activates the Bulk Endpoint. This takes about 40uS. It is my guess that the latency in in the USB Stack is causing the inefficient throughput.
Can someone confirm if this is a reasonable conclusion? If so, is there a way to optimize the USB Stack or what other means are possible to achieve efficient throughput through the Bulk Endpoint?