搜索
bottom↓
回复: 13

【分享】使用OpenSDA平台作为J-Link调试Kinetis

[复制链接]

出0入0汤圆

发表于 2014-8-30 11:57:41 | 显示全部楼层 |阅读模式
本帖最后由 FSL_TICS_ZJJ 于 2014-9-11 15:29 编辑

使用OpenSDA平台作为J-Link调试Kinetis(Use OpenSDA platform as J-Link to debug Kinetis all series)
http://blog.chinaaet.com/detail/33256
https://community.freescale.com/docs/DOC-95102
中文版:

    想到过使用飞思卡尔的Freedom平台当做昂贵的J-Link调试器吗,好吧,这次给你机会了,呵呵。昨天在去SEGGER官网查资料的时候看到了一个suprise,Segger刚刚为OpenSDA平台release了一个可以兼容Jlink功能的firmware。说白了,就是借用OpenSDA当做J-Link用,当然有部分功能是有所限制的,不过瑕不掩瑜,Jlink的高速、稳定及一些特有的功能一直让接触过它的开发者印象深刻,所以能用low-cost的OpenSDA实现高性能的Jlink实在是让人兴奋,包括在下,哈哈,所以还等什么,赶紧露胳膊抹袖子整整吧,呵呵~
    其实这次SEGGER提供的firmware就是OpenSDA的一个Application(我已经上传到本博客最后的附件中了),类似MSD-APP和DBUG-APP等其他的OpenSDA应用,所以它的使用方法类似,具体可以参考我之前的一篇博客《尝鲜OpenSDA方式调试仿真Freedom平台》http://blog.chinaaet.com/detail/31795.html
    (1)将firmware更新到OpenSDA的平台之后,再回到normal mode,这样就可以把OpenSDA当J-Link用了。将硬件连接好之后,打开J-Link Commander,弹出的窗口如下图所示,看吧,有点如假包换的J-Link味道了吧,呵呵,而且还有正版的S/N序列号哦。
image
    (2)当然在IAR环境下使用它还需要简单的设置几步,如下图所示,建议不使用flash loader而是使用jlink自带的调试下载引擎,更稳定且速度杠杠的,呵呵:
image
image
    (3)一切都准备好之后,就可以按照J-Link的调试方法调试Kinetis了,呵呵。当然有个最大的好处是,借用J-Link的特性,使用OpenSDA也可以支持Live watch了,可以实时更新观察变量,这点灰常灰常给力,如下图:
image
Limitations:
    当然我们也会猜到SEGGER不会那么蠢到自断财路(OpenSDA平台可是非常low-cost的),不然谁还会用那么昂贵的正版J-Link啊,呵呵。所以使用SEGGER提供的这个firmware有以下几点限制:
1)只能用在飞思卡尔平台基于ARM的产品上;
2)只可以调试飞思卡尔的评估板,所以貌似如果用在自己画的板子上可能有问题;
3)还有一个比较遗憾的,那就是不支持使用J-Flash软件(我一直觉着J-Flash很好用);
4)SEGGER不提供技术支持(这个我觉着无所谓)。
    总体来说,还是利好的消息的,我还是灰常灰常看好OpenSDA的应用前景的,连SEGGER都低头兼容了,看来飞思卡尔以后调试器短板有望得到弥补,加油吧,呵呵。
    不聊了,附件为更新的固件,未完待续~
/*****************************************************************************************************************************************/
English Version:

   It feels realy good to see that SEGGER has offered a firmware running on the FRDM OpenSDA platform which makes OpenSDA compatible to J-Link lite, allowing users to take advantage of most J-Link features. It means we can do the same things with high-performance by using the low-cost OpenSDA platform.

1) How to do?
   The J-Link firmware SEGGER offered is just an OpenSDA Application, so put the FRDM board into Bootloader mode and update the firmware, which is enclosed in the attached, just like other OpenSDA applications. Then put it into normal mode and the J-Link driver will be installed. Open the J-Link Commander, and we will see the diagram below.

In IAR IDE, some setup steps need to follow:


2) Why to do?
    Most inland customers get used to J-Link to debug ARM based products since ARM7 time and the J-Link is realy good debugger by my experience, althougn the legal J-Link is expensive. So we can help the customer to develop and evaluata products with low-cost OpenSDA platform.
   In addition, live watch in IAR, which can update the varibles in time, is only supported with J-Link engine, which is very important to customer.

3) Limitations
    May be used with ARM based Freescale devices only;
    Only debugging on evaluation boards is allowed. Debugging on custom hardware is not supported and not allowed;
    No production flash programming support;
    Unlimited breakpoints in flash available for evaluation only;
    No support is given.
4) Suggestions
    OpenSDA is a very potential platform. USBDM has also released a firmware which is compatible to OpenSDA recently. So an open source OpenSDA  release from P&E is expected and to help customer to custom their own debugger hardware, which can help us to extend our Kinetis products more convenient.
Voila, just give a try!
JLink_OpenSDA.zip
68.7 K
No security policy violations found.
The file was last scanned 11 个月 前.
530 查看  分类:  

本帖子中包含更多资源

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

x

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

曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……

出0入0汤圆

发表于 2014-8-30 12:23:29 | 显示全部楼层
这个是Segger公司出的OpenSDA Application

出0入0汤圆

发表于 2014-8-30 13:34:28 | 显示全部楼层
学习了,还可以这么搞,不过好像限制不少。

出0入0汤圆

 楼主| 发表于 2014-8-30 14:07:10 | 显示全部楼层
Segger的工具就是好用啊,Freescale与他们合作是对的,强强联合啊.

出0入0汤圆

发表于 2014-8-31 10:32:45 | 显示全部楼层
这样以后还能改回来码?

出0入0汤圆

发表于 2014-8-31 10:36:52 | 显示全部楼层
又见楼主分享

出0入0汤圆

发表于 2014-8-31 10:52:02 | 显示全部楼层
谢谢楼主    学习先

出0入0汤圆

发表于 2014-8-31 10:56:30 | 显示全部楼层
楼主是好人,先收藏啦

出0入0汤圆

发表于 2014-8-31 21:55:21 来自手机 | 显示全部楼层
这么多限制,基本上没有实用意义了。当然调试飞思卡尔的东西还可用。

出0入0汤圆

发表于 2014-8-31 22:12:28 | 显示全部楼层
居然还有这么个用法,学习了。

出0入0汤圆

发表于 2014-8-31 22:26:27 | 显示全部楼层
不错,感谢分享,屌丝的福音啊

出0入0汤圆

 楼主| 发表于 2014-9-1 08:40:15 | 显示全部楼层
OpenSDA平台作为J-Link调试Kinetis,这个让用Jlink的人,来开发Kinetis产品无压力了,希望能帮助Kinetis的快速推广.

出0入0汤圆

发表于 2014-9-1 10:27:10 | 显示全部楼层
今天就用到了,搜的作者原帖
升级FRDM-K20遇到OPEN SDA的使用限制
改为J-LINK模式一切OK,哈哈哈哈哈哈

出0入0汤圆

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

本版积分规则

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

GMT+8, 2024-8-25 23:22

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

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