Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
Can't use MultiLink FX with KDS 2.0 on Ubuntu Linux
Massimiliano P. Dec 13, 2016 at 06:13 AM (06:13 hours)
Staff: Takao Y.

  • My Ubuntu Linux 16.10 refuse to show the port for Multilink debugger.




    Comments

  • I'm trying to use the P&E Micro Multilink FX from KDS 2.0 on my dev PC running Ubuntu Linux 16.10 64bits.

    I installed the driver (PemicroLinuxDrivers_2015_02_02.tar.gz) which reported "P&E Install has been a success" (it also reported "udevcontrol command not found", but I guess that's ok).

    Also I convinced KDS2.0 to install the GDB Server by making KDS point to the http://www.pemicro.com/eclipse/updates web site and install the PE GDB Server (I had to do this from my root account, which is not the one I use for daily work).

    After I enter the the debug configuration on KDS, I set the Multilink debugger on the debugger panel, but the Port drop down list is disabled and pressing "Refresh" yields no result.

    Here's the dmesg output for Multilink:

    [ 1281.608058] usb 2-1.3: new high-speed USB device number 10 using ehci-pci
    [ 1281.721244] usb 2-1.3: New USB device found, idVendor=1357, idProduct=0503
    [ 1281.721248] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1281.721250] usb 2-1.3: Product: USB-ML-ARM (FS) Rev B
    [ 1281.721253] usb 2-1.3: Manufacturer: P&E Microcomputer Systems
    [ 1281.721254] usb 2-1.3: SerialNumber: PE5656049


    Here's the output of pegdbserver_console -showhardware:

    P&E GDB Server for Arm(R) devices, Version 6.19.00.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_2.7.5.201612082022/lin/gdi/unit_ngs_arm_internal.so ... Done.

    Command line arguments: -showhardware

    Could you give me some advice on getting the debugger working? Thank you.

    All the Best

    --
    Max

  • Greetings,

    In a console if you typed 'lsusb' do you see the multilink listed?
    From my experience, KDS works with 14.04 without any problems.

    Within the KDS directory, go into pemicro/drivers/libusb_64_32 and run setup.sh.

    We will investigate to see if Ubuntu 16.10 can be supported by KDS and our drivers.


    Takao Yamada

  • Hi Takao,
    lsusb gives (among other lines):

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

    Also ran the setup.sh in the directory you stated (it looks like the same in the driver package I downloaded from PE Micro website). It reported "P&E Install has been a success" (with lot of stars :-)).
    Still I can't get the port value in the KDS debug configuration/debugger window.

    Do you think it is a problem of Ubuntu version?
    Thank you.

    Best Regards
    --
    Max

  • Hi Takao,
    do you think the cause for my problem is that your drivers do not support Ubuntu 16.10? Or mine it is just an unsupported configuration (that could possibly work, or not). Thank you.

    Best Regards

  • Greetings,

    I have not given Ubuntu 16.10 a try yet. But I did have troubles with Ubuntu 15.04 when trying to install KDS or S32 IDE software from NXP and getting the drivers to work.

    We hope to look into this later this month to see if we can support the newer Linux operating systems.


    Takao Yamada

  • Hi Takao,
    any news about this?
    A colleague of mine managed to get the multilink working on his linux by recompiling the kernel and forcing USB to stick with 2.0 (and not trying 3.0). He has an Ubuntu 15.something. Do you think this is the same issue?

    Have you any advice for me to work in the meantime? (I am pretty stuck and supposed to use this for my job). Thank you.

    Best Regards

  • Greetings,

    Sorry we do not have the resources to look into this right now. I do have Ubuntu 15.04 working with our drivers and NXP's S32 software so it is possible without making any kernel changes. It could be that your computer and BIOS is attempting USB 3.0 so you may want to check your BIOS and USB settings to change that. I will be able to get the resources late next week to look into this.


    Takao Yamada

  • Greetings,

    I was able to use my multilink universal hardware on Ubuntu 16.04 64-bit without any issues. No tricks needed to get it working.

    I have not been successful in installing Ubuntu 16.10 on a virtual machine to test it out. It keeps stalling and never recovering.


    Takao Yamada

    • Hi Takao,
      thank you for having looked into this. Unfortunately your test results leaves me quite in the dark - I also tried, as you suggested to fix USB2.0 in BIOS settings, without success. Moreover with this setting, lsusb doesn't list the Multilink universal.
      Is there anywhere in the system I can look to gather information about why I can't use the debugger from KDS?
      Do you recommend a different debugger to use Multilink? Thank you.

      Best Regards
      --
      Max

  • Greetings,

    First disconnect your multilink then within KDS installed directory, look for the drivers folder -> libusb_64_32 -> and run "sh ./setup.sh" as sudo. This should reinstall the drivers on your computer. Then try lsusb again to see if the multilink shows up.


    Takao Yamada

  • Done that, I see the debugger in lsusb:

    apagani@tcn-del-5svf132 /opt/Freescale/KDS_2.0.0/pemicro/drivers/libusb_64_32 $ lsusb
    Bus 002 Device 005: ID 413c:2113 Dell Computer Corp.
    Bus 002 Device 006: ID 1357:0503 P&E Microcomputer Systems USB-ML-12 HCS08/HCS12 Multilink
    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 007: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
    Bus 003 Device 006: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    and it is reported by dmesg:
    [112196.128078] usb 2-1.2: new high-speed USB device number 6 using ehci-pci
    [112196.236920] usb 2-1.2: New USB device found, idVendor=1357, idProduct=0503
    [112196.236922] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [112196.236924] usb 2-1.2: Product: USB-ML-ARM (FS) Rev B
    [112196.236925] usb 2-1.2: Manufacturer: P&E Microcomputer Systems
    [112196.236925] usb 2-1.2: SerialNumber: PE5656049

    But still it doesn't show up in KDS (Port: is blank, even after repeatedly pressing Refresh).

    Any idea? I'm lost in the dark.
    Best

  • Greetings,

    Do you know if this multilink is actually in good condition? Like if you swapped the multilink with your colleague's is he/she able to see yours? Are you able to see his/her multilink?

    Are you using any kind of USB hub? If so, is it externally powered USB hub? Try connecting directly to your computer instead. Also, try other USB ports if available.

    Are you using any USB isolators? Anything else out of the ordinary?


    Takao Yamada

  • Hi Takao,
    the debugger is actually working on a different PC with an older Ubuntu version.
    There is no USB hub, and the debugger is connected directly to the PC. The configuration is really basic (PC and debugger with an A-B USB cable). The same hardware configuration used to work with Linux Mint 16 (which is an Ubuntu derivative).
    Is there a direct way to connect to the debugger bypassing the KDS IDE? Maybe we can get some insights of the problem.

    Best
    --
    Max

  • Greetings,

    The pegdbserver_console is really the only way in Linux to bypass the KDS IDE. And I know you have already tried that, though you may want to try again to see if anything has changed. We currently do not have many Linux solutions so there are only a few things to try out.

    Technically we only support Ubuntu, CentOS, Debian, and older RedHat flavors. What I can try is create a virtual machine with Mint 16 and see if I get the same problem.


    Takao Yamada

  • I have the same problem!
    I think using Ubuntu 16.10 was working fine. Last time in april I was able to use the P&E multilink.
    In may I updated to Ubuntu 17.04 and now I try to use it again mit the Port is not recognized!

    But the Multilink is listed in lsusb
    Bus 003 Device 007: ID 1357:0503 P&E Microcomputer Systems USB-ML-12 HCS08/HCS12 Multilink


    Can someone help??

Add comment


   Want to comment? Please login or create a new PEMicro account.







© 2017 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement