lpcware

lpc-link2 "connection refused" linux

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by FlySnake on Fri Oct 11 05:42:01 MST 2013
openSUSE11.4 32-bit
LPCXpresso 6.0.4
LPC-Link 2

First, when starting debug as normal user (with right udev rules) I get "Premature end of file.:null (Line:1, Col:1)" error (attached image). I click OK and it seems like going on.
After that LED1 on lpc-link2 turns off of and lpcxpresso shows error "Connection refused". And lpc-link's device ID changed from 1fc9:000c to 21bd:0006.
I've made symlink to libdev as shown in faq http://www.lpcware.com/content/faq/lpcxpresso/connection-refused-linux but it doesn't work. (and in my case this lib is located in /lib/libudev.so.0).
Same thing as root, but without "Premature end of file" error.

As suggested here http://www.lpcware.com/content/forum/debugger-v5v6-does-not-load-redlink-firmware-lpc-link2

./dfu-util -d 1FC9:000C -c 0 -t 2048 -R -D LPC432x_Redlink_V3_27.bin.hdr
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Opening USB Device 0x1fc9:0x000c...
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [0x1fc9:0x000c] devnum=34, cfg=0, intf=0, alt=0, name="DFU"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0800
bytes_per_hash=471
Starting download: [##################################################] finished!
unable to read DFU status


Latest libusb (1.0.16) doesn't help

Any ideas?

Outcomes