搜索
bottom↓
回复: 8

Jlink在linux下的使用,不知是openjtag可以在linux下使用

[复制链接]

出0入0汤圆

发表于 2012-9-17 12:03:01 | 显示全部楼层 |阅读模式
本帖最后由 qinpenglai 于 2012-9-17 12:02 编辑

平台ubuntu11.10,不是虚拟机,所以你懂得。
一下为官方的方法
Requirements

============

Please make sure that you have installed libusb as this is necessary for

the J-Link to work via USB.

You can install it the following way for all apt-able Linux derivates:



apt-get -update

apt-get -install libusb



This will update the apt-get package resources and download and install

libusb. Please unplug and replug your J-Link after successful

libusb installation.



You also need to make sure the libreadline is installed on your system.

This library is needed by the JLinkExe utility.



Installing the shared library

=============================

To install the delivered shared library in a system directory perform the following

steps as root:

- Copy the library in a system directory for example /usr/lib

  cp libjlinkarm.so.* /usr/lib



- Update the cache of dynamic loader and setup symbolic links by running:

  ldconfig



Running JLinkExe with standard user rights

==========================================

In order to run JLinkExe with standard user rights you have to do the following:



- Place the rule file "45-jlink.rules" provided with this J-Link software package

  at /etc/udev/rules.d/



- Make sure that you are member of the group "plugdev"



- If the group "plugdev" does not exist, you have to create it:

  Command line:

  groupadd plugdev                      // Creates new group "plugdev"

        usermod -a -G plugdev <Username>      // Appends user <Username> to the group "plugdev"



- Restart your system

以上内容为官方给的标准安装方法

//linux的系统命令可以到linux系统管理里面去看,记住几个常用的就行
下面是具体步骤
先演示一下最终结果

        1.检查命令是否可用  JLinkExe
        2.插上Jlink,查看是否链接上"lsusb"
        3.测试Jlink,JLinkExe

1.解压到/usr/local目录下,我的arm编译软件也安装到这里

2.安装libusb
             sudo apt-get install libusb-dev
3.复制库到系统目录/usr/lib
            # cp libjlinkarm.so.4 /usr/lib
            # cp libjlinkarm.so.41.7 /usr/lib
            # cp 45-jlink.rules /etc/udev/rules.d/
4.把自己添加到plugdev中
    ubuntn默认自己plugdev中的用户
   如果不是或不确定
               如果有plugdev用户组执行 usermod -a -G plugdev <你的用户名>  把自己加到plugdev中
               如果没有plugdev用户组先创建,再把自己加进去。
5.把命令添加到环境变量里面
    需该/etc/envirtonment按照文件给的例程写
6.重新启动






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

阿莫论坛20周年了!感谢大家的支持与爱护!!

月入3000的是反美的。收入3万是亲美的。收入30万是移民美国的。收入300万是取得绿卡后回国,教唆那些3000来反美的!

出0入0汤圆

 楼主| 发表于 2012-9-17 12:05:51 | 显示全部楼层
jlink便宜,能盗版,支持。openjtag的usb接口的仿真器不公开,贵。联想的笔记本都能装express card的扩展出并口来,并口的openjtag可以自己做。

出0入0汤圆

发表于 2012-9-17 13:44:15 | 显示全部楼层
本帖最后由 lryylryy 于 2012-9-17 13:46 编辑

openocd不是一直都支持jlink吗,不知道openjtag用的是什么软件?

出0入0汤圆

 楼主| 发表于 2012-9-17 15:26:09 | 显示全部楼层
openjtag用的是oflash

出0入0汤圆

发表于 2012-9-17 22:46:21 | 显示全部楼层
下载了,谢谢楼主

出215入118汤圆

发表于 2012-9-18 06:45:46 来自手机 | 显示全部楼层
openjtag基本是公开的,所有使用FT2232的,都类似。

出0入0汤圆

发表于 2013-10-18 16:20:58 | 显示全部楼层
学习了,不晓得行不
一会儿去试试

出0入0汤圆

发表于 2015-12-5 16:44:10 | 显示全部楼层
有人用过openjtag么?http://www.openjtag.org/

出0入0汤圆

发表于 2015-12-5 16:46:42 | 显示全部楼层
这个是购买url
http://www.artekit.eu/products/debug/ak-openjtag/
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-25 17:45

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表