Oliver_CHENG 发表于 2016-6-11 10:13 PM

[MAPS-K64]折腾之一 MDK5.13开发环境

<i class="pstatus"> 本帖最后由 Laspide 于 2016-6-11 22:31 编辑 </i><br />
<br />
<div align="left"><font style="font-size:14.0pt"></font><font face="宋体"><font style="font-size:14.0pt">折腾之一</font></font><font style="font-size:14.0pt">&nbsp;&nbsp;MDK5.13</font><font face="宋体"><font style="font-size:14.0pt">开发环境</font></font></div><div align="left"><div align="left"><font face="宋体"><font style="font-size:14.0pt">一、硬件介绍</font></font></div><div align="left"><font style="font-size:14.0pt">MAPS-K64</font><font face="宋体"><font style="font-size:14.0pt">开发平台的硬件包扩:</font></font></div><div align="left"><font style="font-size:14.0pt">K64 MCU</font><font face="宋体"><font style="font-size:14.0pt">主板</font></font><font style="font-size:14.0pt">——</font><font face="宋体"><font style="font-size:14.0pt">包含</font></font><font style="font-size:14.0pt">MCU</font><font face="宋体"><font style="font-size:14.0pt">主芯片和与主芯片相关的特定功能;</font></font></div><div align="left"><font style="font-size:14.0pt">MAPS-Dock</font><font face="宋体"><font style="font-size:14.0pt">外设板</font></font><font style="font-size:14.0pt">——</font><font face="宋体"><font style="font-size:14.0pt">包含通用外设接口和器件。</font></font></div><div align="left"><font style="font-size:14.0pt">K64</font><font face="宋体"><font style="font-size:14.0pt">主板</font></font><font style="font-size:14.0pt">MCU</font><font face="宋体"><font style="font-size:14.0pt">型号为</font></font><font style="font-size:14.0pt">MK64FN1M0VLQ12</font><font face="宋体"><font style="font-size:14.0pt">,该系列</font></font><font style="font-size:14.0pt">MCU</font><font face="宋体"><font style="font-size:14.0pt">差异如下图所示。</font></font></div></div>
<ignore_js_op>



</ignore_js_op>
<br />
<div align="left"><div align="left"><font face="宋体"><font style="font-size:14.0pt">该型</font></font><font style="font-size:14.0pt">MCU</font><font face="宋体"><font style="font-size:14.0pt">的相关资料可以通过</font></font><font style="font-size:14.0pt">NXP</font><font face="宋体"><font style="font-size:14.0pt">官网链接获得。</font></font></div><div align="left"><font style="font-size:14.0pt">MAPS-Dock</font><font face="宋体"><font style="font-size:14.0pt">的外设配置为:</font></font><font style="font-size:14.0pt">Micro-SD</font><font face="宋体"><font style="font-size:14.0pt">卡插槽;六个触摸按键;</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">全速接口;红外收发器;四个按键;一个</font></font><font style="font-size:14.0pt">SPI</font><font face="宋体"><font style="font-size:14.0pt">接口;两个</font></font><font style="font-size:14.0pt">UART</font><font face="宋体"><font style="font-size:14.0pt">接口;一个</font></font><font style="font-size:14.0pt">I2S</font><font face="宋体"><font style="font-size:14.0pt">接口;一个</font></font><font style="font-size:14.0pt">CAN</font><font face="宋体"><font style="font-size:14.0pt">接口;两个电位器;一个</font></font><font style="font-size:14.0pt">DAC</font><font face="宋体"><font style="font-size:14.0pt">输出接口;</font></font><font style="font-size:14.0pt">128x64</font><font face="宋体"><font style="font-size:14.0pt">单色</font></font><font style="font-size:14.0pt">LCD</font><font face="宋体"><font style="font-size:14.0pt">屏;一个五向按键。</font></font><font style="font-size:14.0pt">MAPS-Dock</font><font face="宋体"><font style="font-size:14.0pt">还集成了一个</font></font><font style="font-size:14.0pt">SWD</font><font face="宋体"><font style="font-size:14.0pt">调试器和</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">虚拟串行接口,可以配合</font></font><font style="font-size:14.0pt">IAR</font><font face="宋体"><font style="font-size:14.0pt">或</font></font><font style="font-size:14.0pt">KEIL</font><font face="宋体"><font style="font-size:14.0pt">集成环境调试所有</font></font><font style="font-size:14.0pt">Kinetis MCU</font><font face="宋体"><font style="font-size:14.0pt">。</font></font></div></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">二、硬件连接</font></font></div><div align="left"><font style="font-size:14.0pt">MAPS-K64</font><font face="宋体"><font style="font-size:14.0pt">开发平台的硬件连接关系为:计算机</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">口</font></font><font style="font-size:14.0pt"> --&gt; MAPS-Dock CN14 USB --&gt; MAPS-Dock CN1 &amp;CN2 --&gt; MAPS-K64 CN3 &amp; CN6</font><font face="宋体"><font style="font-size:14.0pt">。</font></font><font style="font-size:14.0pt">MAPS-K64 CN4</font><font face="宋体"><font style="font-size:14.0pt">可以用来供电或</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">通讯,但没法通过它进行</font></font><font style="font-size:14.0pt">MCU</font><font face="宋体"><font style="font-size:14.0pt">调试(单独上电会显示飞思卡尔</font></font><font style="font-size:14.0pt">LOGO</font><font face="宋体"><font style="font-size:14.0pt">的图片,已经被我搞没了,纯白屏啊)。因为调试器在</font></font><font style="font-size:14.0pt">MAPS-Dock</font><font face="宋体"><font style="font-size:14.0pt">上,所以</font></font><font style="font-size:14.0pt">MAPS-K64</font><font face="宋体"><font style="font-size:14.0pt">不能单独用于开发。</font></font></div>
<ignore_js_op>



</ignore_js_op>
<font face="&amp;quot;"><font style="font-size:14.0pt"> </font></font><font face="&amp;quot;"><font style="font-size:14.0pt"><br />
</font></font><br />
<font face="&amp;quot;"><font style="font-size:14.0pt">MAPS-K64</font></font><font face="宋体"><font style="font-size:14.0pt">开发平台和</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">TI TMS320F2833x</font></font><font face="宋体"><font style="font-size:14.0pt">系列开发平台相比,缺点是占用面积大,但外设功能相当,还有液晶模块,而且价格也更亲民,所以</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">MAPS-K64</font></font><font face="宋体"><font style="font-size:14.0pt">开发平台也是相当不错的一款</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">MCU</font></font><font face="宋体"><font style="font-size:14.0pt">开发平台。</font></font><br />

<ignore_js_op>



</ignore_js_op>
<br />
<div align="left"><font face="宋体"><font style="font-size:14.0pt">三、开发软件</font></font></div><font face="&amp;quot;"><font style="font-size:14.0pt">MAPS-K64</font></font><font face="宋体"><font style="font-size:14.0pt">开发平台所应用的开发软件可以是</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">IAR</font></font><font face="宋体"><font style="font-size:14.0pt">、</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">CW</font></font><font face="宋体"><font style="font-size:14.0pt">、</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">MDK</font></font><font face="宋体"><font style="font-size:14.0pt">等集成开发环境,我这已经安装了</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">MDK5.13</font></font><font face="宋体"><font style="font-size:14.0pt">,就用它好了。</font></font><br />

<ignore_js_op>



</ignore_js_op>
<br />
<font face="宋体"><font style="font-size:14.0pt">点击</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">Pack Installer</font></font><font face="宋体"><font style="font-size:14.0pt">按钮,安装</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">K64</font></font><font face="宋体"><font style="font-size:14.0pt">相应相关的开发库。</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">MDK</font></font><font face="宋体"><font style="font-size:14.0pt">的下载速度较慢,得耐心啊,官网用迅雷下速度还是可以的。</font></font><br />

<ignore_js_op>



</ignore_js_op>
<br />
<font face="宋体"><font style="font-size:14.0pt">在</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">Examples</font></font><font face="宋体"><font style="font-size:14.0pt">选项卡下复制例子。</font></font><br />

<ignore_js_op>



</ignore_js_op>
<br />
<font face="宋体"><font style="font-size:14.0pt">就会自动生成例子项目。</font></font><br />

<ignore_js_op>



</ignore_js_op>
<br />
<div align="left"><font face="宋体"><font style="font-size:14.0pt">配置成</font></font><font style="font-size:14.0pt">CMSIS-DAP</font><font face="宋体"><font style="font-size:14.0pt">调试器,编译,运行。</font></font></div><font face="宋体"><font style="font-size:14.0pt">可以看到</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">MAPS-Dock</font></font><font face="宋体"><font style="font-size:14.0pt">上的</font></font><font face="&amp;quot;"><font style="font-size:14.0pt">LD6</font></font><font face="宋体"><font style="font-size:14.0pt">闪烁了。</font></font><br />
<font face="宋体"><font style="font-size:14.0pt"><br />
</font></font><br />
<br />
<br />

从今天开始! 发表于 2016-6-11 10:25 PM


<i class="pstatus"> 本帖最后由 Laspide 于 2016-6-11 22:30 编辑 </i><br />
<br />
<div align="left"><font face="宋体"><font style="font-size:14.0pt">四、遇到的问题</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">如何进入</font></font><font style="font-size:14.0pt">Bootloader</font><font face="宋体"><font style="font-size:14.0pt">模式,折腾了好一会儿,看了几位朋友的帖子,最后在</font></font><font style="font-size:14.0pt">Firmware-FRDM-K64F#enter-bootloader-mode</font><font face="宋体"><font style="font-size:14.0pt">网页找到了原因(“北方”朋友在帖子中也提到这点了)。</font></font></div>
<ignore_js_op>



</ignore_js_op>
<font face="&amp;quot;"><font style="font-size:14.0pt"><br />
<br />
</font></font><div align="left"><font face="宋体"><font style="font-size:14.0pt">上述操作要在连接计算机</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">口之前按住</font></font><font style="font-size:14.0pt">RESET</font><font face="宋体"><font style="font-size:14.0pt">键,待计算机识别出</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">硬件后才能松开</font></font><font style="font-size:14.0pt">RESET</font><font face="宋体"><font style="font-size:14.0pt">键。</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">按住</font></font><font style="font-size:14.0pt">RESET</font><font face="宋体"><font style="font-size:14.0pt">插入</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">时,计算机识别为</font></font><font style="font-size:14pt">BOOTLOADER</font><font face="宋体"><font style="font-size:14.0pt">设备</font></font>
<ignore_js_op>



</ignore_js_op>
<font face="宋体"><font style="font-size:14pt">。</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">断电后再上电时,计算机识别为</font></font><i><font style="font-size:14.0pt">MBED</font></i><font face="宋体"><font style="font-size:14.0pt">设备</font></font>
<ignore_js_op>



</ignore_js_op>
<font face="宋体"><font style="font-size:14pt">。</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">正确识别出的硬件在计算机设备管理器中应该是这样的。</font></font></div><div align="left">
<ignore_js_op>



</ignore_js_op>
</div><div align="left"><font face="宋体"><font style="font-size:14.0pt">但是,在</font></font><font style="font-size:14.0pt">Bootloader</font><font face="宋体"><font style="font-size:14.0pt">时,将</font></font><font style="font-size:14.0pt">0226_k20dx128_k64f_0x5000.bin</font><font face="宋体"><font style="font-size:14.0pt">拖入识别出的</font></font><i><font style="font-size:14.0pt">BOOTLOADER</font></i><font face="宋体"><font style="font-size:14.0pt">设备中,计算机会将</font></font><font style="font-size:14.0pt">bin</font><font face="宋体"><font style="font-size:14.0pt">文件写入设备,并弹出</font></font><i><font style="font-size:14.0pt">BOOTLOADER</font></i><font face="宋体"><font style="font-size:14.0pt">设备(</font></font><font style="font-size:14.0pt">USB</font><font face="宋体"><font style="font-size:14.0pt">设备盘符消失),然后</font></font><font style="font-size:14.0pt">MAPS-Dock</font><font face="宋体"><font style="font-size:14.0pt">上的</font></font><font style="font-size:14.0pt">LD6</font><font face="宋体"><font style="font-size:14.0pt">一直闪烁(即使按复位键也无作用)。</font></font><font style="font-size:14.0pt"> </font><font face="宋体"><font style="font-size:14.0pt">断电后再上电,计算机就又识别为</font></font><i><font style="font-size:14.0pt">MBED</font></i><font face="宋体"><font style="font-size:14.0pt">设备了。试了试</font></font><font style="font-size:14.0pt">0221_k20dx128_k64f_0x5000.bin</font><font face="宋体"><font style="font-size:14.0pt">也是一样的现象,就这样把液晶的</font></font><font style="font-size:14.0pt">LOGO</font><font face="宋体"><font style="font-size:14.0pt">搞没了,成白屏了。还是不知道具体什么原因。</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">另外,尝试编译了</font></font><font style="font-size:14.0pt">MAPS-K64_SDK_1.0.0</font><font face="宋体"><font style="font-size:14.0pt">例程包中的</font></font><font style="font-size:14.0pt">flexbus_lcd</font><font face="宋体"><font style="font-size:14.0pt">例子,即使编译通过也没跑起来,有空时要好好研究下。</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">五、下一步考虑</font></font></div><div align="left"><font face="宋体"><font style="font-size:14.0pt">上周集中时间学习</font></font><font style="font-size:14.0pt">K64P144M120SF5RM Kinetis K64 120MHzCortex-M4F up to 1MB Flash.pdf</font><font face="宋体"><font style="font-size:14.0pt">(将近</font></font><font style="font-size:14.0pt">1800</font><font face="宋体"><font style="font-size:14.0pt">页,只看了十几分之一),接下来还是要结合开发平台学习个具体模块。在这之前,先学习开发平台的资料,将例程跑起来。</font></font></div><br />

soaped 发表于 2016-6-11 10:31 PM


为什么发帖子总出错。

wxw123321 发表于 2016-6-11 11:02 PM


这款板子很不错,我拿了好久了一直都没什么时间玩……
页: [1]
查看完整版本: [MAPS-K64]折腾之一 MDK5.13开发环境