LPCUSB on LPC1343

Started by Mario Ivancic December 28, 2013
Hello,

Does anyone have a success storry with this topic?
I'm trying to implemnt USB-CDC on LPC1343 using LPCUSB stack. I maneged
to pass the enumeration but after that point I have interrupt flood.

My setup is like this
- Olimex LPC-P1343 board
- Total Phase Beagle 12 USB analyser
- arm-none-eabi-gcc v4.5.0
- CodeBlocks IDE (with custom Makefile)
- debugging using printf (I have J-Link but OpenOCD can't do SWD with
J-Link :-( )

In Beagle Data Center after enumeration (ending with GET_LINE_CODING and
SET_CONTROL_LINE_STATE) I see only IN/NAK and that is OK because I did
not send anything.

But in MCU I have flood of interrupts for BULK_IN_EP, something about 89
interrupts in only one USB frame so my main loop is executing with a
speed of wounded snail :)



Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2000/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/lpc2000/join
(Yahoo! ID required)

<*> To change settings via email:
l...
l...

<*> To unsubscribe from this group, send an email to:
l...

<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/

An Engineer's Guide to the LPC2100 Series

Sound like you are working on an early version of LPCUSB, which runs with NAK interrupts of bulk IN EP. Try the "latest" one on the SourceForge SVN.
http://sourceforge.net/p/lpcusb/code/HEAD/tree/trunk/target/examples/main_serial.c

Tsuneo
On 29.12.2013 11:48, t...@yahoo.com wrote:
Thanks Tsuneo,
I was working with latest lpcusb (from trunk) but my usb-cdc code was
not up-to-date. Enyway, it's all sorted now, usb-cdc is working.
For enyone interested in file section is my modified lpcusb.

>
> Sound like you are working on an early version of LPCUSB, which runs
> with NAK interrupts of bulk IN EP. Try the "latest" one on the
> SourceForge SVN.
>
> http://sourceforge.net/p/lpcusb/code/HEAD/tree/trunk/target/examples/main_serial.c
>
> Tsuneo