30.11.2012 Views

Freescale PowerPoint Template

Freescale PowerPoint Template

Freescale PowerPoint Template

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

November, 2010<br />

CodeWarrior Development Studio<br />

for Microcontrollers v10.0<br />

Ruth Rhoades<br />

CodeWarrior Product Management<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

TM


►A Java development environment<br />

• Widely regarded as the Java development environment<br />

►An IDE framework<br />

• Eclipse + JDT = Java IDE<br />

• Eclipse + CDT = C/C++ IDE<br />

• Eclipse + PHP = PHP IDE<br />

• Eclipse + JDT + CDT + PHP = Java<br />

►A Tools Framework<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 2<br />

What is Eclipse?<br />

• Focused on developing a universal platform of frameworks and exemplary tools<br />

►An Open Source Project and Community<br />

• All Eclipse projects are open-source and available for free download<br />

• Hundreds of plug-ins are provided by commercial companies, organizations,<br />

and individuals<br />

TM


►An ecosystem<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 3<br />

What is Eclipse?<br />

• Focused on nurturing the eco-system to complement and enhance the Eclipse<br />

Platform<br />

• Many members, including major Java, Linux and Embedded vendors<br />

• Dozens of open source projects<br />

• Millions of downloads<br />

►A Foundation<br />

• Independent not-for-profit foundation formed in 2004<br />

• Created to manage and direct the ongoing development of the Eclipse open<br />

source software project<br />

• Responsible for providing IT infrastructure required by development teams<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 4<br />

Eclipse Foundation Members<br />

► Strategic Members – Actuate, brox, ca, Cloudsmith, Genuitec, IBM, Innoopract, itemis, Nokia, Oracle,<br />

SAP, Sonatype, Sopera<br />

► Enterprise Members – Cisco, Motorola, BlackBerry<br />

► Solution Members – AdaCore, Adobe, aptana, ARM, ARS, Aster Data, AvantSoft, Black Duck, BLU AGE,<br />

BREDEX, bsi, CAS Software, CollabNet, compeople, Compuware, Curl, DDC-I, Empolis, Engineering Group,<br />

Ericsson, Eteration, Excelsior, Exist Global, Express Logic, <strong>Freescale</strong> Semiconductor, froglogic, tni<br />

Software, Gerhardt, Google, HP, Ingres, Innovations Softwaretechnologie, Innovent Solutions, Instaniations,<br />

instinctools, Intalio, Intel, Intervoice, LynuxWorks, Mentor Graphics, Mind8, Modular Mind, NEC, nuxeo, OC<br />

Systems, Open-Xchange, OpenMake Software, Perforce, Polarion Software, Progress Software, Purple<br />

Scout, Puzzle ITC, QNX, red hat, Remain, Replay Solutions, Salesforce.com, Sony Ericsson, Soyatec,<br />

SpringSource, Sybase, Symbian, Tasktop, teamprise, tensilica, RCP Company, TIBCO, Virutech,<br />

WeigleWilczek, Wind River, Xored Software, XpoLog, Zend, Zenika, ZenSar<br />

► Associate Members - Redmond Media Group, Queue, Addison Wesley, AT& Developer Program, Atmel,<br />

BZ Media, Carleton University, Software Industry Center, cea list, CENIT, CWI, Communications and Media<br />

Arts, Generalitat Valenciana, Curl, DFKI, DSDM, DZone Network, e-Forum, EADS, Polytechnique Montreal,<br />

Enea, ETRI, Eurotech, FOKUS, Hitachi, IDG, Institute for Software, INRIA, Instituto Eldorado, Kybele,<br />

Laboratory for Safe and Secure Software, Mongo Software Labs, MB Project, Mercer, Meruvian Foundation,<br />

Mia-Software, MKS, Montavista, OMG, Open Source Business Foundation, Open Systems Publishing, OSGi<br />

Alliance, Open Source Lab, OW2, The RTC Group, Serena Software, Siemens, SIGS Datacom, Social<br />

Physics, Software & Support Verlag, STAR, ST, SWARM, TEI, Texas Instruments, Thales, Third Millennium<br />

Society, Tieto, Universidad Autonoma de Occidente, University of Agder, Programming Distributed Systems,<br />

University of Manchester, Vector, Vogel, VTT Technical Research Centre of Finland, Xilinx<br />

TM


► CodeWarrior on Eclipse leverages an extensible software platform made up of<br />

core services and interoperable plug-in components.<br />

► Components integrate with the platform and can be extended to interoperate with<br />

each other.<br />

► The platform facilitates integration of components - both <strong>Freescale</strong> and 3rd party.<br />

3rd Party<br />

Service A<br />

CodeWarrior Development Studio - Eclipse Platform<br />

3 rd Party<br />

Service B<br />

CodeWarrior<br />

Service X<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 5<br />

CodeWarrior<br />

Service Y<br />

Eclipse-Based Development Platform<br />

(CodeWarrior or Strategic 3rd Party)<br />

CodeWarrior<br />

Service Z<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 6<br />

CodeWarrior for Microcontrollers 10.0<br />

Integrates the development tools for the RS08, HCS08 and ColdFire ® architectures<br />

into a single product based on the Eclipse open development platform.<br />

TM


RS08<br />

HCS08<br />

ColdFire V1-V4<br />

ColdFire+<br />

Kinetis<br />

MPC56xx<br />

DSC<br />

HCS12(X)<br />

HC08<br />

HC12<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 7<br />

CodeWarrior Roadmap<br />

2009 2010<br />

2011<br />

Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4<br />

CW MCU<br />

v10.0<br />

Beta 1<br />

CW MCU<br />

v10.0<br />

Beta 2<br />

CW MPC56xx v2.x<br />

CW MCU<br />

v10.0<br />

Beta 3<br />

CW DSC v8.x<br />

CW12 v5.x<br />

CW MCU<br />

v10.0<br />

FCS<br />

CW MCU v6.x<br />

CW12 v5.x<br />

CW MCU<br />

v10.1<br />

Beta<br />

CW MCU<br />

v10.2<br />

Beta<br />

CW MCU<br />

v10.1<br />

FCS<br />

Jan 2011<br />

CW MCU<br />

v10.2<br />

FCS<br />

Mar 2011<br />

CW MCU<br />

v10.3<br />

Beta<br />

CW MCU<br />

v10.3<br />

FCS<br />

CW MCU<br />

v10.4<br />

Beta<br />

TM


CodeWarrior Development Suite for<br />

Microcontrollers v10.0 Features<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 8<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 9<br />

Architectures Supported<br />

►Use CodeWarrior Development Studio for Microcontrollers v10.0 to<br />

develop RS08, HCS08, and ColdFire projects<br />

• RS08 derivatives<br />

• HCS08 derivatives<br />

• V1 ColdFire derivatives<br />

• V2 ColdFire derivatives<br />

• V3 ColdFire derivatives<br />

• V4 ColdFire derivatives<br />

• ColdFire evaluation boards<br />

TM


►CodeWarrior optimizing compilers<br />

• RS08<br />

• HCS08<br />

• V1-V4 ColdFire<br />

►Debugger<br />

• Eclipse CDT<br />

• Extended for embedded programming<br />

►Profile and Trace<br />

• HCS08 derivatives<br />

• V1 ColdFire derivatives<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 10<br />

Multiple Compilers / Single Debugger<br />

TM


Use Welcome Screen for immediate access to development<br />

resources.<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 11<br />

Welcome Screen<br />

TM


1<br />

2<br />

3 4<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 12<br />

5<br />

New Project Wizard<br />

Use New Project Wizard to create a new project in as few as 6 clicks.<br />

6<br />

TM


1<br />

2<br />

3<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 13<br />

5<br />

4<br />

MCU Change Wizard<br />

Use MCU Change Wizard to port projects to a new microcontroller in as few as 6 clicks.<br />

6<br />

TM


►Use the Project Importer to import CodeWarrior Classic<br />

projects<br />

• CodeWarrior Development Studio for Microcontrollers v6.x<br />

• CodeWarrior Development Studio for ColdFire Architectures v7.x<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 14<br />

Project Importer<br />

TM


► A rapid application design tool with …<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 15<br />

Processor Expert<br />

• Graphical User Interface which allows an application to be specified by the functionality<br />

needed<br />

• Automatic code generator which creates tested, optimized C code tuned to the<br />

application needs and selected <strong>Freescale</strong> MCU<br />

• Built-in knowledgebase, which immediately flags resource conflicts and incorrect<br />

settings<br />

► Architectures supported<br />

• RS08 derivatives<br />

• HCS08 derivatives<br />

• ColdFire derivatives<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 16<br />

Tutorials<br />

Step by step tutorials – known as cheat sheets in Eclipse – are available for standard tasks<br />

TM


Part Numbers and Pricing<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 17<br />

TM


Perpetual<br />

Includes perpetual use of Product Suite<br />

plus Technical Support & Maintenance<br />

for 12 months<br />

Additional years of technical support indicated<br />

by “TS”<br />

Special Editions<br />

FREE<br />

CodeWarrior Pricing and Packaging Model<br />

Basic Suite<br />

$995<br />

TS-$195<br />

$395<br />

Standard Suite<br />

$2495<br />

TS-$495<br />

$995<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 18<br />

Professional Suite<br />

$4995<br />

TS-$995<br />

$1995<br />

Annual Subscription<br />

Includes use of product suite plus<br />

Technical Support & Maintenance for<br />

12 months<br />

TM


Basic Suite ($995 Perpetual License / $395 Annual Subscription)<br />

• CodeWarrior Development Studio for Power Architecture, Flash Loader Only (Classic, Windows hosted) (CWS-PPC-FLASH-CX)<br />

• CodeWarrior for Power Architecture, Linux Application Edition (Classic, Linux hosted) (CWS-PPC-LLAPP-CX/LX)<br />

• CodeWarrior for Power Architecture, Linux Application Edition (Classic, Windows hosted) (CWS-PPC-LINWH-CX/LX)<br />

• CodeWarrior for ColdFire ISA, Linux Application Edition (Classic, Linux hosted) (CWS-MCF-LLAPP-CX/LX)<br />

• CodeWarrior for ColdFire ISA, Linux Application Edition (Classic, Windows hosted) (CWS-MCF-WLAPP-CX/LX)<br />

• CodeWarrior for ColdFire, Compiler Upgrade Edition (Classic, Windows hosted) (CWS-MCF-CUPG-CX/LX)<br />

• CodeWarrior for DSC 56800/E, 64K Compiler Upgrade Edition (Classic, Windows hosted) (CWS-568-C64K-CX/LX)<br />

• CodeWarrior for Microcontrollers, Compiler Upgrade Edition (Classic, Windows hosted) (CWS-H08-CUPG-CX/LX)<br />

• CodeWarrior for Microcontrollers, Basic Edition (Eclipse, Windows hosted) (CWS-MCU-BASIC-CX/LX)<br />

• CodeWarrior for Microcontrollers, Basic Edition (Eclipse, Linux hosted) (CWS-MCU-BASLH-CX/LX)<br />

• CodeWarrior for HCS12(X), 64K Compiler Upgrade Edition (Classic, Windows hosted) (CWS-H12-C64K-CX/LX)<br />

• CodeWarrior for MobileGT, Linux Application Edition (Classic, Linux hosted) (CWS-MGT-LLAPP-CX/LX)<br />

• CodeWarrior Development Studio for mobileGT, Linux Applications Edition (Classic, Windows hosted) (CWS-MGT-LINWH-CX/LX)<br />

Standard Suite ($2495 Perpetual License / $995 Annual Subscription)<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 19<br />

CodeWarrior Suites<br />

• CodeWarrior for Power Architectures, Debug Only Edition (Classic, Windows hosted) (CWS-PPC-CMWDB-CX/LX)<br />

• CodeWarrior for Power Architectures, Linux Platform Edition, Debug Only (Classic, Linux hosted) (CWS-PPC-LLPDB-CX/LX)<br />

• CodeWarrior for StarCore (Classic, Windows hosted) (CWS-STC-WIN-CX/LX)<br />

• CodeWarrior for StarCore (Eclipse, Windows hosted) (CWS-SC-PRO-CX/LX)<br />

• CodeWarrior for ColdFire Architectures, Standard Edition (Classic, Windows hosted) (CWS-MCF-STDED-CX/LX)<br />

• CodeWarrior for DSC56800/E, Full Product (Classic, Windows hosted)(CWS-568-CX/LX)<br />

• CodeWarrior for Microcontrollers, Standard Edition (Classic, Windows hosted) (CWS-H08-STDED-CX/LX)<br />

• CodeWarrior for Microcontrollers, Standard Edition (Eclipse, Linux hosted) (CWS-MCU-STDLH-CX/LX)<br />

• CodeWarrior for Microcontrollers, Standard Edition (Eclipse, Windows hosted) (CWS-MCU-STDED-CX/LX)<br />

• CodeWarrior for HCS12(X), Standard Edition (Classic, Windows hosted) (CWS-H12-STDED-CX/LX)<br />

• CodeWarrior for MPC5XX, Debug Only Edition (Classic, Windows hosted) (CWS-MPC-5XXDB-CX/LX)<br />

• CodeWarrior for MPC5500/5600, Professional Edition (Classic, Windows hosted) (CWS-MPC-5500P-CX/LX)<br />

• <strong>Freescale</strong> eTPU/eTPU2 Command-line Compiler (FSLP-ETPU-COMP-N/L)<br />

TM


Professional Suite ($4995 Perpetual License / $1995 Annual Subscription)<br />

• CodeWarrior for Power Architectures, Professional Edition (Classic, Windows hosted) (CWS-PPC-CMWFL-CX/LX)<br />

• CodeWarrior for Power Architecture, Linux Platform Edition (Classic, Linux hosted) (CWS-PPC-LLPLT-CX/LX)<br />

• CodeWarrior for StarCore (Classic, Windows hosted) (CWS-STC-WIN-CX/LX)<br />

• CodeWarrior for StarCore (Eclipse, Windows hosted) (CWS-SC-PRO-CX/LX)<br />

• CodeWarrior for 68K, Full Product (Classic, Windows hosted) (CWS-68K/FLT)<br />

• CodeWarrior for DSP 56800/E, Full Product (Classic, Windows hosted) (CWS-568-CX/LX)<br />

• CodeWarrior for ColdFire Architectures, Professional Edition (Classic, Windows hosted) (CWS-MCF-PROED-CX/LX)<br />

• CodeWarrior for ColdFire ISA, Linux Platform Edition (Classic, Linux hosted) (CWS-MCF-LLPLT-CX/LX)<br />

• CodeWarrior for Microcontrollers, Professional Edition (Classic, Windows hosted) (CWS-H08-PROED-CX/LX)<br />

• CodeWarrior for Microcontrollers, Professional Edition (Eclipse, Linux hosted)(CWS-MCU-PROLH-CX/LX<br />

• CodeWarrior for Microcontrollers, Professional Edition (Eclipse, Windows hosted)(CWS-MCU-PROED-CX/LX)<br />

• CodeWarrior for HCS12(X), Professional Edition (Classic, Windows hosted) (CWS-H12-PROED-CX/LX)<br />

• CodeWarrior for MobileGT Pro Edition (Classic, Windows hosted) (CWS-MGT-CX/LX)<br />

• CodeWarrior for MobileGT, Linux Platform Edition (Classic, Linux hosted) (CWS-MGT-LLPLT-CX/LX)<br />

• CodeWarrior for MPC5XX (Classic, Windows hosted)(CWS-MPC-5XX-CX/LX)<br />

• CodeWarrior for MPC5500/5600, Professional Edition (Classic, Windows hosted) (CWS-MPC-5500P-CX/LX)<br />

• <strong>Freescale</strong> eTPU/eTPU2 Command-line Compiler (FSLP-ETPU-COMP-N/L)<br />

Special Editions - FREE<br />

CWX-HXX-SE<br />

CWX-568-SE<br />

CWX-MCF-SE<br />

CWS-MPC-5500-SE<br />

CWX-MCU-SE<br />

CWX-MCU-SELH<br />

Evaluations - FREE<br />

CWX-H08-PROED-EX<br />

CWX-H12-PROED-EX<br />

CWX-MCF-PROED-EX<br />

CWX-MCF-LLPLT-EX<br />

CWX-MCU-PROED-EX<br />

CWX-MCU-LLPLT-EX<br />

CWX-MGT-EX<br />

CWX-MPC-5XX-EX<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 20<br />

CodeWarrior Suites<br />

CWX-MPC-5500B-EX<br />

CWX-PPC-CMWFL-EX<br />

CWX-PPC-LLPLT-EX<br />

CWX-PPC-LLAPP-EX<br />

CWX-PPC-LINWH-EX<br />

CWX-STC-WIN-EX<br />

CWX-SC-PROED-EX<br />

TM


►Special Editions<br />

• CWX-MCF-SE<br />

►Basic Suite – C Compiler Upgrade<br />

• Perpetual – $995<br />

• CWP-BASIC-NL (node locked)<br />

• CWP-BASIC-FL (floating)<br />

• Annual Subscription – $395<br />

• CWA-BASIC-NL (node locked)<br />

• CWA-BASIC-FL (floating)<br />

• Tech Support - $195<br />

• CWT-BASIC<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 21<br />

Suite Pricing and Part Numbers<br />

►Standard Suite – Standard Edition<br />

• Perpetual – $2495<br />

� CWP-STANDARD-NL (node locked)<br />

� CWP-STANDARD-FL (floating)<br />

• Annual Subscription – $995<br />

� CWA-STANDARD-NL (node locked)<br />

� CWA-STANDARD-FL (floating)<br />

• Tech Support - $495<br />

� CWT-STANDARD<br />

►Professional Suite – Pro Edition<br />

• Perpetual – $4995<br />

� CWP-PRO-NL (node locked)<br />

� CWP-PRO-FL (floating)<br />

• Annual Subscription – $1995<br />

� CWA-PRO-NL (node locked)<br />

� CWA-PRO-FL (floating)<br />

• Tech Support - $995<br />

� CWT-PRO<br />

TM


► Annual Subscription License<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 22<br />

Upgrade Policy<br />

• If you have an active annual subscription license, you can download CW MCU v10.0 at no<br />

cost<br />

• If your annual subscription license has expired, you must purchase another license before<br />

downloading CW MCU v10.0<br />

• Basic Suite: $395<br />

• Standard Suite: $995<br />

• Professional Suite: $1,995<br />

► Perpetual License<br />

• If you purchased a perpetual license within the last 12 months, you can download CW<br />

MCU v10.0 at no cost<br />

• If you have an active technical support agreement (after the first 12 months), you can<br />

download CW MCU v10.0 at no cost<br />

• If your technical support agreement has expired, you must purchase another technical<br />

support agreement before downloading CW MCU v10.0<br />

• Basic Suite: $195<br />

• Standard Suite: $495<br />

• Professional Suite: $995<br />

TM


Basic Eclipse Terms<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 23<br />

TM


►Workbench = desktop development environment<br />

• Contains all C/C++ development-related tools.<br />

• Shows different perspectives of the working environment.<br />

• Main window that appears when Eclipse starts.<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 24<br />

Workbench<br />

TM


►Workspace = directory that stores the source code, files and<br />

settings related to your work.<br />

• Specify the workspace on startup<br />

• More than one project can be in a workspace<br />

• To switch workspaces select File > Switch Workspace<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 25<br />

Workspace<br />

TM


►Project = container for organizing files and folders<br />

• All C/C++ work is done in the context of projects<br />

• CodeWarrior creates projects in new folders by default<br />

• New files and folders can be added to a project<br />

� File > New > File: creates a new file in project directory within the workspace<br />

directory<br />

� File > New > Folder: creates a new directory in project directory within the<br />

workspace directory.<br />

� Files dragged into a project are physically copied into the project directory.<br />

• Files outside the project folder (or outside the workspace) can be linked to a<br />

project<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 26<br />

Project<br />

� File > New > File > Advanced > Link to File System: creates new link in project<br />

directory within the workspace, which refers to a file in the file system<br />

� File > New > Folder > Advanced > Link to File System: creates new link to a<br />

directory in project folder within the workspace. The link points to a directory in the<br />

user‟s file system. Creating this link will pull the directory and all sub-components into<br />

the CodeWarrior project.<br />

TM


►View = a “visual” panel in the Workbench.<br />

• Displays information about the contents of your workbench.<br />

• Different views are provided for different tasks<br />

� Problems – compile or other problems.<br />

� Console – standard run window console.<br />

� C/C++ Projects – view of projects in workspace.<br />

� Breakpoints – debugging breakpoints in open projects.<br />

• Editors are special “views” for editing files.<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 27<br />

View<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 28<br />

Perspectives<br />

►Perspective = collection of Eclipse views and action sets organized<br />

into a layout that suits an assigned task<br />

• Current perspective is highlighted at the top of the perspective window<br />

• Perspectives are shown on perspective shortcut bar (top right)<br />

• Click the perspective icon to switch among open perspectives<br />

• To open a perspective:<br />

� Select Window > Open Perspective > [select -or- Other]<br />

� On the perspective view, choose Open Perspective > [select -or- Other]<br />

Open Perspective Icon<br />

• To close a perspective:<br />

� Select Window > Close Perspective<br />

TM


Demonstration<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 29<br />

TM


Click „File‟<br />

Select „Import…‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open existing project - 1<br />

Select „Existing Projects‟<br />

30<br />

Click „Next‟<br />

TM


Select a workspace folder<br />

Click „OK‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open existing project - 2<br />

Select „Browse‟<br />

31<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open existing project - 3<br />

Select “DEMOQE128<br />

_Quick_Start_S08”<br />

32<br />

Click „Finish‟<br />

TM


1<br />

Select project<br />

2 Click „Project‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

3<br />

Select „Close Project‟<br />

33<br />

Close project<br />

TM


Right click project<br />

1<br />

2<br />

Click „Delete‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Remove project from workspace<br />

Permanently delete Project<br />

3 Remove Project<br />

4 Click Yes‟<br />

34<br />

TM


1 Click „File‟<br />

Select „Switch<br />

Workspace”‟<br />

2<br />

3 Select „Other‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

35<br />

Change workspace<br />

Select New Workspace<br />

4<br />

5 Click „OK‟<br />

TM


Hierarchical<br />

view<br />

Alphabetical<br />

view<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

“CodeWarrior Projects” panel<br />

36<br />

Search view<br />

Search C file<br />

Input “*.c”<br />

Search head file<br />

Input “*.h”<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Source Code Editor and Outline<br />

Source Code Editor Tabs Outline Tab<br />

Move mouse over function name<br />

Press F2 to browse details<br />

37<br />

Lists all functions<br />

and definitions in<br />

current source file.<br />

TM


Select “Project”<br />

1<br />

Select<br />

project<br />

3<br />

2<br />

Select “Properties”<br />

5<br />

Select<br />

“Settings”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure compiler/linker/assembler - 1<br />

4<br />

Click „+‟ to expand C/C++ Build<br />

38<br />

TM


6<br />

Click<br />

“Output”<br />

Configure compiler/linker/assembler - 2<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 39<br />

Configure output<br />

format<br />

TM


7<br />

Click<br />

“Optimization”<br />

Configure compiler/linker/assembler - 3<br />

Configure<br />

optimization<br />

settings<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc. 40<br />

TM


Select project<br />

1<br />

3<br />

Select „Open<br />

Debug Dialog…‟<br />

2 Click „Run‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

4<br />

41<br />

Open Debug Dialog<br />

Select target debugger 5<br />

Select “DEMOQE128_...._HCS08” Option<br />

TM


Select debugger configuration – Target MCU<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

6<br />

Click „Debugger‟ Tab<br />

7<br />

42<br />

Select Target MCU<br />

8<br />

Select FCS<br />

(simulation) or None<br />

TM


9<br />

Click<br />

„Connection‟ Tab<br />

Select BDM interface<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select debugger configuration – BDM Type<br />

11<br />

10<br />

Click<br />

“Debug‟<br />

Select Connection<br />

43<br />

12<br />

TM


Debug View<br />

Editor<br />

Console View Stack<br />

Console View<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Debugger Perspective<br />

Variables View Stack<br />

Variables View<br />

Disassembly View<br />

44<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Changed variables are highlighted<br />

Variables View<br />

45<br />

TM


1<br />

Double click in column left<br />

of line to set breakpoint<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

2<br />

46<br />

To set breakpoints<br />

Click „Breakpoints‟ Tab<br />

Current breakpoints<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

1<br />

Enable/disable breakpoints<br />

Check to disable<br />

2 Check again to enable<br />

47<br />

TM


Click „Help‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

1<br />

2<br />

Open Welcome Screen<br />

Select „Welcome‟<br />

Welcome Screen<br />

48<br />

TM


3<br />

Select topics<br />

Click „Help‟<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

1<br />

4 Click „OK‟<br />

49<br />

Open Help Menu<br />

2 Select „Cheat<br />

Sheets…‟<br />

TM


1. Adjust IDE<br />

layout<br />

5. The next time CodeWarrior opens, the current<br />

layout will be displayed as the default.<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Save current layout as default<br />

Select „Save Perspective As…‟<br />

2<br />

50<br />

3<br />

Select Target<br />

Perspective.<br />

4 Click „OK‟<br />

TM


Lab 1 – Use New Project Wizard and Processor Expert<br />

to create new project<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

51<br />

TM


►This hands-on lab shows you how to…<br />

• Create a new project with the New Project Wizard<br />

• Use Processor Expert to write a simple application<br />

• Test the application‟s functionality<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Create a new project to blink an LED<br />

►The lab uses the MCF51CN128 Tower Kit (TWR-MCF51CN-KIT).<br />

►The application uses a timer on the MCF51CN18 to blink an LED<br />

every quarter second<br />

From the TWR-MCF51CN User Manual<br />

52<br />

TM


1<br />

Click “File”<br />

2 Select “New”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

3<br />

Select<br />

“Bareboard<br />

Project”<br />

Open new project wizard<br />

53<br />

TM


You can change the project<br />

location to another directory.<br />

Default location is used.<br />

Click “Next”<br />

Enter “cn128_LED”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

1<br />

Input project name and select device<br />

2<br />

54<br />

Click “+” to expand<br />

“ColdFire V1”<br />

Click “+” to<br />

3 expand<br />

“MCF51CN”<br />

Select<br />

“MCF51CN128”<br />

Click “Next”<br />

TM


Click<br />

“Next”<br />

Deselect<br />

“P&E USB<br />

BDM Update”<br />

Select “Open<br />

Source BDM”<br />

Click<br />

“Next”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure parameters<br />

Click<br />

“Next”<br />

TM


Click<br />

“Next”<br />

Select<br />

“Processor<br />

Expert”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Add Processor Expert<br />

Select<br />

“MCF51CN128CLK”<br />

Click<br />

“Finish”<br />

Select<br />

“Debug” and<br />

“Release”<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Project creation completed<br />

Please connect TWR-MCF51CN<br />

kit to computer with USB cable.<br />

57<br />

TM


1<br />

2<br />

Click “+” to expand “cn128_led”<br />

Click “+” to expand “ProcessorExpert.pe”<br />

3<br />

Click “+” to expand “Cpus”<br />

Select “CpuMCF51CN128CLK”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Update CPU Component<br />

58<br />

TM


1<br />

Select<br />

“Catagories”<br />

Tab<br />

2<br />

Click “+” to expand<br />

“CPU Internal Peripherals”<br />

3 Click “+” to expand “Port I/O”<br />

Right click “BitIO”<br />

Click “Add to project”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Add BitIO Component for LED<br />

59<br />

TM


Select “Bit1:BitIO”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure BitIO Component – Properties (1)<br />

Select “PTE3”<br />

60<br />

2<br />

Click<br />

arrow<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure BitIO Component – Properties (2)<br />

Select “Output”<br />

61<br />

1<br />

Click<br />

arrow<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure BitIO Component - Methods<br />

1<br />

4<br />

Click “Methods” Tab<br />

Select “generate code”<br />

for NegVal<br />

62<br />

2<br />

Click<br />

arrow<br />

Press cntl+S to save settings<br />

TM


1 Click “+” to expand “Timer”<br />

Click “Add to project”<br />

Right click “TimerInt”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Add TimerInt Component<br />

63<br />

TM


Select “TI1:TimerInt”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure TimerInt Component - Resource<br />

Select “TPM10”<br />

64<br />

2<br />

Click<br />

arrow<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure TimerInt Component – Timing<br />

4 Click “…”<br />

65<br />

TM


Double click<br />

“250.000 ms”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure TimInt Component – Timing<br />

Click “OK”<br />

3<br />

66<br />

TM


Click “Project”<br />

Select<br />

“Generate<br />

code”<br />

Press cntl+S to save settings<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

67<br />

Generate Code<br />

TM


1<br />

Click “+” to<br />

expand<br />

“Sources”<br />

2<br />

Double click<br />

“Events.c”<br />

3 Click “Outline”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

4<br />

Open Events.C in Editor<br />

Select “TI1_OnInterrupt”<br />

“Events.c” is displayed in editor<br />

at TI1_OnInterrupt function<br />

68<br />

TM


1<br />

Click “+” to<br />

expand<br />

“Bit1:BitIO”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

69<br />

Update Events.c<br />

Select “Events.c” and press<br />

cntl+S to save changes<br />

2 Drag „n drop NegVal method into “TI1_OnInterrupt”<br />

TM


Click “Build”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

70<br />

Build the project<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select Debug Configuration<br />

Click “Debug” arrow<br />

Select “Debug Configurations”<br />

71<br />

TM


Select “…Internal_RAM – Open Source BDM”<br />

Click “Debug”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select Debug Configuration<br />

72<br />

TM


Click “Resume”<br />

LED connected to PTE3 should<br />

be blinking every quarter second!<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

73<br />

Run Application<br />

TM


Click “Terminate”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

74<br />

Terminate the Project<br />

TM


Click “Open Perspective”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select “C/C++”<br />

75<br />

Change Perspective<br />

TM


Lab 2 – Using Project Importer<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

76<br />

TM


► This hands-on lab shows how to…<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

77<br />

Project Importer<br />

• Use Project Importer to import a CodeWarrior for Microcontroller v6.3 project<br />

into the current workspace.<br />

► Before starting…<br />

• Unplug mini USB connector from<br />

TWR-MCF51CN board<br />

• Connect mini USB connector to<br />

Functional Elevator board<br />

• Connect P&E USB Multilink to TGT_BDM<br />

connector of TWR-MCF51CN board<br />

• Connect P&E USB Multilink to PC<br />

• Switch-on power on Functional<br />

Elevator board<br />

TM


Click “File”<br />

Click “Import”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open Project Importer<br />

Click “+”<br />

Click “Next”<br />

Select “Project Importer”<br />

78<br />

TM


Select CodeWarrior for Microcontrollers v6.3 project<br />

Browse to CW for MCU v6.3 project<br />

Select the “*.mcp”<br />

Click “Open”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

79<br />

Click “Next”<br />

TM


Click “Next” Click “Next” Click “Next”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure parameters<br />

80<br />

TM


Click “Next”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Input new project name and location<br />

Change Name to<br />

“DEMOCF51CN_Quck_Start_CW10.0”<br />

Select “Use default location”<br />

81<br />

Click “Finish”<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Project import is complete<br />

82<br />

TM


Click<br />

“Project”<br />

Select “Clean…”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Clean and build the project<br />

Select<br />

“DEMOCF51CN_Quick_Start”<br />

Click “OK”<br />

83<br />

Leave default<br />

setting<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select Debug Configuration<br />

Click “Debug” arrow<br />

Select “Debug Configurations”<br />

84<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select Debug Configuration<br />

Select “…CFV1_BDM_PandE_Multilink_CyclonePro”<br />

Click “Debug”<br />

85<br />

TM


Click “Resume”<br />

• Pressing SW2 should turn on LED2<br />

• Pressing SW3 should turn on LED1<br />

• Adjusting potentiometer should toggle<br />

LED3 (red) and LED4 (yellow)<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

86<br />

Run Application<br />

TM


Click “Terminate”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

87<br />

Terminate the Project<br />

TM


Click “Open Perspective”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select “C/C++”<br />

88<br />

Change Perspective<br />

TM


Lab 3 – Monitoring your code<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

89<br />

TM


► This hands-on lab shows how to…<br />

• Configure a debug configuration with view refresh<br />

• Add a register view and set it up for automatic refresh<br />

• Add a memory monitor and set it up for automatic refresh<br />

• Monitor memory and registers while the program is running<br />

►The lab uses the TWR-MCF51CN-KIT.<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

90<br />

Monitoring your code<br />

TM


Click “Run”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure Debug Configuration - 1<br />

Click “Debug Configurations…”<br />

91<br />

TM


Select<br />

“CFV1_BDM_PandE_<br />

Multilink_CyclonePro”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure Debug Configuration - 2<br />

Click “Debugger”<br />

Click “View Refresh”<br />

Enter “1.0”<br />

92<br />

Click “Apply”<br />

Click “Debug”<br />

TM


Enter “0x00800000”<br />

for address<br />

Click “OK”<br />

Click “Memory View”<br />

Click „+‟ to add a memory monitor<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Add Memory Monitor - 1<br />

93<br />

TM


Select “Refresh Automatically”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Add Memory Monitor - 2<br />

Click arrow<br />

94<br />

TM


Click “Resume”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Updated memory<br />

locations are red<br />

95<br />

Monitor memory<br />

TM


Click “Registers”<br />

Click “Fast View”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

96<br />

Add Register View - 1<br />

TM


Drag „n Drop Registers View to<br />

Variables View Stack<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

97<br />

Add Register View - 2<br />

TM


Click “+” to expand<br />

KBIV2_1<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Monitor registers and memory<br />

Click arrow<br />

Select “Refresh Automatically”<br />

98<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Monitor registers and memory<br />

Updated registers are<br />

highlighted in yellow<br />

99<br />

TM


Click “Terminate”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Terminate the Project<br />

100<br />

TM


Click “Open Perspective”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Select “C/C++”<br />

101<br />

Change Perspective<br />

TM


Lab 4 – Trace and Profile<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

102<br />

TM


► This hands-on lab shows how to…<br />

• Configure the “Trace and Profile” tool<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

103<br />

Trace and Profile<br />

• Use the trace view to set triggers, view trace, and calculate execution times<br />

• Use the critical code view to profile your code<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open “Debug Configurations…”<br />

Click “Build”<br />

Select project<br />

“DEMOCF51CN_Quick_Start_CW10.0”<br />

104<br />

TM


Click “Run”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open “Debug Configurations…”<br />

Click “Debug Configurations…”<br />

105<br />

TM


Select<br />

“CFV1_BDM_PandE_<br />

Multilink_CyclonePro”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Configure “Trace and Profile”<br />

Click “Trace and Profile” Tab<br />

Check “Enable<br />

Trace and Profile”<br />

Select “Continuous”<br />

Click “Apply”<br />

Click “Debug”<br />

106<br />

Select “Trace from<br />

Trigger A Onward”<br />

TM


Click “Resume”<br />

Click line 260 in<br />

DEMOCF51CN_Quick_Start.c<br />

Right click in marker bar<br />

Click “Toggle Trace Trigger A”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

107<br />

Set Trace Point<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

After several seconds,<br />

click “Suspend” button<br />

Open Trace Viewer - 1<br />

Click “Trace and Profile Results” view<br />

If view is not displayed, select “Window”-> ‟Show View‟-> ‟Other…‟ in menu,<br />

expand „Analysis‟ tree, select “Trace and Profile Results,” and click OK.<br />

108<br />

TM


Select “+” to expand current project<br />

Select „+‟ to expand Data Source<br />

Select „+‟ to expand Current Results<br />

Double click “Trace”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open Trace Viewer - 2<br />

109<br />

TM


Trace starts from<br />

“Trigger A”<br />

Select Trace Viewer in Editor<br />

Source and<br />

Assembly Code<br />

Execution<br />

Cycle<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open Trace Viewer - 3<br />

110<br />

TM


Right click anywhere in<br />

source code window<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Check FIFO buffer size<br />

Select “Show Raw Fifo” to see<br />

contents of hardware trace buffer<br />

111<br />

TM


Select “Set<br />

Reference”<br />

as start<br />

Right click<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Calculate task execution period<br />

Click as end<br />

Execution cycle is<br />

calculated for “InitKBI”<br />

112<br />

TM


Function<br />

list<br />

Start<br />

Address<br />

Total times instruction<br />

executed in function<br />

Double click “Critical Code”<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Open Critical Code Data View<br />

Select Critical Code View<br />

% of code<br />

to be executed<br />

113<br />

Function<br />

code size<br />

TM


Click “InitKBI” function<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Check Function Profiling Details<br />

The function execution details are displayed!<br />

TM


Kinetis Demonstration<br />

using CodeWarrior for Microcontrollers v10.1 Beta<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

115<br />

TM


Performance Considerations<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

TM


►Recommended System Requirements<br />

• 1.8 GHz Pentium(R) compatible processor or better<br />

• 2 GB RAM<br />

<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

System Requirements for CW MCU 10<br />

• 2 GB hard disk space, 400 MB on Windows system disk<br />

►Minimum RAM required: 1GB<br />

Application RAM Consumed<br />

Windows XP + Anti-virus + Office ~ 450 MB<br />

CW MCU10 Eclipse IDE ~ 420 MB<br />

CW MCU10 Debugger ~ 90 MB<br />

CW MCU10 Processor Expert ~ 15 MB<br />

CW MCU10 Software Analysis ~ 10 MB<br />

Total (Min RAM Required): ~ 985 MB<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Improving CW MCU 10 performance<br />

►Disable Eclipse features which are known to slow things down<br />

• Indexer<br />

� Click menu „Windows‟ -> „Preference‟<br />

� Expand „C/C++‟ -> „Indexer‟<br />

� Select „No Indexer‟ in drop-down menu<br />

• Scalability<br />

� Click menu „Windows‟ -> „Preference‟<br />

� Expand „C/C++‟ -> „Editor‟ -> „Scalability‟<br />

� Uncheck „enable scalability options‟<br />

• Auto Activation<br />

� Click menu „Windows‟ -> „Preference‟<br />

� Expand „C/C++‟ -> „Editor‟ -> „Content Assist‟<br />

� Uncheck all the options for „Auto Activation‟<br />

TM


<strong>Freescale</strong>, the <strong>Freescale</strong> logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of <strong>Freescale</strong> Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink<br />

and VortiQa are trademarks of <strong>Freescale</strong> Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 <strong>Freescale</strong> Semiconductor, Inc.<br />

Updating OSBDM firmware<br />

► If you have communication issues when you try to debug an application running on<br />

a Tower board with OSBDM, make sure the OSBDM firmware has been updated to<br />

latest version. Below is a V1 ColdFire example:<br />

1. Install <strong>Freescale</strong> JM60 GUI tool<br />

� download from:<br />

https://www.freescale.com/webapp/Download?colCode=JM60_GUI_INSTALLER&appType=license&location=null&fsrch=1&sr=1&Parent_nodeId=from<br />

search&Parent_pageType=from search<br />

2. Connect jumper J16 in TWR-MCF51CN board<br />

3. Connect TWR-MCF51CN board to PC via USB<br />

4. Run JM60 GUI tool<br />

5. Click bootloader<br />

6. Specify file in S19 file loader as [INSTALLATION DIRECTORY]\Drivers\osbdm-<br />

JM60\firmware\bin\cfv1\osbdm-jm60_cfv1.abs.s19<br />

7. Click Execute button and the firmware update will start....<br />

8. After the update is completed, disconnect USB between TWR-MCF51CN board and PC<br />

9. Remove jumper 16 in TWR-MCF51CN board<br />

10. Re-connect TWR-MCF51CN board to PC via USB<br />

TM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!