Content originally posted in LPCWare by Marks on Sat Jan 14 08:52:03 MST 2012
I think i have solved the issue, still need to test some more,
When USB_EndPoint0() gets a USB_EVT_SETUP,
it immediately parse the packet without reading the OUT data,
and i have some class requests that need the data,
so what i've done is, if the direction is host to device prime the OUT Endpoint,
and then in the function that handles the class request Read the endpoint.
This seems to work.