使用CodeWarrior 下载程序步骤
codewarrior介绍及安装流程【精选】

CodeWarrior 5.1软件安装流程信入党组形式组织一次“坚持根讨论不,开展党邀请党话,做合格党员”党规、学在全市号),结育,基础实党的”专题教优,进一持问题导为协调面小1目的本文档主要用来说明CodeWarrior软件安装流程。
2 软件介绍CodeWarrior Development Studio是一个全面的集成开发环境(IDE),提供了高度可视化和自动化的框架,可加快最复杂的嵌入式应用的开发速度。
CodeWarrior包括构建平台和应用所必需的所有主要工具- IDE、编译器、调试器、编辑器、链接器、汇编程序等。
而且得益于各种处理器和平台(从Motorola到TI到Intel)间的通用功能性,CodeWarrior IDE支持开发人员插入他们所喜爱的工具,使他们可以自由地以希望的方式工作。
另外,它是一个单一的开发环境,在所有所支持的工作站和个人电脑之间保持一致。
在每个所支持的平台上,性能及使用均是相同的,则无需担心主机至主机的不兼容。
其主要功能如下:1、项目管理器:为软件开发人员处理最高级别的文件管理;按照主要组别组织项目条目;追踪状态信息(例如文件修改日期);确定每个构建中特定文件的构建顺序及内容;协调插件程序以提供箱版本控制和RTOS支持这样的业务。
2、文本编辑器:支持源代码和其他文本文件的创建和处理。
与其他的IDE 功能完全集成。
3、搜索引擎:查找特定的文字串;以替代文字替换找到的文字;支持常规表达的使用;提供文件比较及差别功能。
4、源浏览器:保存用于程序的符号数据库;包括变量及功能的名称和值的符号的举例;使用符号数据库协助代码浏览;将每个符号与此符号相关代码的其他位置链接;处理目标导向和程序语言。
5、构建系统:使用编译器从源代码生成可重新定位的目标代码,并使用链接器从目标码生成最后的可执行图像。
CodeWarrior C/C++*编译器工具包括业内领先的C/C++*语言CodeWarrior编译器,包括标准模板库(STL)及各种其他工具。
codewarrior使用指南

1、安装 CodeWarrior 软件 安装 CodeWarrior 所需要的电脑的硬件资源如下,目前一般的电脑都可以满足这个要求。
16 位单片机的编程环境:CodeWarrior V4.6,V4.7,V5.0,V5.1 CodeWarrior V5.1 的下载链接: /lgfiles/devsuites/HC12/CW_HC12_v5.1_SPECIAL.exe 软件安装很简单,和其它软件的安装过程是一样的,按照默认的设置直接点击“下一步” 即可完成安装。 2、创建新工程(单片机以以 MC9S12XS128 为例,调试工具以 BDM 为例) 1) 点 击电 脑 左下 角 的 开始 菜 单, 开 始 >所 有 程 序>Freescale CodeWarrior> CodeWarrior development studio for S12(X) V5.0> CodeWarriorIDE。IDE 开始运行,出现下图 1 所示的窗口。
图11
图12 接下来给核心板供电,核心板的供电电压是 5V。有的 BDM 有 5V 供电模式,这个时候 直接用 BDM 供电就可以。 2)在新建的工程中键入如下代码 #include <hidef.h> #include "derivative.h" #define LEDCPU PORTK_PK4 #define LEDCPU_dir DDRK_DDRK4 void delay(void) { unsigned int i; for(i=0;i<50000;i++); } void main(void) { LEDCPU_dir=1; EnableInterrupts;
图8
codewarrior快速使用手册

CodeWarrior™ Development Studiofor Microcontrollers V6.x Quick StartSYSTEM REQUIREMENTSHardware PC with 1 GHz Intel® Pentium® compatibleprocessor512 MB of RAM (1 GB recommended)CD-ROM driveDepending on host-target connection: ParallelPort, 9-pin Serial Port, or USB PortOperating System Microsoft® Windows® XP orMicrosoft Windows Vista® Operating Systems32-bit (Home Premium Edition and BusinessEdition)Disk Space 2 GB total400MB on Windows system diskThis Quick Start explains how to install the CodeWarrior Development Studio for Microcontrollers V6.x software, and how to use the IDE to create, build, and debug a project.NOTE You must install the CodeWarrior software on the equipment on which you intend to use the software.1.Insert CodeWarrior Development Studio CD into CD-ROM drive —CW Auto Install beginsNOTE If Auto Install does not start, run launch.exe, which is located in the root directory of the CD.The CodeWarrior software may be part of a DVD included withyour kit. In this case, click Install CodeWarrior DevelopmentStudio for Microcontrollers, follow the on-screen instructions,and skip to step "Check for updates".2.Follow setup program's on-screen instructionsNOTE Special Edition: The Special Edition license is automatically installed with your product and you do not need to register it.This license allows you to develop projects with unlimitedassembly code, up to 32KB of C code for HC(S)08/RS08derivatives and up to 64KB of C code for ColdFire V1derivatives.NOTE Evaluation Edition: The Evaluation license is automatically installed with your product and you do not need to register it.This license allows you to develop projects as ProfessionalEdition within the 30-day evaluation period. After 30 days, thelicense works as Special Edition license (free permanent, butfeature limited) which supports unlimited assembly code, up to32KB of C code for HC(S)08/RS08 derivatives and up to 64KBof C code for ColdFire V1 derivatives.1.Create a projecta.Select Start > Programs > Freescale CodeWarrior >CW forMicrocontrollers V6.x > CodeWarrior IDE — IDE starts and displaysstartup dialog box.Startup Dialog Boxb.Select Create New Project — the Microcontrollers New Project Deviceand Connection dialog box appears.NOTE This section of the quick start demonstrates using the New Project Wizard. We use an MC68HC908GZ60target as anexample.c.Expand HC08 and GZ Family and select MC68HC908GZ60 derivative. NOTE If your MCU is missing from the list, download a service pack for that device at /codewarrior/downloads.Device and Connection Dialog Boxd.Select Full Chip Simulation as your default connection.e.Click Next — the Project Parameters dialog box appears.Project Parameters Dialog Boxf.In Project name text box, the IDE supplies a default project name. Entera project name of your choice.NOTE The IDE automatically creates a folder with the same name in specified location. The IDE automatically adds .mcp extensionwhen it creates project.g.In Location text box enter location to store project, click Set to browse tofolder locationh.Select C as language to be supported by project.NOTE You can click Finish to accept defaults for remaining options.i.Click Next — the Add Additional Files dialog box appears.This dialog box lets you browse folders and add or remove files to or fromthe project.Add Additional Files Dialog Boxj.Click Next — the Processor Expert dialog box appears.This dialog box let you specify whether you want your project configuredto use Device Initialization or Processor Expert.Processor Expert Dialog Boxk.Select the None option button.l.Click Next — the C/C++ Options dialog box appears.This dialog box allows you to specify C/C++ Options.C/C++ Options Dialog Boxm.Select ANSI startup code as code, the New Project Wizard will place in your project as startup code.n.Select Small as memory model to use.o.Select None for floating point format to support.p.Click Finish — the IDE creates your project according to your specifications; Project window appears, docked at left side of mainwindow.Project WindowNOTE To undock project window, double-click the double gray lines.To re-dock window, right click in title tab and select Docked.2.Select connectionFor this example, we specified Full Chip Simulation (FCS).a.To change MCU and connection, select Project >Change MCUConnection.b.Make sure Full Chip Simulation is selected in drop-down list.3.Edit source codea.Double click main.c in Sources folder — the Editor window opensdisplaying contents of file.main.c in Editor Windowb.Make changes to contents of main.c file, if desired.c.From the IDE main menu bar, select File > Save — the IDE saveschanges.4.Add files if appropriatea.In the project window, select a folder.b.From IDE main menu bar, select Project > Add Files.The Select files to add dialog box appears.c.Navigate to the directory that contains file you want to add.d.Select the filename of file you want to add to project.e.Click Open — the Project Messages window appear indicating accesspath has been added to target, if the path is new to the project.f.In the project window, filename of the added file appears under theselected folder.5.Build projecta.From IDE main menu bar, select Project > Make — the IDE builds(assembles, compiles, and links) project; Error & Warnings windowopens showing any error messages and warning messages1.Start debuggera.Click on project window title bar to ensures that window is active projectb.From main menu bar, select Project > Make.c.From main menu bar, select Project > Debug — the True-TimeSimulator & Real-Time Debugger window opens.True-Time Simulator & Real-Time Debugger WindowNOTE The Source and Assembly panes display the main.c program and code.2.Set breakpointa.Point at a C statement in Source window and right-click — the Sourcecontext menu appears.b.Select Set Breakpoint — a permanent breakpoint mark is set.3.Run applicationa.From the True-Time Simulator & Real-Time Debugger window, selectRun — the Run menu appears.b.Select Start/Continue or click on Start/Continue icon — theProgram executes till the first breakpoint; Command pane displaysprogram statusDebugger Simulator Command Pane4.Click the Start/Continu e icon — the simulator resumes programexecution.5.Click the Halt icon — the Simulator stops program execution.6.From the True-Time Simulator & Real-Time Debugger windowtoolbar, select File > Exit to exit the debugger.7.From IDE main Window toolbar, select File > Exit to exit theCodeWarrior IDE.Congratulations!You have successfully created, built, and run an HC08 application with the CodeWarrior for Microcontrollers V6.xsoftware!Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. CodeWarrior is a trademark or registered trademark of Freescale Semiconductor, Inc. in the United States and/or other countries. PROCESSOR EXPERT and EMBEDDED BEANS are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners.Copyright © 2009 Freescale Semiconductor, Inc. All rights reserved.Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document.Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals”, must be validated for each customer application by customer's technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part.How to Contact UsCorporate Headquarters Freescale Semiconductor, Inc. 6501 William Cannon Drive West Austin, Texas 78735U.S.A.World Wide Web /codewarrior Technical Support /supportRevised: 24 September 2009。
codewarrior的使用

第六章CodeWarrior的软件开发环境6.3 打开工程在主菜单下选择File/Open。
如图6-2图6-2 打开工程菜单弹出对话框图6-3,在“对象类型”中选择“Project Files(*.mcp)”。
图6-3 工程对象类型出现图6-4,选择要打开的工程,然后点击“打开”,就可以打开一个工程。
图6-4 工程对象名称如果想要修改程序,在图6-5界面可以完成。
图6-5用户工程文件窗口此时,如果想要编译连接和在线调试程序,参考6.5和6.6。
6.4 创建项目从主菜单栏选择File\New。
出现一个新的窗口如图6-6所示。
注意: 新窗口可能和你的屏幕不相同,取决于你的安装对象。
图6-6新建工程单击Project标签显示项目面板。
选择HC(S)08 New Project Wizard。
在Project name 输入框,输入新项目的名称。
在Location输入框,确定你想保存的文件的路径。
注意:当IDE创建一个项目时,会自动在项目文件中添加扩展名为.MCP的工程文件。
点击确定,出现新项目对话框如图6-7所示。
在Page1中,选择你所使用的芯片的类型。
图6-7 选择芯片类型在Page2中,选择使用语言的种类,如图6-8所示图6-8 选择编程语言在Page3种选择使用相对汇编还是绝对汇编,如图6-9所示。
图6-9 选择汇编方式在Page4中进行方式选择,如图6-10所示。
图6-10选择调试模式P&E Full Chip Simulation方式允许芯片及其外围设备进行在线调试,或者是利用软件进行模拟时采用这种方式。
P&E Hardware Debugging 方式是当HC08与外围设备硬件接口是通过P&E提供的时候,就得采用这种方式。
MMDS-MMEVS 方式是指目标界面与MMDS-MMEVS 仿真系统连接,使用Motosil 协议是多使用的方式。
上述三种是比较常用的几种的方式,如果不确定的时候,可以把三种方式都选上,这样会把连接变得更简单。
Codewarrior IDE快速入门[1]
![Codewarrior IDE快速入门[1]](https://img.taocdn.com/s3/m/585a74eb5ef7ba0d4a733bc8.png)
图 2.6 选择 PC-lint 在 New Project Wizard – Page5 中,选择启动程序类型。如图 2.7 所示。
图 2.7 选择启动程序类 在 New Project Wizard – Page6 中,选择浮点数类型。如图 2.8 所示。
图 2.8 选择浮点数类型 在 New Project Wizard – Page7 中,选择存储器类型。如图 2.9 所示。
图 2.18 软件仿真窗口
2) 在线仿真和下载程序(In-Circuit Debug/Programming)
这种方式是将程序下载到目标板上,然后在硬件 MCU 上运行程序,通过 Multilink 接 口来控制程序的运行。
在 Codewarrior IDE 窗口中, 在左边 Lab1.mcp 下面选择框中,选择 P&E ICD 目标,然 后编译。将 P&E USB Multilink08 将 PC 机和目标板(DEMO908GZ60)连起来,如图 2.19 所示。然后按 F5 键进入调试。
//时钟初始化函数 void TBM_Init(void) {
//时基中断使能,时基中断标志位清 0,外部晶振 8MHZ,时钟中断频率 8MHz/8192 1ms
TBCR = (TBCR_TBIE_MASK|TBCR_TACK_MASK| TBCR_TBR0_MASK);
TBCR_TBON = 1; //时钟启动 }
3 编译(Make)
编辑完源程序后,点击 codewarrior IDE 工具栏上的 Make 图标(或按 F7 键),会编译 和链接项目。如图 2.13 所示。
图 2.13 Make 图 标 如果源程序有错误,IDE 会在 Errors & Warnings 窗口中显示错误和警告信息,如图 2.14 所示。改正错误后,重新编译,直到没有错误为止。
CodeWarrior V10.1 使用方法快速入门

CodeWarrior V10.1 使用方法快速入门CodeWarrior V10.1 Quick Start Guide1.启动CodeWarrior。
如果是首次启动该软件,需要设定一个工作空间。
选定工作空间后,如果是第一次运行CodeWarrior,则首先进入“欢迎”界面,点击该界面左上角“×”按钮,关闭该界面后即进入“C/C++项目”编程界面。
2.新建工程:在工具栏中选择 “文件->新建->BareBoard Project”,如图1所示。
图11)设定文件名在缺省状态下,该新建工程将保存在当前工作空间的文件夹下。
完成后点击“下一步”,如图2所示。
图22)选择芯片类型。
此处以MK10N512VMD100为例。
选择好芯片类型后,点击“下一步”,如图3所示。
图33)选择调试器类型(可多选)如果成功安装了新的USBBDM并且patch成功,此处会出现USBDM选项,如图4所示。
如果要在该工程中添加一些已有文件、或者希望生成一个默认的main.c文件,则完成后点击“下一步”。
如无上述需求,则直接点击“完成”。
此时将生成一个包含Startup Code、但不含main.c 的新工程。
图44)选择导入的默认文件以及是否生成main.c,完成后点击“下一步”。
CodeWarrior的默认编程语言是C,也支持C++和汇编,如果使用C语言编程,此处也可直接单击“完成”,具体操作如图5所示。
图55)选择编程语言,完成后点击“下一步”,如图6所示。
图66)选择是否需要调用一些快速开发工具(如Processor Expert、Device Initialization),完成后点击“完成”,如图7所示。
图7至此,CodeWarrior将为您生成一个包含Startup.c和main.c的新工程。
在编程界面(C/C++项目)下的工程窗口下,您可以浏览该工程含有的全部文件。
如果您无法找到上述窗口,可在CodeWarrior界面左下角的视图管理器中寻找。
CodeWarrior 10.2简明手册(V1.1)

CodeWarrior 10.2简明手册CodeWarrior 10.2简明手册 (1)1 下载安装CW v10.2 (1)2 安装BDM驱动 (2)3 导入现有工程 (3)4 编译、下载源码工程 (4)5. 带有操作系统程序的编译、下载 (6)5.1 带有操作系统模板程序的打开 (6)5.2 带有操作系统模板程序的编译 (7)5.3 带有操作系统模板程序的下载 (7)6 CodeWarrior 10.2常用操作 (8)7 常见问题说明 (9)基于Eclipse的CodeWarrior Development Studio for Microcontroller v10.2(简称CW10.2)作为一个完整的集成开发环境,提供了高度可视化操作及自动创建复杂嵌入式系统应用的功能,为使用Freescale嵌入式产品开发提供了便利。
官方推荐使用CW v10.2进行Freecale Kinetis嵌入式产品的开发。
本文将对使用CW v10.2开发K60项目的操作进行简要说明。
本文安装的cw10.2 版本是特别版的,支持128KB的代码大小。
用户若需要更大的代码空间和更多的功能的话,则需要向飞思卡尔申请license,这些license都是要收费的。
1 下载安装CW v10.2飞思卡尔半导体为注册用户在其官方网站的网址链接处下载后,双击可执行安装文件,如图1所示,根据提示即可完成安装。
由于有的CW10.2版本安装完成后默认是中文版的,有的默认是英文版的。
集成开发环境的原版是英文版的,所以英文版的运行速度比中文版的快很多。
这里建议用英文版的CW10.2,不建议用户使用中文版集成开发环境,所以本章介绍的使用说明都是基于英文版的。
想将飞思卡尔的CW10.2集成开发环境变成英文版,首先需要关闭当前的CW10.2,然后右击CW10.2桌面图标选择“属性”,在“目标”栏下“…”后面加上“–nl en”再单击“应用”后便改成英文版;加上“–nl zh”可以改2 安装BDM驱动CW_v10.2中已包含了BDM写入器(Open Source BDM,OSBDM)的驱动文件,将BDM接到PC机器时,Windows会提示发现新硬件:提示连接到“Windows Update”更新,选择“否,暂时不”,点击“下一步”。
win7 64位 旗舰版 安装CodeWarrior5.1的方法!(必成)

Win7 64位旗舰版安装CodeWarrior5.1的方法1,首先要注意的一点是,在安装的时候,用默认的安装路径,不要对安装路径发生改动!!!即在C盘中。
如果你装在其他盘中,有时候很多系统文件是找不的。
2,然后,next—Yes to all –next----install等一列的next后就finish了,很愉快的就装完了,但当你下载程序的时候,你几乎会崩溃的,下载和调试就可望而不可即了:我几乎是尝试了论坛中的所有帖子,还是未能如愿以偿的解决问题,在不重装系统和虚拟机的情况下。
如果大家想在虚拟机上安装,你可以看看这个帖子:/thread-119240-1-1.html挺好的!!3,接下来,你将tbdml文件夹(下载方式在文档的最后面)中的3的dll文件复制到你软件的安装目录下:C:\Program Files (x86)\Freescale\CWS12v5.1\Prog\gdi中,如果你的驱动没有问题的话,这个时候就能解决问题。
但是,很多时候,还是下不了程序,这个时候就是你BDM驱动的问题了。
4,在设备管理其中,你会发现这样的一个USB驱动:Unknown Device #15,双击它,在弹出的对话框中按照如下所选:6,选择:浏览计算机以查找驱动软件程序(R)这项。
7,先将USB_Driver(下载方式在文档的最后面)这个压缩文件解压,然后点:浏览,找到这个解压文件夹,点击下一步,就ok了!!8,然后你会在你的设备管理器中发现:这样的驱动(USBDM),这样就成功了!!在下载程序的时候把BDM拔了重插一次就好了!!9,这样就万事大吉了:10,我将其中使用的两个文件夹,下载方式如下,大家下载安装,祝大家坐车成功!!(1)、/forum.php?mod=viewthread&tid=214859&extra=(2)、/detail/labor123/6865537(3)、/detail/labor123/6865571。