Hi,
I'm trying to evaluate the performance of USB and using USB MSC example to do bulk transfers in between host (PC) device (nRF52840)
I'm using libusb on PC side and sending 64 bytes of data in a loop using bulk transfer. On device side I'm using 'app_usbd_ep_transfer' function in a loop on NRF_DRV_USBD_EPOUT1 endpoint of the interface.
I see the first 64 bytes of transfer is received successfully but after that I get pipe error on libusb side and can't continue to bulk transfers. How can I call this function in a loop? Should I call another function to wait/clear some flags until/after the transfer is completed? Is there a usb device example code which would help with handling the endpoint data transfers in a loop?
Thanks and Best Regards,
Asli