Hi Eugene, > Hello all, > I am new to this group and to the LPC chips in general. > I have been working on implementing an USB device using LPC2148. > > When the chip read in packets of data from the host PC, occasionally, > a byte goes missing. I checked the data packets over an USB analyzer, > and they appeared to be perfect. So the data got corrupted somewhere > between acknowledging the data packet and reading the data from the > USB endpoint RAM. > > It might be of interest to you that I used a modified USB stack from > the virtual com port example from phillip's website. The example was > written for Keil, but it was ported to IAR workbench. > > Sometimes the chip also hangs after writing a command to usb protocol > engine, when it waits for CCEMTY to be set. Since you're working with IAR, be sure to take a look at the MSD example project. It can be found here: <install drive>\Program Files\IAR Systems\Embedded Workbench 4.0\arm\src\examples\Philips\LPC214x\MassStorage_USB_LPC2148 It is a major revision to IAR's HID example, and a good starting point for writing LPC2148 device code. Joel
Message
RE: [lpc2000] scrambled data packet in LPC2148 usb buffer
2006-03-23 by Joel Winarske
Attachments
- No local attachments were found for this message.