VirtualSerialDevice Example do not send data to PC port COM

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

VirtualSerialDevice Example do not send data to PC port COM

1,009 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nils28 on Wed Mar 13 09:37:20 MST 2013
Hi !

I have some problems testing VirtualSerialDevice Example from LPCOpen platform. I have imported this example in RedSuite to test it on Hitex board LPC4350 and did some modifications to use CMSISv2p10_LPC43xx_DriverLib and LPCUSBLib (v0.51) libraries. The software runs in SPIFI.

First of all, I tried to test the echo task using USB ROM Driver. On my PC, it works very well with TeraTerm. When I press one button on my keyboard, it is well echoed on TeraTerm window.

I then develop a C++ software (with Visual Studio) which can communicate through COM Port and send frames to the LPC4350. The problem is that the LPC receive well the frame sent by PC (data are in recv_byte buffer) but it does not send it back: my C++ software does not receive anything…

I have modified Virtual Serial source to send a char every 100ms to COM port (using UsbdCdc_SendData() ). TeraTerm print well characters but my C++ do not receive them.

Is there a problem with the USB CDC descriptors ? Or with the .inf file from the example ? What is the incompatibility ?

I’ve noticed that the example does not work with PuTTy terminal : when I open the port, it says “Unable to open connection to COM4, Unable to configure serial port”. Is it normal ?

Thanks for your answer.

Original Attachment has been moved to: LPCUSBlib%20VirtualSerial.inf_.txt.zip

Original Attachment has been moved to: LPCUSBlib%20VirtualSerial.inf_.txt.zip

Original Attachment has been moved to: LPCUSBlib%20VirtualSerial.inf_.txt.zip

Original Attachment has been moved to: LPCUSBlib%20VirtualSerial.inf_.txt.zip

Original Attachment has been moved to: LPCUSBlib%20VirtualSerial.inf_.txt.zip

Original Attachment has been moved to: LPCUSBlib%20VirtualSerial.inf_.txt.zip

Original Attachment has been moved to: Descriptors.c.zip

Labels (1)
0 Kudos
Reply
1 Reply

831 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tuong on Sun Mar 17 20:15:35 MST 2013
Hi,

"TeraTerm print well characters but my C++ do not receive them"...It seems to me that problem is in your software, can you post it here for everybody give you a hand!

My PC running WIndows7 does have PuTTY, and I find no problem running USB VirtualSerial exmaple with PuTTy terminal. Can you describe your PuTTy issue in more detail and capture the warning screen?

With best regards,
0 Kudos
Reply