pemicro jtag KDS Linux

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

pemicro jtag KDS Linux

2,040 Views
maiden
Contributor I

Hello, i am unable to use my pemicro multilink in linux:

3.16.0-29-generic #39-Ubuntu SMP Mon Dec 15 22:27:29 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

 

When trying to debug from KDS, i get this message:

KDS:

P&E GDB Server, Version 5.13.02.00

Copyright 2014, P&E Microcomputer Systems Inc, All rights reserved

 

Loading library /opt/Freescale/KDS_2.0.0/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.1.7.201410171532/lin/gdi/unit_ngs_arm_internal.so ... Done.

 

Command line arguments: -device=K10DX128 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port= -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0 

Device selected is k10dx128

PE-ERROR: Unable to auto-detect debug hardware. Please specify on the command-line. Halting.

 

The Port setting in the debug settings is grayed out, so i am unable to set the port there. How do i find what port to specify? why is this not detected?

 

lsusb:

Bus 002 Device 015: ID 1357:0503 P&E Microcomputer Systems USB-ML-12 HCS08/HCS12 Multilink

 

dmesg:

[10404.517945] usb 2-2: USB disconnect, device number 14

[10406.059627] usb 2-2: new high-speed USB device number 15 using xhci_hcd

[10406.188275] usb 2-2: New USB device found, idVendor=1357, idProduct=0503

[10406.188285] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[10406.188289] usb 2-2: Product: USB-ML-ARM (FS) Rev B

[10406.188293] usb 2-2: Manufacturer: P&E Microcomputer Systems

[10406.188297] usb 2-2: SerialNumber: PE5655845

 

checking for hardware:

./pegdbserver_console -showhardware

 

P&E GDB Server, Version 5.13.02.00

Copyright 2014, P&E Microcomputer Systems Inc, All rights reserved

 

Loading library /opt/Freescale/KDS_2.0.0/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.1.7.201410171532/lin/gdi/unit_ngs_arm_internal.so ... Done.

 

Command line arguments: -showhardware

Labels (1)
Tags (4)
0 Kudos
6 Replies

955 Views
maiden
Contributor I

Same issue in Ubuntu 15.04, any input?

0 Kudos

955 Views
maiden
Contributor I

I am running Ubuntu 14.10,

0 Kudos

955 Views
takaoyamada
Contributor IV

Greetings,

Try reinstalling your P&E drivers. You can either download it from this link, or find the drivers already within your KDS directory -> pemicro-> drivers -> libusb_64_32 -> "sudo sh setup.sh". (Note, you need to install KDS and P&E drivers as admin privileges):

http://www.pemicro.com/downloads/download_file.cfm?download_id=294

If your Port setting shows nothing, try clicking on refresh and browse using the dropdown box. If nothing shows up, then there is still a driver issue. Note, that KDS has been tested under Ubuntu 14.04 64bit, but has not been confirmed under Ubuntu 14.10. Though I doubt that is the problem.

Some questions:

1) Are both yellow and blue LED lit on the multilink? Both must be lit for it to work. Blue indicates drivers are good. Yellow indicates target processor is powered.

2) Are you using an external USB hub? If so, switch to using direct connection to the computer.

3) Are you running a VM of Linux, or native Linux machine?

Takao Yamada

P&E Microcomputer Systems

0 Kudos

955 Views
maiden
Contributor I

I have already tried to reinstall with drivers from the pemicro homepage, i have also verified that the correct libusb is linked in my lib folde

When i press the refresh button, the button stays "pressed" until i press somewhere else.

1. Yes they are both lit.

2. No

3. No, Native Linux.

I have been playing around with the udev rules to see if that might be the cause, but have not managed to get it to work yet.
I have also written a forumpost with the same question on the pemicro forum.

0 Kudos

955 Views
takaoyamada
Contributor IV

In the P&E forum, another customer claims that in Ubuntu 14.04 worked for him but has difficulty using Ubuntu 14.10.

Is there any chance you have another computer with Ubuntu 14.04 and see if that makes a difference? Currently KDS has support up to CentOS v6.4 and up to Ubuntu 14.04 so anything outside of that we cannot claim it will work.

Takao Yamada

P&E Microcomputer Systems

0 Kudos

955 Views
maiden
Contributor I

I have now verified that it works in 14.04 but NOT in 14.10.

I made a clean ubuntu 14.04 install and then installed KDS 2.0.0-1 and then PemicroLinuxDrivers_2012_09_06 and it works like a charm!
Its very strange, because lsusb and dmesg gives the same results.

Is there any way i can help debug to get this to work in ubuntu 14.10?

0 Kudos