EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

lpc 2148 virtual com ubuntu

Started by stijn_de_beugher April 10, 2009
Hi,

Does anybody know whether the example of NXP: AN10420 USB virtual COM port on LPC214x works under ubuntu?

When I connect the device, I can see the LPC VCOM divice but I can't test the virtual com port.

Thank you.

An Engineer's Guide to the LPC2100 Series

The device provided by AN10420 requires a custom device driver on PC side, to make up virtual COM ports (VCPs) on the PC. The example supplies such a device driver for Windows (in VCOMHostDrv folder, PLPU-S2K), but not for other OS. You can apply LibUSB or OpenUSB on Linux to communicate directly with the device. But making it up to COM port, is another story, more elaboration is required.

There are many other examples for VCP on the web, which use the in-box CDC device driver.

LPCUSB
http://wiki.sikken.nl/index.php?title=LPCUSB

RealView MDK from KEIL (even for eval version)
http://www.keil.com/demo/

IAR EWARM (even for eval version)
http://supp.iar.com/Download/SW/?item=EWARM-EVAL

etc.etc.

Tsuneo
--- In l..., "stijn_de_beugher" wrote:
>
> Hi,
>
> Does anybody know whether the example of NXP: AN10420 USB virtual COM port on LPC214x works under ubuntu?
>
> When I connect the device, I can see the LPC VCOM divice but I can't test the virtual com port.
>
> Thank you.
>

--- In l...,
Thank you very much!

The LPCUSB example seems very useful.
Do you know whether it's possible to compile it with the KEIL vision or should I use the GNUARM toolchain?

Thanks!
"t_chinzei" wrote:
>
> The device provided by AN10420 requires a custom device driver on PC side, to make up virtual COM ports (VCPs) on the PC. The example supplies such a device driver for Windows (in VCOMHostDrv folder, PLPU-S2K), but not for other OS. You can apply LibUSB or OpenUSB on Linux to communicate directly with the device. But making it up to COM port, is another story, more elaboration is required.
>
> There are many other examples for VCP on the web, which use the in-box CDC device driver.
>
> LPCUSB
> http://wiki.sikken.nl/index.php?title=LPCUSB
>
> RealView MDK from KEIL (even for eval version)
> http://www.keil.com/demo/
>
> IAR EWARM (even for eval version)
> http://supp.iar.com/Download/SW/?item=EWARM-EVAL
>
> etc.etc.
>
> Tsuneo
>
>
> --- In l..., "stijn_de_beugher" wrote:
> >
> > Hi,
> >
> > Does anybody know whether the example of NXP: AN10420 USB virtual COM port on LPC214x works under ubuntu?
> >
> > When I connect the device, I can see the LPC VCOM divice but I can't test the virtual com port.
> >
> > Thank you.

--- In l..., "stijn_de_beugher" wrote:
>
> --- In l...,
> Thank you very much!
>
> The LPCUSB example seems very useful.
> Do you know whether it's possible to compile it with the KEIL vision or should I use the GNUARM toolchain?

The code is known to compile and function properly using GNUARM. If you try to port it it to Keil, I suspect you are on your own. Considering the volume of code you would have to debug, I think you would be better off to build it with GNUARM. Once you have it functioning, you may want to try porting it.

I wouldn't...

Richard

--- In l..., "stijn_de_beugher" wrote:
>
> --- In l...,
> Thank you very much!
>
> The LPCUSB example seems very useful.
> Do you know whether it's possible to compile it with the KEIL vision or should I use the GNUARM toolchain?

Keil has lots of examples for USB here:

http://www.keil.com/support/man/docs/mcb2140/mcb2140_examples.htm

don

--- In l..., "rtstofer" wrote:
>
> The code is known to compile and function properly using GNUARM. If you try to port it it to Keil, I suspect you are on your own. Considering the volume of code you would have to debug, I think you would be better off to build it with GNUARM. Once you have it functioning, you may want to try porting it.
>
> I wouldn't...

> Richard
>
Hi,

If I use the GNU ARM UNDER KEIL IDE, then it should work I think.
Or should I install the real GNUARM from this site: http://gnuarm.org/

Thanks!

I have seen LPCUSB CDC Driver compiled and running with ARMCC Keil's
compiler :-)without big problems :-)

--
Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 91 120 1798
+34 636 52 25 69
skype: ajoajoajo


--- In l..., Miguel Angel wrote:
>
> I have seen LPCUSB CDC Driver compiled and running with ARMCC Keil's
> compiler :-)without big problems :-)
>
Hi,

I'm trying to compile the example in KEIL. I'm using the codesourcery compiler.

I can create a .hex file but it doesn't work.

I think I'm having problems with the linker file and the startup code.

Do you know where I can find the correct linker file and startup code for the lpc2148?

thanks!


The 2024 Embedded Online Conference