DIY一个jlink V9下载器
<div class='showpostmsg'> 本帖最后由 通宵敲代码 于 2024-1-24 13:32 编辑<p><br />
先上美图</p>
<p></p>
<p></p>
<p>XXX打样5元,PCB用的黑色油墨,真香</p>
<p></p>
<p>设备正常识别</p>
<p></p>
<p>功能测试正常,最快速度可达12M</p>
<p></p>
<p>上资料,PCB工程及升级固件都有,具体怎么玩网上教程很多,</p>
<p><s>实际测试bootloader升级方式不支持串口,直接烧录的固件可以</s><a href="https://bbs.eeworld.com.cn/forum.php?mod=redirect&goto=findpost&ptid=1119664&pid=2969515" target="_blank"><strong>(此问题已更正,见13楼)</strong></a></p>
<div></div>
<p> </p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>再上几张图,这是bootloader升级的固件与直接烧录的固件做的对比,</p>
<p>注意bootloader升级后的固件跟jlink程序的版本有关,此处我用的是6.14b</p>
<p></p>
<p>其他方式烧录完bootloader后,打开jlink command软件会提示自动升级,以下是升级的界面</p>
<p></p>
<p>我用的jlink软件版本是6.14b</p>
<p></p>
<p>实际测试使用最新的6.70g版本的jlink也可以升级成功,不过依然没有串口</p>
<p></p>
<p> </p>
<p>加个电平转换就完美了</p>
<p>加一个 ON 的多通道电平转换,成本也不高。</p>
littleshrimp 发表于 2020-4-25 10:16
加个电平转换就完美了
<p>虾哥搞一个;</p>
dcexpert 发表于 2020-4-25 14:48
加一个 ON 的多通道电平转换,成本也不高。
<p>哪个型号啊</p>
DavidZH 发表于 2020-4-25 15:51
虾哥搞一个;
我还真挺需要这个东西的,有没有使用usb-hs的固件,或者能改不? DavidZH 发表于 2020-4-25 15:53
哪个型号啊
<p>有多种型号,TI和ON的比较多,有的型号支持推挽和开漏,有的只支持推挽。用在jlink上,用推挽比较好,速度快。</p>
<p> </p>
<p>TI的有TXB0104、TXB0104等,但要求VCCA<=VCCB。ON的有FXMA2104CN、NLSX5014等。这些都是自动方向控制的,速度最高是26M左右,如果用带方向控制的,速度会更高。</p>
littleshrimp 发表于 2020-4-25 10:16
加个电平转换就完美了
<p>主要是受体积限制,要是加这加那的,</p>
<p>就不如直接搞一个大号的jlink V9了。</p>
<p><img src="https://bbs.eeworld.com.cn/static/editor/plugins/hkemoji/sticker/red/Animaux-Crabe-2.gif" /><img src="https://bbs.eeworld.com.cn/static/editor/plugins/hkemoji/sticker/red/Animaux-Crabe-2.gif" /><img src="https://bbs.eeworld.com.cn/static/editor/plugins/hkemoji/sticker/red/Animaux-Crabe-2.gif" /></p>
DavidZH 发表于 2020-4-25 15:53
哪个型号啊
<p>我看网上好多jlink原理图都是用NXP的<a href="http://www.ti.com.cn/cn/lit/ds/symlink/sn74lvc2t45.pdf?ts=1587870625610" target="_blank">74LVC<em>2T45</em></a>的,</p>
<p>没拆过原厂的jlink,不知道原厂是不是用的这货</p>
<p>不会被软件检测出来是克隆吗?</p>
woody_chen 发表于 2020-4-26 15:07
不会被软件检测出来是克隆吗?
<p>有bootloader就不会,</p>
<p>软件会识别SN码,这个写对了就行</p>
<p><span style="font-size:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">前面提到的自动升级后虚拟串口不能用的问题,经网友反馈说是“<strong>固件是支持的,只是默认没有开启</strong>”</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
<span style="font-size:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">经测试这个虚拟串口确实是可以开关的,</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
<span style="font-size:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">操作指令用到“</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:#27ae60;"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none"><strong>vcom enable</strong></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">”,“</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:#e74c3c;"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none"><strong>vcom disable</strong></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">”</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
<br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
<span style="font-size:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">执行指令之后,都需要重新插拔上电才可以,</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
<span style="font-size:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">在使用JTAG功能时,需要将虚拟串口关闭,</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
<span style="font-size:16px; text-align:start; text-indent:0px; -webkit-text-stroke-width:0px"><span style="color:#444444"><span style="font-family:Tahoma, "Microsoft Yahei", Simsun"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-variant-caps:normal"><span style="font-weight:400"><span style="letter-spacing:normal"><span style="orphans:2"><span style="text-transform:none"><span style="white-space:normal"><span style="widows:2"><span style="word-spacing:0px"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><span style="display:inline !important"><span style="float:none">不然TDI引脚不能使用,只用SWD功能则不受影响</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br style="overflow-wrap:break-word; word-break:break-all; color:#444444; font-family:Tahoma, "Microsoft Yahei", Simsun; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:#def0fb; text-decoration-style:initial; text-decoration-color:initial" />
</p>
<p><span style="font-size:16px;">执行vcom disable后,设备管理器识别如下</span></p>
<p></p>
<p> </p>
<p><span style="font-size:16px;">执行vcom enable后,设备管理器识别如下</span></p>
<p></p>
<p><span style="font-size:16px;">注意,当遇到“The connected emulator does not support VCOM functionality.”错误时,处理如下</span><br />
<br />
<br />
<span style="font-size:16px;">不过尝试发现还是会遇到错误提示,<br />
后经参考官方的帖子,发现需要执行“usb”指令重新链接一次jlink就可以了,</span></p>
<p><br />
<span style="font-size:16px;">参考帖子如下,<a href="https://forum.segger.com/index.php/Thread/3421-SOLVED-J-Link-EDU-V9-40-virtual-com-port/?postID=11981" target="_blank">帖子链接</a>,参考位置在4楼</span></p>
<p></p>
<p> </p>
<p> </p>
<p> </p>
<p>谢谢分享,有空实验试验。</p>
通宵敲代码 发表于 2020-4-29 09:49
前面提到的自动升级后虚拟串口不能用的问题,经网友反馈说是“固件是支持的,只是默认没有开启” ...
<p>大神</p>
<p>找个机会试一试</p>
<p>这个固件会掉吗?</p>
freebsder 发表于 2020-7-20 14:14
这个固件会掉吗?
<p>掉了就重刷,怕个啥</p>
<p>不过暂时没发现会掉,哈哈哈</p>
通宵敲代码 发表于 2020-7-26 10:09
掉了就重刷,怕个啥
不过暂时没发现会掉,哈哈哈
<p>好暴力,我喜欢!</p>
<p>请问楼主SN是怎么写进去的,我买的克隆版本,SN是-1</p>
<p>J-Link>usb<br />
Connecting to J-Link via USB...O.K.<br />
Firmware: J-Link V9 compiled Jan 29 2018 15:41:50<br />
Hardware version: V9.20<br />
S/N: -1</p>
页:
[1]
2