LPCXpresso linux version - could not connect to core

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

LPCXpresso linux version - could not connect to core

1,006 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Badman on Mon Sep 01 10:50:02 MST 2014
Hello,

I can not program using the LPC-Link 2 LPC4088 and LPC1768 in LPCXpresso v7.3.0 [Build 186] - Linux version, Under the windows version working properly. When I want to program the LPC4088 using crt_emu_cm_redlink -flash-load-exec "/home/badman/Programowanie/LPC4088/NOR_FLASH/Debug/NOR_FLASH.axf" -g -2 -vendor=NXP -pLPC4078 -flash-driver=LPC177x_8x_407x_8x_512.cfx have the message:
Ni: LPCXpresso RedlinkMulti Driver v7.3 (Jul  1 2014 11:32:11 - crt_emu_cm_redlink build 130)
Pc: (  0) Reading remote configuration
Pc: (  5) Remote configuration complete
Ed:02: Failed on connect: Ee(36). Could not connect to core.
Et: Emu(0): Conn&Reset. Was: None. DpID: 00000000. CpuID: 00000000. Info: (null)
Error 0: (null)
Last sticky: 0. AIndex: 0
No MemAp selected
Pc: (100) Target Connection Failed


Here's a message from dmesg:

[ 1460.612996] usb 1-3: new high-speed USB device number 9 using ehci-pci
[ 1460.728773] usb 1-3: New USB device found, idVendor=c251, idProduct=f001
[ 1460.728884] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1460.728900] usb 1-3: Product: LPC-Link-II CMSIS-DAP
[ 1460.728908] usb 1-3: Manufacturer: Keil Software
[ 1460.728916] usb 1-3: SerialNumber: A000000001
[ 1460.735044] hid-generic 0003:C251:F001.0003: hiddev0,hidraw0: USB HID v1.00 Device [Keil Software LPC-Link-II CMSIS-DAP] on usb-0000:00:12.2-3/input0

0 Kudos
11 Replies

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Sep 04 00:41:00 MST 2014
You can do this through the debugger. Open a memory view onto the memory you wish to save, and then press the Export button in the memory view toolbar. We do not provide any other way to do this through LPC-Link2.

http://www.lpcware.com/content/faq/lpcxpresso/import-export-memory
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Badman on Thu Sep 04 00:29:30 MST 2014
FlashMagic allows read any section of flash and save as an intel hex file. This can be done by using LPC-Link 2 ?
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Sep 04 00:14:29 MST 2014
I don't understand the question. Flash is just memory in the address map.
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Badman on Thu Sep 04 00:08:02 MST 2014
It works, thank you very much for your help.
One more question: how to read the content of flash memory programmed mcu using LPC-Link 2?
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Sep 03 14:10:00 MST 2014
Now that you have correctly installed the product, as described in the user guide, you should be able to run the product as intended. You do not need to use the command line utilities to boot the lpc-link2 - you can just run the IDE and it will automatically boot it, if required.

I suggest that, to get started, you follow the simple tutorial in the user guide.

Important Note:
You should not run LPCXpresso as root. It is not required and may well cause problems.
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Badman on Wed Sep 03 11:53:40 MST 2014
I missed the beginning of libusb 32 bit:
[root@localhost bin]# ./boot_link2
Looking for DFU devices...
/usr/local/lpcxpresso_7.3.0_186/lpcxpresso/bin/dfu-util: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
No bootable LPC-Link2 found


When I installed it:
[root@localhost bin]# ./boot_link2
Looking for DFU devices...
dfu-util -d 0x1fc9:0x000c -c 0 -i 0 -t 2048 -R -D /usr/local/lpcxpresso_7.3.0_186/lpcxpresso/bin/LPC432x_Redlink_V4_46.bin.hdr
Booted LPC-Link2 (0x1fc9:0x000c) with LPC432x_Redlink_V4_46.bin.hdr


But LPCXpresso run with root privileges, still not sees LPC-Link 2. Here are the messages from the console LPCXpesso:
[Started server]
[Closed]
[Started server]
[Closed]
[Started server]
[Connected on port 3025]
redlink>
redlink>
redlink>
redlink>
redlink>
redlink>
redlink>ProbeList
No probes found
redlink>
redlink>
redlink>ProbeList
No probes found


--EDIT

I have Fedora 20 and messages from lsusb:
Bus 002 Device 002: ID 064e:d250 Suyin Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0bc2:2312 Seagate RSS LLC 
Bus 001 Device 009: ID 1fc9:000c NXP Semiconductors 
Bus 001 Device 008: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Sep 02 12:23:14 MST 2014
Do not use dfusec. Once you have removed the jumper, either let the IDE boot it for you, automatically, or from the command line run boot-link2. You do not need to use windows to do this...
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Badman on Tue Sep 02 11:50:21 MST 2014
I think I deleted the USB DFU in LPC-Link 2. When no jumper on JP1 or jumper on JP1 in the LPC_Link2_Config_tool still NO_CONN :(
I attach NO_CONN.png

Is it possible to re-program the LPC-Link 2 to USB DFU ?
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Sep 02 11:31:39 MST 2014
So, what happens when you run boot-link2?

Also, please run lsusb instead of dmsg.
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Badman on Tue Sep 02 10:39:20 MST 2014
No jumper JP1 message from dmesg:

[ 1192.780659] usb 3-3.1: new full-speed USB device number 4 using ohci-pci
[ 1192.863436] usb 3-3.1: not running at top speed; connect to a high speed hub
[ 1192.875449] usb 3-3.1: New USB device found, idVendor=1fc9, idProduct=000c
[ 1192.875465] usb 3-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1192.875473] usb 3-3.1: Product: LPC
[ 1192.875481] usb 3-3.1: Manufacturer: NXP
[ 1192.875488] usb 3-3.1: SerialNumber: ABCD


In attach snapshot of LPCXpresso.
0 Kudos

829 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Sep 01 13:12:00 MST 2014
What distribution/version of Linux are you using? I presume you follow the install instructions in the User Guide or FAQ at:

http://www.lpcware.com/content/faq/lpcxpresso/linux-installation

That aside, I see you are using your LPC-Link2 via CMSIS-DAP. It would be interesting to know if you see the same behaviour when using in 'Redlink' mode. This can be accomplished by removing the link from JP1:

http://www.lpcware.com/content/faq/lpcxpresso/lpc-link2-support
http://www.lpcware.com/lpclink2

...and using the boot-link2 script provided in the product.

Regards,
LPCXpresso Support
0 Kudos