Content originally posted in LPCWare by CodeRedSupport on Wed Sep 08 23:00:50 MST 2010
Quote: briand
Well hrm. This seems to be coming and going. My last reply ("it's magically fixed!") only lasted a few iterations, and now it's back to the really slow startup most of the time. Is there any polling or waiting that might happen between the first time crt_emu_cm3_nxp is called and the second? What I see when I hit debug:
-build finishes
-progress gets to 57% ("checking emulator")
-copy of crt_emu_cm3_nxp is idle in task manager
-a minute later (or so), 1st copy of crt_emu finally exits
-the cscript runs, new copy of crt_emu and gdb start up, upload and debug runs (looks like normal speed)
If I kill off the first copy of crt_emu during the wait time, lpcxpresso immediately takes off and does the upload, and things go well. If I wait around, I'm stuck waiting around... any other logs or info I should be looking at?
The DFUAPP timeout value (see '<install>\bin\Scripts\bootLPCXpresso.cmd') may not be appropriate for your system. This is the '/tl 250' parameter. We've also seen the occasional problem with cscript execution, particularly if you use a virus checker which logs cscript progress.
The first crt_emu_cm3_nxp task checks to see if there is an LPCXpresso to talk to. If not, it looks for the DFU device to download the firmware. This process takes some time when you first connect, but follow-on connections should be seemless.
Try this experiment.
1. Power cycle your LPCXpresso board by removing the USB cable, and reinserting it. This will boot the DFU device.
2. Manually load the probe firmware using DFUAPP.exe, and see if the connection delay is resolved when you restart the IDE. You can test with one of three probes:
LPCXpressoFS.enc (XP default probe)
LPCXpressoHS.enc
LPCXpressoWIN.enc
The latter two use USB high speed.
So, as an example, the following command would download the high speed HID probe.
C:\nxp\lpcxpresso_3.5\bin\DFUAPP.exe /f LPCXpressoHS.enc
After the LPCXpresso device is present, restart the IDE.