System Setup
Once you have installed the CodeWarrior application and become familiar with its operation through the
virtual lab, the software development environment can be validated.
Software Development Environment Validation Exercise
1. Create a new project in CodeWarrior for the MC9S12P128 MCU using the Project Wizard that appears when
CodeWarrior is launched. Create the project using default settings but be sure to include the USB BDM tool
included with your kit as the target connection.
2. Once you have the project created, verify the integrity of the empty software project by doing a build.
3. Once successful, connect the ECU to your 12 V power source using your simulated load harness.
4. Next, connect the PC to the USB BDM tool . Installation will be required if this is the first connection to the PC,
follow on screen menu and install driver automatically.
5. Connect the BDM ribbon cable to the BDM header on the ECU, note the location of Pin 1 as the red wire on the
cable and number 1 near the header.
6. Press the debug control in CodeWarrior to download the empty software project to the ECU. Follow the on
screen menus to connect and program the ECU, as performed in the Virtual Lab for the S12XE.
7. Press the “GO” arrow and allow execution for a few seconds before pressing “HALT”. The source window should
show the processor stuck in an infinite FOR loop. This verifies that the ECU is working and the software
environment has been created allowing programming and development.
As a final piece towards a complete development environment, a build of the example software will verify
if all of the tools discussed this far are working on your system.
System Setup Validation Exercise
1. Save the example application software by copying the folder “Example Scooter Application” from the DVD. This
is a CodeWarrior project that contains a working application that runs a 50cc scooter engine
2. Open “My _Engine_Project.mcp” in the saved folder through CodeWarrior.
3. Build the project.
4. Program the ECU by providing power and clicking debugger per previous exercise.
5. Run the application using the green “GO” button.
6. Stimulate the application by running the engine position simulation and using the Engine Stop Switch. Operation
should be identical to simulated engine environment test performed above.
Note: When using the TBDML as a BDM tool, the BDM communication speed must be manually changed
when the MCU switches between internal and external oscillator settings. The example application
switches from internal to external oscillator and it is necessary to change the BDM speed to 8MHz as
shown in Figure 10 . This setting is found in the TBDML HCS12 drop down menu in the debugger
window. If you do not have this drop down menu, you do not have the proper connection selected in
Codewarrior.
Freescale Semiconductor
13
相关PDF资料
KIT33812EKEVBE BOARD EVALUATION FOR MC33812
KIT33879AEKEVBE BOARD EVALUATION FOR MC33879
KIT33880DWBEVB KIT EVAL FOR MC33880 8X SW W/SPI
KIT33886DHEVB KIT EVAL FOR MC33886 H-BRIDGE
KIT33887EKEVBE BOARD EVALUATION FOR MC33887
KIT33887PNBEVB KIT EVAL 33887 5A H-BRIDGE PQFN
KIT33905D5EKEVBE KIT EVALUATION FOR MC33905
KIT33912EVME KIT EVALUATION FOR MC33912
相关代理商/技术参数
KIT33812ECUEVME 制造商:Freescale Semiconductor 功能描述:Small Engine Control Reference Design
KIT33812EKEVBE 功能描述:电源管理IC开发工具 INTEGRATED DUAL LOW & HI RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33813AEEVBE 功能描述:电源管理IC开发工具 2 Cylinder Small Engine RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33814AEEVBE 功能描述:交换机 IC 开发工具 2 Cylinder Small Engine RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:USB Power Switches 工具用于评估:MAX4984E 工作电源电压:2.8 V to 5.5 V
KIT33816AEEVM 功能描述:电源管理IC开发工具 Engine Control Module RoHS:否 制造商:Freescale Semiconductor 产品: 类型: 工具用于评估: 输入电压: 输出电压:
KIT33879AEKEVBE 功能描述:电源管理IC开发工具 CONFIGURABLE OCTAL RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33880DWBEVB 功能描述:电源管理IC开发工具 33880DWB COSS KIT RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33883DWEVB 功能描述:KIT EVAL FOR MC33883 PRE-DRIVER RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP