运用JLink在Linux系统下进行编程调试(linux下jlink)

Ever since its invention, JavaScript language has been recognized by more and more developers and is used in more and more scenes. In development, the compiler environment is very important. In the Linux system, JLink debugging is the most commonly used. This article will explore the ways to use JLink in Linux to debug and program.

JLink is the world’s most widely supported and most widely used debug probe. It is connected with the on-chip debugging interface or test pins on the embedded system, and supports target system resource downloads and other operations during debugging. It is especially suitable for smaller, embedded devices with limited flash capacity or RAM resources, or for larger applications with multiple target devices or complex CPUs.

Using JLink under Linux is slightly different from using it under Windows.

First, you need to check the authorized tools installed by your Linux system. Generally two files are needed, one is jlinkexe and the other is jlinkarm. Both of these files need to be put into directory independently.

In the “.bashrc” file in Linux, enter the commands one by one:

export PATH=$PATH:/folder/jlinkexe

export PATH=$PATH:/folder/jlinkarm

Modify the corresponding directory where the two files are stored.

After the installation is completed, it is necessary to re-generate the configuration parameter script. Enter JLink in the terminal and you will see the following information on the screen:

J-Link Commander V6.86t (Compiled Nov 10 2020 16:50:25)

DLL version V6.86t, Compile Date: Nov 10 2020 17:25:17

When you see the above information, the JLink installation and configuration is successful.

In the terminal, enter JLink to enter the programming command interface. Here are some basic operations:

1. Upload a program to the JLink, enter “loadbin “

2. Download a program from JLink to PC, enter “savebin “

3. Opeen and close the gyroscope, enter “h” in the gyroscope open state, return “q” in the close state

4. Set the connection speed, enter “speed ”

In addition, there are many other basic commands. By combining multiple commands, complex operations and debugging can be achieved.

In short, JLink supports a variety of communication protocols and has a wide range of applications. JLink is also a trusted product in the open source market. With its own advantages, JLink can do a very good job in programming and debugging for Linux system.


数据运维技术 » 运用JLink在Linux系统下进行编程调试(linux下jlink)