Quick Start For Microcontrollers
Quick Start For Microcontrollers
SYSTEM REQUIREMENTS
Hardware Windows® OS: PC with 1.8 GHz Intel® Pentium®
compatible processor
2GB of RAM
DVD-ROM drive
Depending on host-target connection: Parallel
Port, 9-pin Serial Port, or USB Port
This Quick Start explains how to download and install the CodeWarrior
Development Studio for Microcontrollers V11.x from the online/offline
installer, or install it from the DVD software on a Windows operating
system. Additionally, it describes how to use the CodeWarrior IDE to
create, build, and debug a project. The Quick Start is organized as the
following.
• Section A: Download and Install CodeWarrior Software with
Online Installer
• Section B: Download and Install CodeWarrior Software with
Offline Installer
• Section C: Install CodeWarrior Software from DVD
• Section D: Creating and Building a Project
1
• Section E: Debugging your Application
The CodeWarrior Development Studio for Microcontrollers V11.x is
available in the following editions. You can select the download that meets
your requirements.
2
Section A: Download and Install CodeWarrior Software with
Online Installer
NOTE You only have to log-in to download the Evaluation Edition. The
Special Edition does not require a log-in.
e. Enter your user name and password and click Log in.
NOTE If you are not a registered user, click Register Now and follow
the on-screen instructions.
f. A dialog box appears asking you to save the installer file. The extension
of the installer file is .exe for Windows.
g. Specify the location where you want to save the installer file.
NOTE The installer image contains the CW MCU v11.x core tools.
During the installation process the core tools are installed and
you are prompted to select the Freescale architecture support
you want to install. The installer will automatically access the
Internet, download the necessary archives, and install them in
3
the CodeWarrior installation directory.
NOTE When installing from an online update site the latest version of
the features are installed. Any updates released to date
automatically form a part of the installation.
NOTE When installing from an online update site latest version of the
features are installed. Any updates released to date
automatically form a part of the installation.
4
Section B: Download and Install CodeWarrior Software with
Offline Installer
NOTE This image contains the complete CW MCU v11.x tool suite
and an installer, which assumes your computer does NOT
have internet access. All data needed by the installer will be
downloaded now and no other download will be performed.
e. Enter your user name and password and click Log in.
NOTE If you are not a registered user, click Register Now and follow
the on-screen instructions.
f. A dialog box appears asking you to save the offline installer - self-
extracting package. The extension of the file is .exe for Windows.
g. Specify the location where you want to save the self-extracting package.
This will be the location where the folder containing the setup files will be
automatically extracted.
5
a. When the download finishes on the Windows host computer, navigate to
the CodeWarrior offline installer EXE file you have downloaded, double-
click the EXE file - the self-extracting wizard appears.
b. A folder called CW MCU11.x will be created and here the setup files will
be extracted.
c. When the extracting finishes the CodeWarrior installer will start
automatically - the install wizard appears.
d. Follow the wizard instructions to install the CodeWarrior software.
When software installation is finished, wizard displays the installation
complete page.
e. Check the Display Documentation checkbox and click Finish to close
the wizard - the documentation page appears in your default browser.
The page gives you information about the different documents, such as
getting started, user guides, application notes, and cheat sheets available
in the product.
NOTE The installer and the architecture packages will remain on the
computer after installation completes.
NOTE Any updates to the installation can be done using Install New
Software, from the CodeWarrior MCU v11.x update site link or
offline, by selecting the needed architecture package from
{download_location}\CW MCUv11.x folder.
To install the CodeWarrior software from the DVD, perform these steps.
6
Section D: Creating and Building a Project
NOTE If you want to store your projects in the default location, click
OK and proceed to step 2, otherwise follow the steps given
below.
c. Select required folder or click Make New Folder to create a new folder for
storing your projects.
7
d. Click OK — the Select Workspace Directory dialog box closes.
NOTE Check the Use this as the default and do not ask again
checkbox in the Workspace Launcher dialog box to set the
chosen path as the default location for storing all your projects.
NOTE The Welcome page appears only if the CodeWarrior IDE or the
selected Workspace is opened first time. Otherwise, the
Workbench window appears. Switch directly to step 2a if the
Workbench window appears.
8
Create an MCU bareboard Project Page
NOTE The Location field shows the default project location. If you
wish to change this location, clear the Use default location
checkbox. Click Browse and use the subsequent dialog box to
specify a new location. Click OK. The Create an MCU
bareboard Project page now shows new location.
9
Connections Page
f. Select the P&E Full Chip Simulation connection and clear the
checkboxes against default selected options.
10
Languages Page
11
NOTE If you check only the Relocatable Assembly or Absolute
Assembly checkbox in the Languages page and click Next,
the C/C++ Options page does not appear.
12
NOTE To set project, build, or debug settings of a project in the
CodeWarrior Projects view, select the respective settings in
the Commander view. For example, to set project settings,
select Settings > Project Settings in the Commander view.
c. Click the Debugger tab — the Debugger page opens in the right pane.
13
Debug Configurations Dialog Box — Debugger Page
14
Debug Perspective
4. Control program
a. From the Debug view, click Step Over — the debugger executes
breakpoint statement and halts at next statement.
c. From the Debug view, click Terminate — the debug session ends.
5. Select File > Exit from the IDE menu bar to exit the CodeWarrior IDE.
15
Congratulations!
You have created, built, and debugged an Microcontrollers
project using CodeWarrior for Microcontrollers V11.x
software!
16
Information in this document is provided solely to enable system and software implementers to
use NXP products. There are no express or implied copyright licenses granted hereunder to
design or fabricate any integrated circuits based on the information in this document. NXP
reserves the right to make changes without further notice to any products herein.
NXP makes no warranty, representation, or guarantee regarding the suitability of its products
for any particular purpose, nor does NXP assume any liability arising out of the application or
use of any product or circuit, and specifically disclaims any and all liability, including without
limitation consequential or incidental damages. “Typical” parameters that may be provided in
NXP data sheets and/or specifications can and do vary in different applications, and actual
performance may vary over time. All operating parameters, including “typicals”, must be
validated for each customer application by customer’s technical experts. NXP does not convey
any license under its patent rights nor the rights of others. NXP sells products pursuant to
standard terms and conditions of sale, which can be found at the following address: nxp.com/
SalesTermsandConditions.
While NXP has implemented advanced security features, all products may be subject to
unidentified vulnerabilities. Customers are responsible for the design and operation of their
applications and products to reduce the effect of these vulnerabilities on customer’s
applications and products, and NXP accepts no liability for any vulnerability that is discovered.
Customers should implement appropriate design and operating safeguards to minimize the
risks associated with their applications and products.
NXP, the NXP logo, NXP SECURE CONNECTIONS FOR A SMARTER WORLD, COOLFLUX,
EMBRACE, GREENCHIP, HITAG, I2C BUS, ICODE, JCOP, LIFE VIBES, MIFARE, MIFARE
CLASSIC, MIFARE DESFire, MIFARE PLUS, MIFARE FLEX, MANTIS, MIFARE
ULTRALIGHT, MIFARE4MOBILE, MIGLO, NTAG, ROADLINK, SMARTLX, SMARTMX,
STARPLUG, TOPFET, TRENCHMOS, UCODE, Freescale, the Freescale logo, AltiVec, C?5,
CodeTEST, CodeWarrior, ColdFire, ColdFire+, C?Ware, the Energy Efficient Solutions logo,
Kinetis, Layerscape, MagniV, mobileGT, PEG, PowerQUICC, Processor Expert, QorIQ, QorIQ
Qonverge, Ready Play, SafeAssure, the SafeAssure logo, StarCore, Symphony, VortiQa,
Vybrid, Airfast, BeeKit, BeeStack, CoreNet, Flexis, MXC, Platform in a Package, QUICC
Engine, SMARTMOS, Tower, TurboLink, and UMEMS are trademarks of NXP B.V. All other
product or service names are the property of their respective owners. AMBA, Arm, Arm7,
Arm7TDMI, Arm9, Arm11, Artisan, big.LITTLE, Cordio, CoreLink, CoreSight, Cortex,
DesignStart, DynamIQ, Jazelle, Keil, Mali, Mbed, Mbed Enabled, NEON, POP, RealView,
SecurCore, Socrates, Thumb, TrustZone, ULINK, ULINK2, ULINK-ME, ULINK-PLUS,
ULINKpro, µVision, Versatile are trademarks or registered trademarks of Arm Limited (or its
subsidiaries) in the US and/or elsewhere. The related technology may be protected by any or
all of patents, copyrights, designs and trade secrets. All rights reserved. Oracle and Java are
registered trademarks of Oracle and/or its affiliates. The Power Architecture and Power.org
word marks and the Power and Power.org logos and related marks are trademarks and service
marks licensed by Power.org.
© 2010-2018 NXP B.V.
17
18