Hello Sabina,
Thank you for your response.
Since my last post, I have made a lot of advance, but I have new - more precise - questions
I am trying to implement my custom user defined (vendor specific) class and i intent to send/receive data using libusb.
What I have done so far:
- I started from the dev_cdc_acm_vcom example (bare metal)
- I modified PID/VID to use my WinUSB driver, and changed class to 0xFF (vendor specific)
- I have written a small C++ software on host side, that can list, detect and open my USB device
- I am *trying* to send 512 bytes of data via USB bulk transaction, from host PC to device.
Where i'm stuck:
On the device side, each time a packet is recieved on the USB, I follow the code from the USB1_IRQHander() all the way to USB_DeviceLpcIp3511IsrFunction(), which then calls USB_DeviceLpc3511IpInterruptToken(), which then calls USB_DeviceLpc3511IpCancel().
I think this last "cancel" function call is the problem. For some reason, it seems like endpoint is deactivated for some reason, or maybe I'm getting something totally wrong.
If you could point me in the right direction it would be very much appreciated.
Thank you very much,