KSDK2 USB CDC do not work with HTerm and QSerialport

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

KSDK2 USB CDC do not work with HTerm and QSerialport

804 Views
nobodyKnows
Contributor III

Hello,

I have a strange behavior with QSerialport and HTerm and USB CDC on a KL26Z256. I tried serveral examples (usb_device_composite_cdc_msc_lite, usb_device_cdc_vcom_lite, usb_device_cdc_vcom) all of these have the same issue.

First of all install the driver and everything is ok ... there are one new COM port. So lets open the comport and send one byte with HTerm nothing happends no echo nothing. Now the virtual comport is in some strange state.

It is not possible to send or receive something. If you close the comport and open it with another terminal application which usually do not cause this issue like docklight the com port is still frozen.

After replugging the device the comport is now useable again with docklight or hyperterminal. But if you open the port with HTerm the comport is again in a unuseable state.

With other CDC devices like LPC1765 - everything works great.

So it looks like these applications make something that cause this issue on KL26Z256 with KSDK2.0.

I tried to debug this issue with Wireshark it seems there are some malformed packets.

 

Packet No. 2765 for "USB_Dump_with_QSerialport"
Packet No. 1053 for "USB_Dump_with_Docklight"

 

I hope this is a known phenomenon which can be fixed.

 

 

 

Thanks a lot and Best regards.

Original Attachment has been moved to: USB_Dump_with_QSerialport.pcapng.zip

Original Attachment has been moved to: USB_Dump_with_Docklight.pcapng.zip

Labels (1)
0 Kudos
1 Reply

489 Views
nobodyKnows
Contributor III

I found a solution to this issue ... it seems there is a problem with DTE.

I disabled this "feature" with never setting g_deviceComposite->cdcVcom.startTransactions to false.

0 Kudos