How to send a zero length packet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to send a zero length packet

675 Views
li_sw
Contributor I

             I design a HID USB device with the LPC2468. According to the USB specification,when processing the Setup transfer, a zero length packet should be sended to the host at the status stage .I want to know the flow about sending the zero length packet

 Thanks

0 Kudos
2 Replies

501 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Li,

If you are starting a new USB-based application, it is recommended considering a newer LPC device, because LPC2xxx are now legacy devices.

Regarding zero-length packet, it may depend of the used USB stack; you could take a look at the following links for reference:

https://github.com/micromint/LPCOpen-keil-lpc43xx/blob/master/applications/lpc18xx_43xx/examples/usb...

http://www.keil.com/forum/16271/arm7-lpc2148-amp-usb-communication/

https://www.nxp.com/docs/en/application-note/AN10703.pdf


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

501 Views
li_sw
Contributor I

Hi, Carlos,

Thank you very much.My problem has been solved.

0 Kudos