AE007 发表于 2021-12-13 02:42

[复旦微FM33LG0系列开发板测评] 复旦微芯片使用J-Scope波形软件加速产品开发

本帖最后由 AE007 于 2021-12-13 02:42 编辑

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp; <span style="font-family:宋体">在实际项目中,我们需要将传感器或者</span> ADC <span style="font-family:宋体">的数值以波形的形式显示。通常的解决办法是用</span> USB <span style="font-family:宋体">接口上位机或者存储整理出一部分采集数据,使用这种方式比较繁琐。现在可以使用</span> J-Scope <span style="font-family:宋体">波形软件的快速显示模式,将</span> JLINK <span style="font-family:宋体">插上即可。</span></span></span></p>

<h2 style="text-align:justify; margin-top:18px; margin-bottom:18px"><span style="font-size:16pt"><span style="line-height:173%"><span style="font-family:&quot;Calibri Light&quot;,sans-serif"><span lang="EN-US" style="font-size:14.0pt"><span style="line-height:173%">J-Scope</span></span><span style="font-family:宋体">概述</span></span></span></span></h2>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; J-Scope <span style="font-family:宋体">是一款免费软件,可在目标运行时实时分析和可视化微控制器上的数据。</span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp; <span style="font-family:宋体">主要有</span> RTT <span style="font-family:宋体">和</span> HSS <span style="font-family:宋体">两种工作方式</span> </span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HSS <span style="font-family:宋体">模式:仅需大家将</span> MDK <span style="font-family:宋体">生成的可执行文件</span> xxx.axf <span style="font-family:宋体">或者</span> IAR <span style="font-family:宋体">生成的可执行文件</span> xxx.out <span style="font-family:宋体">文件加载到</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; J-Scope<span style="font-family:宋体">软件里面即可。采样率</span>1KHZ<span style="font-family:宋体">左右</span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RTT <span style="font-family:宋体">模式:这种方式类似串口上传数据,只是换成了</span> SWD <span style="font-family:宋体">接口。(需要修改程序,速度比</span>HSS<span style="font-family:宋体">快)</span></span></span></p>

<h2 style="text-align:justify; margin-top:18px; margin-bottom:18px"><span style="font-size:16pt"><span style="line-height:173%"><span style="font-family:&quot;Calibri Light&quot;,sans-serif"><span style="font-family:宋体">本次测试说明:</span></span></span></span></h2>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family:宋体">使用</span>HSS <span style="font-family:宋体">模式调试</span>FM33LG0<span style="font-family:宋体">开发板,通过</span>AD<span style="font-family:宋体">采集的数据在</span>J-Scope<span style="font-family:宋体">上显示波形。</span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JLINK<span style="font-family:宋体">是</span>JLINK-V9<span style="font-family:宋体">,驱动是</span>JLink_Windows_V614b<span style="font-family:宋体">。</span>J-Scope<span style="font-family:宋体">是</span>Setup_JScope_V611m<span style="font-family:宋体">。</span></span></span></p>

<h2 style="text-align:justify; margin-top:18px; margin-bottom:18px"><span style="font-size:16pt"><span style="line-height:173%"><span style="font-family:&quot;Calibri Light&quot;,sans-serif"><span style="font-family:宋体">使用流程</span></span></span></span></h2>

<ol>
        <li style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">把程序烧录到</span>MCU<span style="font-family:宋体">中</span></span></span></li>
        <li style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">打开</span>J-Scope<span style="font-family:宋体">软件</span> <span style="font-family:宋体">选择新建工程</span></span></span></li>
</ol>

<p style="text-align: justify; margin-left: 40px;"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p>

<p style="text-align:justify"></p>

<p style="text-align: justify; margin-left: 40px;">&nbsp;</p>

<p style="margin-left:28px; text-align:justify">&nbsp;</p>

<ol start="3">
        <li style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">选择</span>USB<span style="font-family:宋体">模式,芯片为</span>Cortex-M0<span style="font-family:宋体">,</span>Elf File<span style="font-family:宋体">在工程项目</span>Objects<span style="font-family:宋体">中的</span>xxx.axf<span style="font-family:宋体">。然后点击</span>OK<span style="font-family:宋体">。</span></span></span></li>
</ol>

<p style="margin-left: 80px; text-align: justify;"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p>

<p style="margin-left:28px; text-align:justify"></p>

<p style="margin-left: 80px; text-align: justify;">&nbsp;</p>

<ol start="4">
        <li style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">选择需要显示的变量(只有全局变量)</span></span></span></li>
</ol>

<p style="margin-left:52px; text-indent:0cm; text-align:justify"></p>

<ol start="5">
        <li style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">点击菜单栏上的小红点开始运行,会有弹框点击</span>OK<span style="font-family:宋体">就行。(下面就是我转动电位器的波形)</span></span></span></li>
</ol>

<p style="margin-left:52px; text-indent:0cm; text-align:justify"></p>

<ol start="6">
        <li style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">J-Scope显示的<span style="font-family:宋体">电位器中位值为</span>1624<span style="font-family:宋体">与实际</span>LCD<span style="font-family:宋体">显示的值一致(</span>LCD<span style="font-family:宋体">只有</span>3<span style="font-family:宋体">位数字)</span></span></span></li>
</ol>

<p style="margin-left:52px; text-indent:0cm; text-align:justify"></p>

<h2 style="text-align:justify; margin-top:18px; margin-bottom:18px"><span style="font-size:16pt"><span style="line-height:173%"><span style="font-family:&quot;Calibri Light&quot;,sans-serif"><span style="font-family:宋体">总结</span></span></span></span></h2>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HSS <span style="font-family:宋体">模式适合采样变化速度低于</span> 1KHz <span style="font-family:宋体">的变量,不限制变量类型,</span>8bit <span style="font-family:宋体">到</span> 64bit <span style="font-family:宋体">均可。在项目调试中</span> <span style="font-family:宋体">还是非常实用的,特别是各种传感器的波形显示,建议大家都尝试一下。</span></span></span></p>

<p style="text-align:justify">&nbsp;</p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri,sans-serif"><span style="font-family:宋体">本次使用的软件和代码也一并上传。</span></span></span></p>

<p style="text-align:justify"><br />
<br />
<br />
<br />
<br />
<br />
&nbsp;</p>

Jacktang 发表于 2021-12-13 07:30

<p>HSS&nbsp;模式用在传感器的波形显示确实比较实用,收藏</p>

littleshrimp 发表于 2021-12-13 09:50

<p>这种方式查看波形确实方便</p>
页: [1]
查看完整版本: [复旦微FM33LG0系列开发板测评] 复旦微芯片使用J-Scope波形软件加速产品开发