[SOLVED]J-Link on Ubuntu 12.04

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED]J-Link on Ubuntu 12.04

    Hello.
    I've got a problem with JLinkExe utility under Ubuntu 12.04 precise
    $ uname -r -v -p -i
    3.2.0-22-generic-pae #35-Ubuntu SMP Tue Apr 3 20:37:36 UTC 2012 i686 i386
    When I try to run JLinkExe utility over ./start script, the utility can't find J-Link
    $ ./start
    SEGGER J-Link Commander V4.50i ('?' for help)
    Compiled Jun 22 2012 19:00:38
    Can not connect to J-Link via USB.
    J-Link>
    -----------------------------------------------------------------------
    Log of utility is following:
    $ cat JLink.log

    TB6FD96C0 000:000 SEGGER J-Link V4.50i Log File (0000ms, 0000ms total)
    TB6FD96C0 000:000 DLL Compiled: Jun 22 2012 19:00:36 (0000ms, 0000ms total)
    TB6FD96C0 000:000 Logging started @ 2012-07-02 11:26 (0000ms, 0000ms total)
    TB6FD96C0 000:000 JLINK_SetWarnOutHandler(...) (0000ms, 0000ms total)
    TB6FD96C0 000:000 JLINK_OpenEx(...)
    ***** Error: Can not connect to J-Link via USB. returns "Can not connect to J-Link via USB." (0002ms, 0002ms total)
    TB6FD96C0 050:326 JLINK_ClrError() (0000ms, 0002ms total)
    TB6FD96C0 050:326 JLINK_Close() (0000ms, 0002ms total)

    The same version 4.50 works perfect on previous Ubuntu versions such us Lucid and Karmic
    Thanks.
  • Try the following 45-jlink.rules (/etc/udev/rules.d) and reconnect the J-Link:

    Source Code

    1. SUBSYSTEM=="usb", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="010[1234]", MODE="664", GROUP="plugdev"


    The original udev-rules-file seems not to work with actual udev version.
  • CHeitkamp wrote:

    Try the following 45-jlink.rules (/etc/udev/rules.d) and reconnect the J-Link:

    Source Code

    1. SUBSYSTEM=="usb", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="010[1234]", MODE="664", GROUP="plugdev"


    The original udev-rules-file seems not to work with actual udev version.
    CHeitkamp, I was having some trouble recognising my J-Link in a Ubuntu 12.10 virtualbox instance.
    This fixed it perfectly.
    Thanks
  • Hi,

    We just released V4.62 of the J-Link software for Linux. This version comes with an updated 45-jlink.rules.
    This should solve the problem.


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.