Dear all,
I have adapted FreeRTOS for the P64 board,
added EP2 as INT OUT.
If I send with libusb-win32 8 byte, the first package arrives with no probs.
Resending the same package, there is an interrupt, but no bytes are received, the FIFO is empty at bank1.
USBSpy reports successful transfer of 8 bytes and even libusb-win32 returns usb_interrupt_write() with no error!!!
Anyone already seen such problem?
thanks,
dg
edit: in the meantime i tried with EP3 (no ping pong), the result was the same, the second package had no data payload.

edit2: Problem found
I didnt remove these lines from the ISR for the OUT part:
/* The direction must be changed first. */
usbCSR_SET_BIT( &ulTemp, ( AT91C_UDP_DIR ) );
AT91C_BASE_UDP->UDP_CSR[ usbEND_POINT_1 ] = ulTemp;
I thought DIR is only for control transfer.
After I removed them everything works fine.
