ubuntu 14.04 lts x64, lpc-link lpc-link2 connection refused and no emulator or board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ubuntu 14.04 lts x64, lpc-link lpc-link2 connection refused and no emulator or board

3,929 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by efiLabs on Thu May 08 00:16:53 MST 2014
friends :

brand new amd x64 setup with fresh install of (k)ubuntu 14.04 lts  lpcxpresso 7.1.1.125 64bit, 32 libraries installed

to keep the installation on the ssd drive, the install path is /usr/lpcxpresso/lpccpresso7.1 .....

a small lpc15xx project compiles on it at about 10x speed compared to company win7-64 bit dell schlepptop with 8 GB

debug problem description :

1st : connection refused ... fixed with symlinks ... sudo ln -sf libudev.so.1 libudev.so.0

2nd : setup sees lpc-link2 in cmsis-dap mode

3rd : does not see lpc-link1 (0x471:0xdf55) or lpc-link2 no-cmsis-dap (1fc9:000c)

without checking permissions, tried to fix it with

cd /usr/local/lpcxpresso/lpcxpresso/bin
sudo chown root crt_emu* dfu-util
sudo chgrp root crt_emu* dfu-util
sudo chmod 6755 crt_emu* dfu-util

thought that all directories s/b root and

found symlink with <user> goup:owner and chown'ed to root as well as Scripts and Flash folder did chown to root

now i'm back to  item 1) connection refused ... retried ... sudo ln -sf libudev.so.1 libudev.so.0 ... didn't fix it

printout
--------------------------------------------------------------
Connection refused

Connection refused
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  at java.net.Socket.connect(Socket.java:579)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.open(Unknown Source)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.<init>(Unknown Source)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.<init>(Unknown Source)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.getRedlinkServer(Unknown Source)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.getRedlinkServer(Unknown Source)
  at com.crt.debugcommon.emulator.common.redlinkserver.RedlinkServerEmuHandler.getRedlinkServerClient(Unknown Source)
  at com.crt.debugcommon.emulator.common.redlinkserver.RedlinkServerEmuHandler.requiresBoot(Unknown Source)
  at com.crt.debugcommon.emulator.linux.AbstractLinuxServerProbe.requiresBoot(Unknown Source)
  at com.crt.debugcommon.emulator.EmulatorsDB.getEmulatorInfo(Unknown Source)
  at com.crt.debugcommon.emulator.EmulatorsDB.getAvailableEmulators(Unknown Source)
  at com.crt.debugcommon.emulator.TargetDiscovery.probeDiscovery(Unknown Source)
  at com.crt.debugcommon.emulator.TargetDiscovery.probeDiscovery(Unknown Source)
  at com.crt.debugcommon.utils.LaunchScriptUtils.getEmulatorInfo(Unknown Source)
  at com.crt.debugcommon.utils.LaunchScriptUtils.init(Unknown Source)
  at com.crt.debugcommon.utils.LaunchScriptUtils.<init>(Unknown Source)
  at com.crt.debugcommon.utils.LaunchScriptUtils.<init>(Unknown Source)
  at com.crt.dsfdebug.dsf.services.TargetDiscoveryService.getTargetDiscovery(Unknown Source)
  at com.crt.dsfdebug.dsf.override.CRTFinalLaunchSequence$TargetDiscoveryJob.runInUIThread(Unknown Source)
  at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
  at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
  at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
  at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
  at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
  at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
------------------------------------------------------

it's quite frustrating to get hung up on a brand new machine with seemingly un-resolvable issues

sorry, i;m not a linux expert, but usually i got most things worked out, except this one

help would be highly appreciated

cheers, efiLabs
0 项奖励
回复
42 回复数

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mubes on Mon May 26 16:09:51 MST 2014
I can confirm that 7.2.0 is also behaving well for me so far (CMSIS-DAP mode) and no longer needs the killall trick to recover the debug interface on occasion.

Regards

DAVE
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by efiLabs on Wed May 21 22:14:36 MST 2014

thanks to the lpcxpresso team :

i installed the new version 7.2.0-153 ... did the 32 bit libs install as suggested in the readme with the lpcxpresso 7.2.0-153 distribution, most were installed already,  and this time a couple were missing and installed ... did the syn-link also suggested and ...

it all works now ... thanks again :)

cheers, efiLabs
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu May 15 12:48:36 MST 2014
I am glad you are finally running.

Note that reading the User Manual may have helped you, as there is a simple tutorial for creating and debugging projects...


0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Thu May 15 12:31:32 MST 2014
okay, I restart debug.
Connect to the PC to LPCX1549 Xpresso V2 revB bord.(firmware is latest)
1) start LPCXPresso (not sudo)
2)Quick window on the click to "Import Project(s)"
3)To the import http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc15xx-packages ,http://www.lpcware.com/system/files/lpcopen_2_08b_lpcxpresso_nxp_lpcxpresso_1549.zip
4)Clilck to the Quick window "Build all projects [Debug]"
5)Project Exploer window to the click to "periph_blinky"
6)Clilck to the Quick window "Debug 'periph_blinky' [Debug]"
7)Connect Exception Reason: Connection refused.

I try all shut down LPCXPresso and $sudo killall -9 redlinkserv

Restart LPCXPresso, and try to 4),5),6).

This is Solved!!!!!!!!!!!!!!

But, I don't know fundamental problem. Before is same this method.

Your questions.
1. Why are you running LPCXpresso as sudo? DO NOT DO THIS.

Ans:I think this trouble occured permission problem, therefore all test the sudo execute.
2. Why are clicking on the Redlink server icon and the pressing Boot Debug Probe? None of this is necessary.

Ans:I had not deep understand debug mode.

Thank you do your co-operation. Thank you for great your support!!!

Best regards,
Kazumichi Aoki,
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu May 15 07:42:18 MST 2014
1. Why are you running LPCXpresso as sudo? DO NOT DO THIS.
2. Why are clicking on the Redlink server icon and the pressing Boot Debug Probe? None of this is necessary

If you are trying to debug, please just press the Debug button in the Quickstart Panel. Everything will be started for you. This is described in the User Manual.

Also, you have not told me what your target it, and how it is connected to your system. i.e. what is the target probe - LPC-Link2? And what is your target MCU?

0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Thu May 15 06:48:17 MST 2014
Okay,
1)start LPCXPresso (sudo)
2)Ctrl +B (build all)
3)Click to the redLinkServer icon
4)Click to the Boot Debug Probe icon
5)Pop up window "Selction Needed" "Select debug probes to boot"
6)I select to Redlink Server.

happen  I was reported problem.
this is all.

please advice to me.
regards,
kazu
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu May 15 06:36:00 MST 2014
Lets take a step back.

Can you please explain EXACTLY what you are doing when you get this error. Please provide step-by-step instructions, including what is in your workspace, and what you have connected to your computer, and which target you are trying to connect to.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Thu May 15 06:34:06 MST 2014
Not running firewall this terminal. Of-cause running WAN router on firewall but not running firewall desktop sysytem.
please look attache file. User mode ps -aux all process running result.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu May 15 06:25:29 MST 2014
Are you running a firewall?
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Thu May 15 06:23:31 MST 2014
ummmm....
not cleard problem. notice mesage is same.
do you have any information?
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu May 15 05:26:00 MST 2014
I think there is a zombie process running that is prevent connection to the debug server.

Please open a Terminal window and type

sudo killall redlinkserv


And then try to debug again.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Thu May 15 04:27:50 MST 2014
Oh, I understand, this Connnect Exception Reason: Connection refused.< this is Japanese "接続を拒否されました”
Please advice. if you have test program, can you send to me? Ex,LED brinking etc. I think maybe more good communication same prg use.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed May 14 23:08:12 MST 2014
So, redlinkserv is running correctly.

When you posted your screenshot with "ConnectException", there were some chinese characters. Can you provide a translation please? This may help us understand the problem.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Wed May 14 17:42:46 MST 2014
this is result. same result super user. this result is normal user. can not wirte raw data, i send to attache file.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed May 14 14:10:42 MST 2014
Please open a terminal and from the bin directory, run
redlinkserv


If it reports an error, then run
strace redlinkserv


And post your results, as a text file.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Wed May 14 11:29:32 MST 2014
my error code can not raw data attach.
reporting from this web site "
Your submission has triggered the spam filter and will not be accepted. If you feel this is in error, please report that you are blocked."

i attach to screen shot.

0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon May 12 23:25:12 MST 2014
Please describe your problem. What error messages?
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kazu_zamasu on Mon May 12 17:18:18 MST 2014
I have same problem.
my environments is following.

$ uname -a
Linux kazu-deverop 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Ubuntu14.04LTS, ThinkPad X201,

I have already install LPCXPresso required lib. But, i have same probrem.
I you need any information, please let me know, as soon as send to you.

Regards,
kazu
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon May 12 07:40:43 MST 2014
Re: Step 5 (3 Connection refused + Null pointer exception). This has been fixed, so you will only get the 1st Connection refused exception. This will be in the next release.

However, these errors will only happen if the correct libraries have not been installed and redlinkserv does not run.

I have been trying to reproduce your problem by repeatedly starting a Debug session on LPC1549 on Ubuntu (note: NOT kubuntu) and have failed. It works every time, without issue.

So, if you have correctly installed all the libraries and made the hard link with
ln -sf libudev.so.1 libudev.so.0

then I don't know what else to suggest.
0 项奖励
回复

2,721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Sun May 11 02:49:58 MST 2014
User Guide:

What's wrong with the version that is supplied in the product (in PDF or help format)? Or perhaps the one available from the download page? I.e. The one for the version of the product you are using.

You have the used the version for LPCXpresso 6, which was released before Ubuntu 13.10 was released?
0 项奖励
回复