zullge_ 2014-12-29 13:07 采纳率: 0%
浏览 2610

在Ubuntu中使用Jlink出现问题

确认J-Link在windows下工作良好能运行JLinkExe和JLinkGDBsever,然后在新的ubuntu发行版上运行./JLinkExe会出现
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啊,各位大神求助

  • 写回答

1条回答 默认 最新

  • oyljerry 2014-12-29 16:11
    关注

    是不是ubuntu上对USB支持有问题

    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大