Cannot use usb_dc_ep_write

Everytime I make a call to the usb_dc_ep_write function I get error -22 meaning invalid argument. I have tried everything I can think of. I tried sending a blank packet with no data but that wouldn't go through. I am trying to write data in the control endpoint. usb_dc_ep_read works just fine for reading from the control endpoint. If anyone knows how to get usb_dc_ep_write to work that info would be appreciated.

Parents Reply Children
No Data
Related