linux下jlink的使用,这里是使用官方提供的linux下的beta版
到www.segger.com下载http://www.segger.com/cms/jlink-software.html?step=1&file=JLinkLinux_422
那个submit serial number可以胡乱输入一些字母!
解压:
tar xvzf JLink_Linux_V422.tgz
需要这几个lib:library libusb libreadline,一般默认安装了。
安装共享lib:
让动态链接库为系统所共享:
ldconfig
复制到/usr/bin/
cp JLinkGDBServer /usr/bin/
cp JLinkExe /usr/bin/
使能普通用户权限运行JLinkExe:
cp 45-jlink.rules /etc/udev/rules.d/
Make sure that you are member of the group “plugdev”
usermod -a -G plugdev Username
这样之后就可以直接使用:
JLinkExe
以下是在我这里运行的结果:
crazyleen@crazyleen-laptop:~$ JLinkExe
SEGGER J-Link Commander V4.22 (’?’ for help)
Compiled Dec 17 2010 17:41:09
DLL version V4.22, compiled Dec 17 2010 17:41:06
Firmware: J-Link ARM V8 compiled Dec 16 2010 20:21:29
Hardware: V8.00
S/N: 20100214
Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
VTarget = 3.274V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: CP15.0.0: 0x41129200: ARM, Architecure 4T
Info: CP15.0.1: 0x0D172172: ICache: 16kB (64*8*32), DCache: 16kB (64*8*32)
Info: Cache type: Separate, Write-back, Format A
Found 1 JTAG device, Total IRLen = 4:
#0 Id: 0x0032409D, IRLen: 04, Unknown device
Found ARM with core Id 0x0032409D (ARM9)
JTAG speed: 100 kHz