LPC11U14 device not responding if plugged out in the middle

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

LPC11U14 device not responding if plugged out in the middle

534 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thillaielayaraja on Mon Aug 20 10:26:10 MST 2012
I have used the nxpUSBlib v0.95 which is available under:
http://www.lpcware.com/content/project/nxpusblib?destination=node%2F735

And we have used the CDC example provided in the following link:
http://www.nxp.com/documents/software/AN11115.zip

What we are seeing is, if the device is plugged out, while the port is open or in communication, the driver is getting crashed or the device does not respond further for a while.

Is this an issue, which is already seen by LPCware community?
Labels (1)
0 Kudos
Reply
3 Replies

525 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Tue Jan 27 10:00:05 MST 2015
Hi thillaielayaraja,
Please see below thread.
http://www.lpcware.com/content/forum/lpc11u14-api-software-could-not-detect-com-port-after-re-plug#c...
0 Kudos
Reply

525 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wilson.lee on Mon Jan 26 07:10:26 MST 2015
Hi, sir,
I met this problem as well.
Like FT232RL, PL2303 chip, there is no issue same as nxp lpc11u14.
could you give me some hint if you solved this problem.
Really thanks !!!
0 Kudos
Reply

525 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DiligentMinds.com on Thu Aug 30 10:55:08 MST 2012
Windows has this issue with *ANY* USB serial device.  You *MUST* use the "safely remove device" action in Windows, or you are going to see this.  This happens even with off-the-shelf USB-to-Serial cables.  If you have a program up (like TeraTerm Pro for example) that is using the serial port, and you reach over and just unplug the cable, you *may* have to restart Windows to recover from the evil that ensues...

BTW-- Linux does not do this, and handles this situation just fine.  Since Apple's OS/X is based on OpenBSD, I'm guessing that *IT* won't have any issues either.  In Linux, any program in the process of using the serial port (that you just unplugged) might have to be restarted, but that is the extent of the evil.  I don't own an Apple machine, so I can't test that.  Maybe someone else here can test this and let us know?

So, (in summary), you need to properly inform Windows that you would like to remove the USB CDC device (after closing any programs that are using it)-- and wait for Windows to give you permission to unplug the device.  This is *NOT* the fault of NXP-- the fault lands squarely on the shoulders of Microsoft.  This is inherent in the goofy architectural "design" of Windows, and there is nothing anyone (but Microsoft) can do about it.
0 Kudos
Reply