Author Topic: NXP LPC Virtual Com port library  (Read 1899 times)

0 Members and 1 Guest are viewing this topic.

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
NXP LPC Virtual Com port library
« on: February 26, 2017, 01:04:10 am »
Hi!

I have designed a board that uses the NXP LPC11U24 chip. I want to use the USB port to create a virtual com port so that I can communicate with my PC but I am really struggling with limited documentation.

I have been using LPCXpresso from NXP who provide the LPCOpen libraries for the 11U14 chip which includes the nxp_lpcxpresso_11u14_usbd_lib_cdc example. I can successfully build their example and run to create a vcom port, however when I try to use their code in my own project I cannot get it to work! The device just does not show up on my PC and I can't figure out what is going on. The NXP forums have not been particularly helpful.

I COULD just base my project on their example by just adding the extra code to do everything else - but their example is in C and I really need to be using C++ for this application so I really have to recreate the project. Frankly, the whole USB stack is very complex and I don't really have time to learn everything that is going on right now (coming up to the end of my degree...) - I am basically hoping to find a library/driver etc that will do the heavy lifting for me.

So, does anyone know how I could get this working in LPCXpresso, or if not can anyone recommend a solution that will make virtual com ports much easier. Something like MBED would be good - however even MBED uses the interface chip to do USB communications and I obviously don't have that in my project.

Thanks!
Read about my stuff at: projects.matthollands.com
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: NXP LPC Virtual Com port library
« Reply #1 on: February 26, 2017, 09:25:49 pm »
Keil has a better library.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf