Hello to all,
I still have problems to establish a usb connection in bulk mode via
DMA. I'm able to send one packet of data via DMA but that's it. The
second one fails.
Maybe somebody can answer me some specific questions. That would be great.
1. In my sample code the IN token for EP2 is received via interrupt;
the answer shall be send via DMA. After sending this data back I get
an End of Transfer interrupt. I'm ignoring this interrupt because I
wanna send the next data back after the next IN Token and my datasize
is smaller or equal to the package size. Is this OK ?
2. Why do I get a New DD Request interrupt allthough I reinit my DD
everytime before I send data ?
3. What is the meaning of the possibility to define more than one DD
for one Endpoint ? Is it necessary to have 2 DDs for doublebuffering ?
But what would it be good for to have 4 DDs for example ?
4. Is the End of transfer interrupt necessary for having a buffer to
send which is greater than the package size and than be able to send
the next package in the End of transfer interrupt ?
Please help me with these questions
Thank you all in advance
Wolfgang

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
> I still have problems to establish a usb connection in bulk mode via
> DMA. I'm able to send one packet of data via DMA but that's it. The
> second one fails.
Have you looked at the TNKernel USB Bulk firmware code?
http://www.tnkernel.com/usb_bulk.html
It uses bulk mode, DMA, and works.
Joel

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )