Download probelem from LPCXpress IDE

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

Download probelem from LPCXpress IDE

3,717 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Thucydides on Thu Oct 21 04:21:00 MST 2010
Hello,
I encountered download problem sending from LPCXpresso IDE to LPCXpresso directly.
After choosing Run as MCU application or Debug as MCU application, both download always fail at just 57%.
I have two LPCXpresso1768 and one LPCXpresso1343 and all of them react samely.
Anyone know how to solve it?

Thanks,
Thucydides
0 Kudos
Reply
22 Replies

3,581 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by eschabor on Wed Mar 07 17:31:20 MST 2012
Just encountered the freeze at 57% download bug that several others have posted about.  Turns out the problem is that only some USB ports work.  My PC has USB ports straight from the chipset at the back panel but the front panel USB ports connect up through a USB hub chip on the motherboard.  My front panel USB triggers the freeze but my back panel USB allows LPCexpresso to work fine.

I'm running LPCxpresso 4.2.0 on Fedora 13 32 bit on an Intel chipset motherboard.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dandumit on Thu Nov 25 08:19:55 MST 2010
I have the same problem :  The debugger doesn't connect to board.
Attached it's the .log file. Are few errors there but I do not think that are related to this board.

I have changed several cables.
Changed the board in several usb ports.
Multiple restarts. Upgrade to latest version .
I run the version 3.5.6 on XP machine.

Please help.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 22 06:27:56 MST 2010
Goto http://knowledgebase.nxp.com/forumdisplay.php?f=4 and click on the "New thread" button.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dreamway77 on Mon Nov 22 05:56:59 MST 2010
Hi!

I do not manage to write a new post on the forum. Can you explain to me, how can it be done?

Thx
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dreamway77 on Mon Nov 22 03:56:59 MST 2010
Nice! i'm sorry.
I change that.

Thx
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 22 03:48:36 MST 2010
You might stand a better chance of someone helping you if you created a  new thread with an appropriate subject. "Generating a Square signal"  would appear to have very little to do with "Download problem from  LPCXpresso IDE", hence your question is likely to be completely overlooked by forum members who are not following this thread.  :)
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dreamway77 on Mon Nov 22 03:31:20 MST 2010
Hi!

I'm not a student guy! It's for my job. And i'm a newbies in µC. that is why i need your help!

Thx
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Nov 22 02:50:40 MST 2010
I think your professor would like you to work these things out for yourself.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dreamway77 on Mon Nov 22 00:36:06 MST 2010
Hi!

I'm starting with NXP LPCxpresso 1114 and i need your help. It's my first time with µC. I would like to capture a square signal and define his period. Having defined this period, i would like to multiply by five. After that, i would like to out this new square signal.

First : What input use?
two : i do not know how to declare input and what init i do. Same for output.

Thanks for your help and i really need you.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Oct 23 02:48:54 MST 2010
Note:

In Case #1, although you are running a debug session, the Debug View does not appear. To show the Debug View, select Windows->Show View->Other and select Debug View.

This probably also explains the problem you were having in Case #2. The debug session will have been running and have a lock on the debug target. When you tried to program the flash, the flash programmer would not have been able to connect to the target.

Suggestions:
- don't use Run As - use the Flash Programmer instead
- if you want to debug, use Debug As, or the Debug button on the Quickstart panel

Hope that helps
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Oct 23 01:47:49 MST 2010
1. Run As
This starts the debugger, downloads the application to flash, and from [B]within the debugger[/B], starts the application running. Thus, you are actually running a debug session. So, if you disconnect the target, the debugger will lose connection and issue the error message.

2. Program Flash
This button just downloads the application to the flash. To use it, select your project and press the button. Then choose the application to download, and go. In what way did it not work? I can't help you if you don't supply any details - it is hard to see your screen from here.

3. Red Probe+
The same functionality is offered regardless of which type of debug probe you use (Red Probe, Red Probe+, LPC-Link). The difference is the performance. Red Probe and the new Red Probe+ are much higher performance than LPC-Link.

Having read through this, it makes me wonder whether you really just want to debug the application? To do this, just press the Debug button in the Quickstart Panel. This give you full source-level debug.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Thucydides on Fri Oct 22 23:33:45 MST 2010
Finally I could download to LPCXpresso from IDE using Run As.
Board sample from Embedded Artists seems to run safely on the baseboard after reset.
The cause of failure was USB cable.
Before it, I've just remembered my experience when my handmade debug cable between JTAG and MCU didn't work, I  shortened the cable and inserted C and R as Low Pass Filter.
So I connected other USB cable with surging absorber instead of normal one.
As same before downloading stops at 57% for just a second but restart and complete.

But I have some fundamental question.

1. About function of "Run As"
To select "Run As" by right clicking at a project means to write object into flash?
As result it seems so, since after disconnecting USB cable and resetting, MCP execute selected program.
But when I disconnected USB cable after downloading, a error message appeared and I think there's other safe means to disconnect.

2. About "Program Flash" function
I thought the "Program Flash" in tool bar works as Flash Writer and I tried it pushing it but failed.
Does it mean only my environment has problem to write flash or originally it doesn't function as Flash writer?

3. Flash write using Red Probe+
At least now I don't have Red Probe+ but I'd know whether it functions as flash writer to LPCXpresso via LPC-Link or not.

Thanks,
Thucydides
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Oct 22 07:38:09 MST 2010
You seem to have ignored my request for more information...


Quote:

If this doesn't work, please switch to the console view, and select the  "MCU Debug Log" console (from the drop-down on the right side of the  console view). Copy the contents and post them.



If you cannot program any of your devices using FlashMagic either, I think you have a more fundamental problem. Can you
- describe exactly how you are connecting LPC-Link to the host and how you are powering the baseboard.
- describe your host USB ports, that you are using to connect the LPC-Link. It is possible that they are not supplying enough power.
- try different USB cable - yours could be damaged

One final thing - could you zip and post the file <workspace>/.metadata/.log
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Thucydides on Fri Oct 22 06:09:17 MST 2010
Thank you for your suggestion.
But all approaches was unsuccessful and I give up at least as for download direct to LPCXpresso for the moment.
I have a LPCXpresso Base board and I couldn't download via the baseboard using Flash Magic too.
If both means of the direct download from IDE to LPCXpresso and download via the baseboard using Flash Magic fail, would it be valid to use Red Probe+ debugger?
And LPCXpresso or the baseboard has Debug port just for Red Probe+?
If there are someone know about it, please give me suggestion.

Thanks,
Thucydides
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Oct 22 02:34:24 MST 2010
Can you try the following:

[LIST]
[*]Disconnect and reconnect LPC-Link
[*]Start the IDE
[*]Select Window->Preferences
[*]Open the prefence page for LPCXpresso, Debug Options(1)
[*]Ensure"Initialise LPC-Link as HID" is checked
[*]Open the preference page Debug Options(2)
[*]Ensure "Force debug verbose mode" is checked
[*]OK
[*]Now start a debug session
[/LIST]
If this doesn't work, please switch to the console view, and select the "MCU Debug Log" console (from the drop-down on the right side of the console view). Copy the contents and post them.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Thucydides on Fri Oct 22 02:13:29 MST 2010
Thank you for your kind answer,
I tried just as you wrote and "USB Device with DFU capabilities" appeared in device manager just same as before.
And I installed  LPC-Link drivers by designating folder Drivers/LPC-Link but result was same.
I have a question.
Is it correct if  "LPC-Link device" appears under USB controller in device manager?
And "USB Device with DFU capabilities" appears means wrong driver was installed??
Anyway the download failure at 57% still occurs.
I'd be glad if you suggest other solution.

Thanks,
Thucydides
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Oct 22 01:45:07 MST 2010
Mike45:
I think you said you were running under a VM on MacOSX. With some VMs, you have to get the VM to rescan the USB. This is because after booting LPC-Link, it changes its USB device class and vid/pid and this can 'confuse' some VMs, so that it doesn't see the new device.

Also, we recommend that you do not connect LPC-Link via a hub. Please try connecting it directly to your host USB port.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Oct 22 01:41:54 MST 2010
Thucydides:

Post-build steps are irrelevant in this context. For some reason the debug driver is unable to locate your LPC-Link after it has been initialised (booted).

Could you connect your LPCXpresso (LPC-Link_) board and open a command window and execute the following commands:
(replace <install> with the directory path for you LPCXpresso installation)
cd <install>/bin/Scripts
finddfu
bootLPCXpresso

Once you had done this, take a look in Device Manager and see if you can see the LPC-Link device listed. If not, re-install the LPC-Link drivers in Drivers/LPC-Link and then try again.

Please post the results.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mike45 on Thu Oct 21 23:42:47 MST 2010
I get the same errors (57%) randomly on the latest linux version, however mine are temporary as i do numerous things like (reset usb, computer, etc).  i'm not sure what my repro step is, but i'll post it if i can relate it to a cause.
0 Kudos
Reply

3,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Thucydides on Thu Oct 21 22:57:52 MST 2010
As for download stoppage at 57%, now I'm assuming the problem is caused by driver.
Since when stoppage occurs at 57%, error message appears and shown as
"your drivers may not have finished loading", "Timeout waiting for LPC-Link v1.1 to initialize"
"No emulator or board available. This could be because it is unpowered, unconnected or already in use".  So I tried to re-install driver "USB Deveice with DFU Capabilities" but in vain.
How could I solve the driver problem??

As reference, I wrote post-build step command like following.
Are there are something to correct?

arm-none-eabi-size ${BuildArtifactFileName}; arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin; checksum -p ${TargetChip} -d ${BuildArtifactFileBaseName}.bin; arm-none-eabi-objdump -S ${BuildArtifactFileName} >${BuildArtifactFileBaseName}.lss;
arm-none-eabi-objcopy -O ihex ${BuildArtifactFileName}  ${BuildArtifactFileBaseName}.hex;

Thanks,
Thucydides
0 Kudos
Reply