[SOLVED]J-Link Commander without sudo

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

  • [SOLVED]J-Link Commander without sudo

    Hi All,

    I've been using J-Link gdb server and commander with eclipse in windows for sometime, and decided to move in to Ubuntu 12.04 LTS. I have followed the exact instructions specified in read-me file, enclosed with the Linux software package. My problem is that the JLinkExe only works with sudo rights.

    In other words,

    If I execute it as a regular user,

    samr@simpson:~/Downloads/JLink_Linux_V441g$ ./JLinkExe
    SEGGER J-Link Commander V4.41g ('?' for help)
    Compiled Jan 27 2012 19:11:22
    Can not connect to J-Link via USB.
    J-Link>

    If I execute as sudo,

    samr@simpson:~/Downloads/JLink_Linux_V441g$ sudo ./JLinkExe
    SEGGER J-Link Commander V4.41g ('?' for help)
    Compiled Jan 27 2012 19:11:22
    DLL version V4.41g, compiled Jan 27 2012 19:11:21
    Firmware: J-Link ARM V8 compiled Apr 12 2012 20:16:53
    Hardware: V8.00
    S/N: - XXXXXXXXX
    VTarget = 3.261V
    Info: TotalIRLen = 9, IRPrint = 0x0011
    Info: Found Cortex-M3 r1p1, Little endian.
    Info: TPIU fitted.
    Info: FPUnit: 6 code (BP) slots and 2 literal slots
    Found 2 JTAG devices, Total IRLen = 9:
    #0 Id: 0x3BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)
    #1 Id: 0x06420041, IRLen: 05, Unknown device
    Cortex-M3 identified.
    JTAG speed: 100 kHz
    J-Link>

    I'm a member in plugdev group as instructesamrd in readme, and "45-jlink.rules" provided with this J-Link software package

    is in /etc/udev/rules.d/

    Just wanted to know the point which I missed, to execute it as a regular user..

    Any help would be kindly appreciated.

    Kindly,
    SamR

    PS -
    samr@simpson:~/Downloads/JLink_Linux_V441g$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 005: ID 05e1:0501 Syntek Semiconductor Co., Ltd DC-1125 Webcam
    Bus 002 Device 005: ID 03eb:3301 Atmel Corp. at43301 4-Port Hub
    Bus 003 Device 002: ID 045e:0083 Microsoft Corp. Basic Optical Mouse
    Bus 004 Device 002: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter
    Bus 002 Device 006: ID 0483:3744 SGS Thomson Microelectronics STLINK Pseudo disk
    Bus 002 Device 008: ID 1366:0101 SEGGER J-Link ARM

    samr@simpson::~/Downloads/JLink_Linux_V441g$ members plugdev
    usbmux samr

    Ubuntu 12.04 LTS

    The post was edited 1 time, last by samr ().

  • I have this problem too!

    UPDATE: replace your 45-jlink.rules file with this one:

    Source Code

    1. SUBSYSTEM=="usb", ATTR{idVendor}=="1366", ATTR{idProduct}=="0101", MODE="0666", GROUP="plugdev"




    So, depending on your device you might need to change the ATTR{idProduct} to match your specific product.

    The post was edited 3 times, last by Starefossen ().

  • Hi,

    45-jlink.rules has been updated in V4.62 of the J-Link Linux package.


    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.