查看: 1300|回复: 0

【KL25Z】熟悉开发环境CodeWarrior 并解决在win8下openSDA无法正常使用问题

[复制链接]
  • TA的每日心情
    开心
    2017-7-4 13:51
  • 签到天数: 347 天

    连续签到: 1 天

    [LV.8]以坛为家I

    发表于 2015-2-13 08:35:04 | 显示全部楼层 |阅读模式
    分享到:
    接着上一章,继续来看看CodeWarrior。主函数如下所示,在ProcessorExpert.c中,


    右击工程,修改设置。
    首先碰到个问题就是无法下载。
    后来经过检查,发现设备管理器中并有没相对应的驱动。也没弹出对应U盘

    其实这很奇怪,当usb插入电脑必然有个枚举检测的过程,如果没装驱动为什么没有一个未知设备的提示呢。
    据说在win8情况下,openSDA的调试器可能不好使,解决方式如下
    https://www.pemicro.com/opensda/
    得先下载安装openSDA驱动,并安装。
    这里得注册,我开始想偷懒的,可惜其他网站上没找到,只能下载了。
    安装好后,插入usb线,还是没反应。别急,按照步骤继续做下去。
    在刚才的链接中,点击Firmware Apps

    下载Pemicro_OpenSDA_Debug_MSD_Update_Apps_2013_12_11这个压缩包。
    解压缩后可以看到如下图示:BOOTUPDATEAPP说明、Bootloader升级包、OpenSDA说明、1.14版的各板OpenSDA固件程序

    为了更新Bootloader先读BOOTUPDATEAPP_release_notes并按如下步骤操作:
        1、进入Bootloader模式(按住复位键,用USB线将开发板的OpenSDA接口与电脑连接,释放复位键)
        2、将BOOTUPDATEAPP.SDA放进Bootloader盘(该文件在OpenSDA_Bootloader_Update_App_v111_2013_12_11压缩包内)
        3、拔掉再插上OpenSDA以启动Bootloader升级。该升级过程最长15秒,一般3秒内搞定
        4、一旦升级结束,OpenSDA将自动进入Bootloader模式、绿色小灯将秒频率闪烁
        5、运行Bootloader 盘中SDA_INFO.HTM文件即可从网页上看到自己开发板OpenSDA的Bootloader 已经升级到了版本1.11

    将1.14版OpenSDA固件程序(若是FRDM-KL25Z开发板就把MSD-DEBUG-FRDM-KL25Z_Pemicro_v114.SDA)放入Bootloader 盘
    运行FRDM-KL25Z盘中SDA_INFO.HTM文件即可从网页上看到自己开发板OpenSDA的固件程序已经升级到了1.14

    拔掉再插上OpenSDA就能看到127MB大小、名为FRDM-KL25Z的盘(该状态就是可以Deubg,也可以往里丢.srec文件的OpenSDA最新状态)
    这是理论上的情况,事实上我的问题是,我一直处于boot状态。

    我的图标一直是这个。
    SDA_INFO.HTM网页信息一直是

    更新boot前、更新boot后,更新固件后版本号都未改变。
    为什么呢?
    终于在网上找到解决方案了:
    后来在openSDA网站上乱翻,发现了FAQ中有解答,链接“:https://www.pemicro.com/opensda/faqs/faqs.cfm:
    Issue:  Bootloader versions 1.10 and earlier are not allowing firmware update and MSD FLASH programming on my OpenSDA board, with the Linux, MacOS or Windows 8/8.1 operating systems.
    Solution: Support for Windows 8/8.1, MacOS and Linux operating systems was added to Bootloader version 1.11 and MSD firmware version 1.14. Please make sure that your board is programmed with Bootloader version 1.11 or higher prior to attempting to update your OpenSDA board with a new firmware application.
    Important: If you are currently running Bootloader version 1.10 or earlier, you will need to find a Windows XP or Windows 7 PC to perform this update.
    Please follow these steps to find out what version of Bootloader your board is programmed with: 1.Start your board in Bootloader mode by holding down the RESET button prior to plugging it into USB port.
    2.Open the SDA_INFO.HTM file, which will contain version numbers of Bootloader as well name and version of current OpenSDA firmware you are using. If your board is not running Bootloader version 1.11 or higher, please download the latest OpenSDA Firmware Apps from P&E website and follow instructions in corresponding documentation to update the Bootloader using the BOOTUPDATEAPP_Pemicro_v111.SDA application. Once the Bootloader is updated via BOOTUPDATEAPP, the OpenSDA board can then be upgraded to the latest combined MSD/DEBUG OpenSDA firmware 1.14 or greater.
    原来是需要一台winXP,win7的机器,才能成功升级,升级之后,win8才能用……
    好吧浪费了我两个晚上。
    果断的找台winxp的笔记本照着上面的步骤更新。

    先更新下boot,可以,从1.01->1.11,真的可以哎,看到希望了

    更新固件,结果盘符立刻改变了。

    U盘内文件好像也更新过了

    打开网页,确实更新了,固件变为1.14

    将usb线从xp电脑上拔下来插入win8电脑。果然盘符也变成对的了。

    顺利实现。
    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条

    手机版|小黑屋|与非网

    GMT+8, 2024-4-19 14:28 , Processed in 0.118346 second(s), 17 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.