root@zullge-virtual-machine:/opt/SEGGER/JLink# ./JLinkExe
SEGGER J-Link Commander V4.94h ('?' for help)
Compiled Nov 28 2014 17:54:18
Can not connect to J-Link via USB.
J-Link>
查看USB挂载情况如下
root@zullge-virtual-machine:/opt/SEGGER/JLink# lsusb
Bus 002 Device 005: ID 1366:0102 SEGGER
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
可以看到segger Jlink 已经挂载 。
使用Jlink的命令帮助:
J-Link>ShowEmuList
J-Link[0]: Connection: USB, Serial number: 123456, ProductName: J-Link
J-Link>
于是看到JLINK的USB串口号为123456
继续使用USB命令如下:
J-Link>usb 123456
Connecting to J-Link via USB (Port: 123456)
Emulator with USB serial number 123456 selected.
DLL version V4.94h, compiled Nov 28 2014 17:54:16
Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
Hardware: V8.00
S/N: 17935099
Feature(s): RDI,FlashDL,FlashBP,JFlash
VTarget = 3.325V
Info: TotalIRLen = 9, IRPrint = 0x0011
Found 2 JTAG devices, Total IRLen = 5:
#0 Id: 0x2B900F0F, IRLen: 04, IRPrint: 0x0, ARM ETB
#1 Id: 0x07B76F0F, IRLen: 05, IRPrint: 0x1, ARM1176 Core
ARM11 identified.
Target interface speed: 100 kHz
J-Link>
发现这个我在win7下直接运行JLinkExe的如果一致说明在Ubuntu下是已经Jlink连接到我的6410目标板了。
但为什么我在Ubuntu下直接运行./JLinkExe 会连不上,运行./JLinkGDBsever
出现如下结果:
SEGGER J-Link GDB Server V4.94h Command Line Version
JLinkARM.dll V4.94h (DLL compiled Nov 28 2014 17:54:16)
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
Generate logfile: off
Verify download: off
Init regs on start: on
Silent mode: off
Single run mode: off
Target connection timeout: 5000 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: unspecified
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
Connecting to J-Link failed. Connected correctly?
GDBServer will be closed...
Shutting down...
GDB Server closed due to a J-Link connection failure
现在急需要在ubuntu下能够启动GDB Server啊,各位大神求助
2 个解决方案
#2
换低版本的 SEGGER 然后把jlink速率调到4k 不能太高
#1
请参考《
Jlink调试S5PV210》
#2
换低版本的 SEGGER 然后把jlink速率调到4k 不能太高