Jllink-linux under Installation

Source: Internet
Author: User

1. Download jlink-linux-v422a.tgz, unzip, install.
1.1 To view the Readme document, a step-by-step installation of the documentation.
1.1.1 Installation Libusb
sudo apt-get-install Libusb-dev
1.1.2 Installing the ReadLine Library
sudo apt-get-install libreadline5
1.1.3 Copy the Jlink library file to the System library directory, the-D option for soft links
sudo cp-d lib*/usr/lib/

1.1.4 seems to be: Update the dynamic loader's cache and then create symbolic links
sudo ldconfig
1.1.5 Jlink The rules files required for normal operation to the system rules file configuration directory
sudo cp 45-jlink.rules/etc/udev/rules.d/
1.1.6 adding the current user to the Plugdev group
sudo usermod-a-G Plugdev <Username>
1.1.7 Restart System
sudo reboot
1.1.8 run to directory./jlinkexe:
[Email protected]:~/embedded/jlink/jlink_linux_v422a$./jlinkexe
SEGGER j-link Commander V4.22 ('? ' for help)
Compiled APR 5 2011 13:54:55
Can not connect to J-link via USB.
J-link>exit

1.1.9 Although the installation was successful, but the connection was unsuccessful,
It has been tried to run as root, as if adding the current user to the root group is useless.
At the beginning, remember to plug in multiple jllink several times. The results are as follows:
[Email protected]:~/embedded/jlink/jlink_linux_v422a$./jlinkexe

SEGGER j-link Commander V4.22 ('? ' for help)

Compiled APR 5 2011 13:54:55

Can not connect to J-link via USB.
J-link>exit


[Email protected]:~/embedded/jlink/jlink_linux_v422a$ sudo./jlinkexe
SEGGER j-link Commander V4.22 ('? ' for help)
Compiled APR 5 2011 13:54:55
DLL version V4.22, compiled APR 5 2011 13:54:52
Firmware:j-link ARM V8 compiled DEC 6 2011 18:57:44
hardware:v8.00
S/N: 99999994
Feature (s): Rdi,flashdl,flashbp,jflash,gdbfull
Vtarget = 0.000V
J-link>speed 10000
JTAG speed:9600 KHz
J-link>

1.1.10 renamed Jlinkexe and Jlinkgdbserver for ease of entry and operation
After that, move to the/usr/bin directory:
MV Jlinkexe Jlink
MV Jlinkgdbserver Jlink-gdb-server
sudo cp Jlink/usr/bin
sudo cp Jlink-gdb-server/usr/bin

After the modification, the command can be run in any directory, and has the full effect:
[Email protected]:~$ sudo jlink
[sudo] password for i:
SEGGER j-link Commander V4.22 ('? ' for help)
Compiled APR 5 2011 13:54:55
DLL version V4.22, compiled APR 5 2011 13:54:52
Firmware:j-link ARM V8 compiled DEC 6 2011 18:57:44
hardware:v8.00
S/N: 99999994
Feature (s): Rdi,flashdl,flashbp,jflash,gdbfull
Vtarget = 0.000V
J-link>

1.1.11 Precautions
1) According to the online circulation and through their own experiments, jlink version can not be too high, excessive use,
will lead to your piracy Jlink strike, the demarcation line is around 4.3, 4.22a can work normally.
The version is too high, causing the jlink to fail under Win and Linux after upgrading the firmware. Solve
The method is to re-brush the Jlink firmware.
2) Brush firmware:
Need to download Jlink chip firmware burning tool online, but also to download the lower version of the Jlink
Firmware software. On the Internet to find tutorials step by step to do, it is not very troublesome.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.