Re-installing LPC-Link

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

Re-installing LPC-Link

6,194 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by david.prentice on Mon Mar 08 04:47:32 MST 2010
I successfully installed LPCXpresso yesterday,  and LPC-Link worked fine.
However Windows was unhappy this morning,  and I have re-booted as a previous working configuration.

I un-installed LPCxpresso and am now trying to re-install it.

Everything is fine until the loading of the LPC-Link drivers on the first debug session.    It seems to copy all the relevant files over.   Then fails with:

LPC-Link Debug Probe v1.1

"An error occurred during the installation of the device
The wait operation timed out".

I have also tried the command line DFUAPP.exe with the same results. 

David.
0 Kudos
Reply
34 Replies

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 29 21:31:47 MST 2010
Ok, in C:\WINDOWS\inf\certclas.inf, is there an entry such as:

{36fc9e60-c465-11cf-8056-444553540000}        ; Universal Serial Bus controllers
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by js-nxp on Mon Nov 29 20:35:06 MST 2010
It's all getting too hard :confused:


Quote:

2. In the ' \WINDOWS\INF' directory, search for "Philips" and be certain any .inf file(s) found has the string "VID_0471&PID_0000". Delete these, and any associated .pnf files. In your case, the files oem126.inf/oem126.pdf are likely present.


the directory has lower case \inf, no files called "Philips" or oem126.inf/oem126.pdf (pnf??)

I renamed ALL .inf and .pnf files created yesterday to see if new ones would be created. I also renamed the files in the DFU directory to match the case of the .cat files (some were all in lower case but it should not matter). Disabled virus scanner just in case. Still no good.

Renamed the setupapi.log to old so that I could see what happened with today's install and among other things I see

Quote:

#I087 Driver node not trusted, rank changed from 0x00000001 to 0x00008001.
#E360 An unsigned or incorrectly signed file "c:\nxp\lpcxpresso_3.5\drivers\dfu\MassDfu.cat" for driver "USB Device with DFU Capabilities" will be installed (Policy=Ignore). Error 0x800b0110: The certificate is not valid for the requested usage.
#E122 Device install failed. Error 2: The system cannot find the file specified.
#E157 Default installer failed. Error 2: The system cannot find the file specified.

so it seem that there are some issues somewhere.

I think I give up for now, maybe my local friendly NXP FAE can sort this out.
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 29 18:34:49 MST 2010
Looking at your setupapi log that you sent, it appears the DFU device installation may be a problem. If it were me, I'd try the following. I've never encountered a problem doing this on Windows XP, but it's sort of a last resort.

1. Disconnect the USB cable from your LPCXpresso, and leave it unpowered.
2. In the ' \WINDOWS\INF' directory, search for "Philips" and be certain any .inf file(s) found has the string "VID_0471&PID_0000". Delete these, and any associated .pnf files. In your case, the files oem126.inf/oem126.pdf  are likely present.
3. Plug the USB cable back into your LPCXpresso, and power it on. You should be be prompted that a new device is found. You'll want to handle the installation yourself, so when prompted, navigate to the LPCXpresso "<install>\Drivers\DFU" directory.

Once the DFU device driver has installed, the LPCXpresso IDE should be able to use it's scripts to DFU the LPC-Link software probe onto the LPC-Link.
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by js-nxp on Mon Nov 29 13:51:36 MST 2010
Here it is. Thank you.
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 29 02:04:05 MST 2010

Quote: js-nxp
I have unistalled and reinstalled the IDE. The boxes to install the driver were both ticked. The same thing happens, as soon as I try to debug and plug the board in windows tries to reinstall the drivers and it fails saying it cannot find the files and it keeps on going forever.



PLease zip up and post the file c:\windows\setupapi.log

This is a windows log file that records all driver installation messages.
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by js-nxp on Mon Nov 29 01:52:17 MST 2010
I have unistalled and reinstalled the IDE. The boxes to install the driver were both ticked. The same thing happens, as soon as I try to debug and plug the board in windows tries to reinstall the drivers and it fails saying it cannot find the files and it keeps on going forever. Message from IDE:
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by js-nxp on Mon Nov 29 01:32:14 MST 2010
I'm using
[LEFT][SIZE=1][SIZE=3]LPCXpresso: [/SIZE][/LEFT]
[SIZE=3]Version: LPCXpresso v3.5.6 [Build 234] [04/11/2010] [/SIZE]
[SIZE=3]
Quote:
The LPCXpresso installation installs the required drivers

Interesting, it must be failing. I get an ever ending Windows prompts to install the drivers when I plug in the board, it fails installation, says it can't find the files, rinse and repeat for ever.[/SIZE]
[SIZE=3][/SIZE]
[SIZE=3]I get the impression of this being a common problem?[/SIZE]
[/SIZE]
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 29 00:15:29 MST 2010

Quote: js-nxp
Some familiar "faces" here.:)

I cannot install lpc-link at all. It keeps on saying that it cannot find the required files.

I have tried both the DFU and LPC-Link driver directories.

Win XP PRO SP3 2.8GHz and 3GB ram



Sorry, you haven't provided us enough information in order to help you, including the LPCXpresso IDE version you've installed. The LPCXpresso installation installs the required drivers. Your system must provide access to the cscript.exe utility for our installation scripts. On Windows XP, this is utility is located in the \WINDOWS\SYSTEM32 directory. Please post the exact error text you see to at least provide some idea of the failure mode.

Regards,

CodeRedSupport
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by js-nxp on Sun Nov 28 17:12:00 MST 2010
Some familiar "faces" here.:)

I cannot install lpc-link at all. It keeps on saying that it cannot find the required files.

I have tried both the DFU and LPC-Link driver directories.

Win XP PRO SP3 2.8GHz and 3GB ram
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Mar 08 09:37:40 MST 2010
Perhaps there was an error during the driver installation?

Could you zip and post \windows\setupapi.log - this contains detailed information on the installation of drivers by Windows.

Thanks
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by david.prentice on Mon Mar 08 07:33:53 MST 2010
Thankyou very much.

It seems to connect in this mode!

The behaviour is not quite the same as in my original installation.

David.
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Mar 08 06:57:30 MST 2010
Hi,

Can you try:
disconnect the board
start LPCXpresso
open Window->Preferences
In the left-hand column, expand LPCXpresso and click on Debug
Now, in the Right hand column, ensure "Initialise LPC-Link as Hid" is checked
press OK
connect your board
start a debug session

Thanks
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by david.prentice on Mon Mar 08 06:13:05 MST 2010

Quote: CodeRedSupport
Hi,

The problem could be that your machine is slow to load the drivers and so  LPCXpresso times out waiting for the drivers to appear. It is not clear from your description at what stage the error occurs. If it is during the "initialise LPC-Link" stage, you get a choice of continue to wait or to display the log. Can you try the continue, and if it still failes, get the log and post it.

Other possible causes include:
- is the cable fully inserted into the PC and LPC-Link?
- if you are connecting via a USB hub, try connecting directly to the PC instead.

Also, which version of Windows are you running?



The system prompts for "New Hardware etc" when I start the first "debug Blinky" session.
Yes.  I get prompts for Unsigned drivers,   and Waits from the debugger.    Which I respond to immediately.   If the "New Hardware" gets launched via DFUAPP,   then I only get the Unsigned Driver prompt.    But it still fails in the same way.

The USB is connected directly to the PC,   which is running Windows XP SP2.   It runs at a respectable speed.

The installation worked fine yesterday.   And I have un-installed / re-installed about 4 times this morning.   And rebooted the PC too.


[FONT=Courier New] *****************************************************[/FONT]
[FONT=Courier New]*** DFU LOG FILE ***
Creation Time : C:\DOCUME~1\DAVIDP~1\LOCALS~1\Temp\dfuApp5447055151675971449.log
*****************************************************


Open Device
Get Device Descriptor successful
Get Configuration Descriptor successful
DFU Get Status successful
---> DFUStatus: No error condition present.
---> DFUState: Device is operating in the DFU mode and is waiting for requests.

Device Descriptor
bLength: 0x12
bDescriptorType: 0x01
bcdUSB: 0x0200
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x40
idVendor: 0x0471
idProduct: 0xdf55
bcdDevice: 0x0001
iManufacturer: 0x00
iProduct: 0x00
iSerialNumber: 0x00
bNumConfigurations: 0x01



DFU Get State successful
---> DFUState: Device is operating in the DFU mode and is waiting for requests.
Download Block Nb 0 (2048 Bytes)
DFU Get State successful
---> DFUState: Device has received a block and is waiting for the host to solicit the status via DFU_GETSTATUS.
DFU Get Status successful
---> DFUStatus: No error condition present.

...

---> DFUState: Device is processing a download operation. Expecting DFU_DNLOAD requests.
Download Block Nb 14 (1032 Bytes)
DFU Get State successful
---> DFUState: Device has received a block and is waiting for the host to solicit the status via DFU_GETSTATUS.
DFU Get Status successful
---> DFUStatus: No error condition present.
---> DFUState: Device is processing a download operation. Expecting DFU_DNLOAD requests.
Download Block Nb 15 (0 Bytes)
DFU Get State successful
---> DFUState: Device has received the final block of firmware from the host and is waiting for receipt of DFU_GETSTATUS to begin the Manifestation phase; or device has completed the Manifestation phase and is waiting for receipt of DFU_GETSTATUS. (Devices that can enter this state after the Manifestation phase set bmAttributes bit bitManifestationTolerant to 1.)
DFU Get Status successful
---> DFUStatus: No error condition present.
---> DFUState: Device has programmed its memories and is waiting for a USB reset or a power on reset. (Devices that must enter this state clear bitManifestationTolerant to 0.)
Device Reset after Download successful
Close Device



*** END OF FILE ***

David.
[/FONT]
0 Kudos
Reply

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Mar 08 05:07:05 MST 2010
Hi,

The problem could be that your machine is slow to load the drivers and so  LPCXpresso times out waiting for the drivers to appear. It is not clear from your description at what stage the error occurs. If it is during the "initialise LPC-Link" stage, you get a choice of continue to wait or to display the log. Can you try the continue, and if it still failes, get the log and post it.

Other possible causes include:
- is the cable fully inserted into the PC and LPC-Link?
- if you are connecting via a USB hub, try connecting directly to the PC instead.

Also, which version of Windows are you running?
0 Kudos
Reply