® Development Tools

The CodeWarrior Development Studio everything the professional embedded CodeWarrior® Development provides a highly visual and automated developer needs: Studio is a complete framework that accelerates the development • CodeWarrior /C++ Compiler Suite of even the most complex applications. • Runtime libraries integrated development Creating applications is fast and easy for • Assembler environment (IDE) from developers of all experience levels. As • Standard template library (STL) hardware bring-up through a single development environment, it is consistent across all supported workstations programming embedded and personal computers with an organization. Source-Level Debugger applications. By combining On each of the supported platforms, the Provides a high-performance windowed source-level debugger equipped with the state-of-the-art debugging features and uses are identical. There is no need to worry about host-to-host latest productivity—enhancing graphical technology with the simplicity incompatibilities. Learn once, use everywhere. features to shorten board bring-up and of a robust development application development time; uses the environment, CodeWarrior The CodeWarrior Development Studio symbolics database to provide source-level contains all of the tools needed to complete debugging; supports symbol formats such Development Studio takes a major embedded development project. as Microsoft® CodeView®, Debug With source-level debugging Arbitrary Records Format (DWARF) and embedded application Complete Set of Tools and STABS. From text editors to compilers and debuggers, development to a new level. CodeWarrior development studio provides 

Instruction Set Simulator Text Editor Source Browser Jump-starts application development with Enables the creation and manipulation Maintains a symbolics database for the an integrated instruction set simulator (ISS). of source code and other text files and program (examples of symbols include is completely integrated with other names and values of variables and functions); Project Manager IDE functions. uses the symbolics database to assist code Handles top-level file management for the navigation; links every symbol to other software developer; organizes project items locations in the code related to that symbol; by major group, such as files and targets; Search Engine processes both object-oriented and tracks state information (such as file Finds a specific text string or replaces found procedural languages. modification dates); determines build order text with substitute text across multiple and inclusion of specific files in each build; files and directories; allows use of regular coordinates with plug-ins to provide services expressions; provides file-comparison and like version-control and RTOS support. differencing functionality.

Debugger By combining a state-of-the-art IDE with the simplicity of a windowed environment, the debugger takes C/C++ source-level debugging to a new level. The debugger assembles a wide array of high- powered components and features into a powerful GUI to help get projects completed and to market ahead of schedule and under budget.

All of the debugger hardware and software features provide simple access and execution. Any debug operation desired is done through an intuitive “point-and-click” interface to make debugging fast, flexible and easy.

Window-Based Workspace Seamless Integration Single-Stepping Environment The debugger is fully integrated with a variety Supports the common single-stepping The debugger enables developers to operate of run-control devices like Ethernet TAP and mechanisms (Step Into, Step Over, Step more efficiently with user-friendly debugging, CodeWarrior USB TAP, resulting in optimized Out), stepping statements in source-level multiple windows, point-and-click capabilities run-control and faster downloads. display and instructions in Assembler and and outline format. mixed-mode level display. Single-stepping can be performed in any of the source code Full-Featured Debugging display windows (stack crawl window, class The debugger’s interface allows users to The debugger provides a rich set of browser window, source file window and customize the workspace to fit their needs: debugging features designed to help symbolics window). to create custom buttons, toolbars and the developer quickly find and repair menus, and to “float” windows that are an software defects. Contextual Data integral part of the debugger so that they Displays data values at a glance for become independent windows on the work Stack Crawl Window variables in source windows during station. This provides increased visibility and Displays information about a suspended execution. In addition to standard toolbar control over the display of information in the thread or process while debugging—all in tool tips common to applications, the debugger. Windows that have been separated debugger reveals contextual data when the primary window used during a debug from the debugger can also be “docked” to developers mouse over the variable in the session. The stack crawl window can be rejoin the main debugger workspace controls. source statement. used to view the call stack for a function, view function variables and global data, The debugger’s workspace allows users view a routine in source, assembler or Preprocessor Information to focus on complex debugging tasks. mixed-mode, view the current program Provides clear understanding of the code Each workspace contains just the set of being generated and relevant scoping counter indicating the statement about views needed for the task at hand. The used during the build cycle in the current to be executed, view and set breakpoints application workspace provides a high-level debug context. for the current function or single-step view of the target software, while the through the current function from the hardware workspace provides a low-level program counter. view of the target hardware. 

Breakpoints Special Breakpoints Register Details Window Sets breakpoints in source display windows Special breakpoints halt program execution Shows the contents of a given register in with a simple click on the window’s left for very specific reasons, such as when pro- a format similar to a processor data book. margin or by dragging a source statement gram execution arrives at the beginning of the Register and bit field descriptions are included or assembly instruction to the breakpoints function main(), a C++ exception occurs or an along with logical groupings of bits into value window. A separate breakpoints window event occurs that the debugger plug-in has fields. Bit field values can be modified manu- in the debugger allows developers to view defined as a break event. Developers cannot ally or from a list of relevant value choices. all breakpoints consolidated into a single change or delete special breakpoints, but they The display of register details is controlled by worksheet and save them to disk for use can enable and disable them. a user-modifiable XML register description file. later or for sharing with other project members. Memory Window Cache Window CodeWarrior Debugger Displays data in various data formats: raw Displays current values and state of cache Offers Many Different hexadecimal and ASCII, standard C data contents for each data and instruction cache Types of Breakpoints types, structures and enumeration types within the target processor. Cache writes allow from the current debug project, or as developers the freedom to edit cache contents Eventpoints machine instructions either in machine and experiment with cache behavior as it Eventpoints are used to perform a task language assembly or displayed related to relates to the current code being debugged. when program execution arrives at a source code. The memory window displays specific line of source code or when an data in a “raw” hexadecimal format, as well Object File Format associated conditional expression evaluates as ASCII, with the word-length variable Supports STABS and ELF/DWARF to true. Developers can set an eventpoint through a drop-down selection at the bottom (version 1 and 2) object file output formats. that performs a task such as logging or of the screen. The memory window allows speaking a string or expression and then for the display and editing of memory Multi-Thread/Process Debugging* recording messages to the log window, locations. Allows for editing in the context Enables debugging of multi-threaded applications pausing execution just long enough to refresh of the current display format—for example, and multiple processes. Debugging can select debugger data, running a script, playing a “view as int” allows editing an integer value. and debug a single thread, multiple threads sound, skipping execution of a line of source Establishes selected memory addresses as or all threads—based on debug preferences. code or collecting trace data. An eventpoint is a watchpoint for conditional execution simply Each thread being debugged can be managed equivalent to a breakpoint that performs a task by right-click mouse selection. through the threads window or separate stack other than halting program execution. crawl windows per thread. Register Window *This capability is not available for all processors. Watchpoints Shows a complete list of available processor Watchpoints halt program execution when and peripheral registers, both built-in and a specific location in memory changes value. memory mapped. Registers are grouped Multi-Core Debugging After a developer sets a watchpoint at a by function in a hierarchical view that lets Complete quad-core debugging functionality key point in memory, he/she can halt program developers browse in a single window or open integrated in one development environment. execution when that point in memory changes a new window for a specific group. Registers With a single instance of the CodeWarrior value or, for some devices, when the memory are shown for multiple processes, threads or debugger running, developers are capable of location is accessed, examine the call chain, processors. Register values are shown and debugging a four-processor SoC through four check register and variable values, and step can be modified in a variety of formats (signed separate process stack crawl windows and through the code. Developers can also change decimal, hexadecimal, etc.). The display of subsequently derived windows for that proces- values and alter the flow of normal program register groupings and memory mapped sor. As a developer switches context between execution. A watchpoint is equivalent to a registers is controlled by a user-modifiable the stack crawl windows, appropriate windows memory breakpoint. XML register description file. and menu items for processor cache are adjusted. 

Multiple CPU Debugging Command-Line Window Debugs up to 255 processors in a symmetric multiprocessor Developers can use the command-line interface together with various array—each running multiple processes and threads. For those scripting engines such as the Microsoft ® script engine, computers with SMP capabilities, the processors window is the JavaScript™ engine, Tcl, Python and Perl to automate test/SW/HW used to define which processor specifically will be placed into validation. Developers can also issue a command line that saves a stop-mode debugging. log file of command-line activity.

Target Connection Wizard Simplifies and automates the task of defining new connection definitions based on hardware and communication parameters.

Other CodeWarrior Logic Analyzer Hardware Diagnostics* Debugger Tools Developers can utilize the debugger The CodeWarrior Development Studio comes with the logic analyzer to troubleshoot with diagnostics that enable the developer to low-level hardware components in order determine if the hardware is functional. Board Bring-Up* to understand complex signals on an Helps developers deal with the complexity of embedded hardware platform. bringing up a board by providing complete These tests include: control over all board settings, including initial • Memory Read/Write—Performs diagnostic register values and memory configuration. Freescale has implemented an interface tests for performing memory reads and to seamlessly integrate logic analyzer After initial target register values are defined, writes over the remote connection interface. the debugger restores these values each communications into the debugger. time the user connects to the board. Then Features include: • Scope Loop—Configures diagnostic tests for performing repeated memory reads and an assembler source file can be created from • Trace on/off these settings as an addition to the project. writes over the remote connection interface. The debugger also includes a comprehensive • Trace everything The tests repeat until the developer stops set of hardware diagnostics and robust flash • Trace history them. By performing repeated read and programming to support an extensive list of • Start trace based on specified address write operations, developers can use a flash devices. scope analyzer or logic analyzer to debug • Start trace on address range *This capability is only available with 32-bit processors. the hardware device. • Trace all in address range • Memory Tests—Lets developers perform Flash Programming • Breakpoint on trigger three different tests on the hardware: Programs on-board flash devices from • Trigger tracing on breakpoint Walking Ones, Address or Bus Noise. within the same GUI used to troubleshoot ® the application. No boot code is required to • Support for Tektronix and Agilent test *This capability is not available for all products. run on the target system in order to use the equipment programming features of the CodeWarrior flash programmer. 

Developers can specify any combination of CodeWarrior Instruction Set Simulator* The CodeWarrior ISS provides full instruction the tests and the number of passes to perform Provides a quick and easy way to begin simulation and supports standard C library them. For each pass, the hardware diagnostic developing code without the requirement I/O. It is fully integrated with the CodeWarrior tools perform the tests in turn, until all passes for access to hardware. The ability to develop IDE and also provides a full command-line are complete. The tools tally memory test software without requiring hardware provides interface. The CodeWarrior ISS is available failures and display them in a log window after a number of significant benefits to software for specific platforms. all passes are complete. Errors resulting from engineers, including the ability to run memory test failures do not stop the testing code before custom hardware is available, *Simulator varies by processor family. process; however, fatal errors immediately running/testing code when hardware resources stop the testing process. are limited, and learning how to use the development environment without first having to get hardware running.

Compiler CodeWarrior Development Studio combines industry-leading components to offer embedded developers all the necessary tools to create, build and deploy quality products to their customers. One major component of the IDE is the CodeWarrior compiler. It combines industry-proven optimization technology with the versatility and control needed to fully exploit today’s complex PC CPUs. CodeWarrior Compiler’s design is based on a partitioned architecture that results in proven reliability and flexibility for embedded applications, as well as interoperability with other CodeWarrior development products.

The compiler provides language-specific front ends for C, embedded C++ and C++ that parse the original source code into a common token-based representation of the source. Optimizations are applied to this intermediate language representation. Also, the fully optimized code is converted into the appropriate machine code via a robust, table-driven back-end module. Freescale’s integration of silicon design with our compiler team, combined with the compiler’s modular design, make it possible for the CodeWarrior portfolio to provide highly optimized compilers for new silicon with very short lead times. The compiler’s modular architecture enables developers to immediately gain maximum performance from their compiler/silicon investments. 

Proven Optimization Technology Linker The CodeWarrior compiler produces exceptionally fast, compact, Offers precise control over the allocation, placement and alignment of high-quality object code. A large number of highly refined, global, code and data in memory. Key features include: local, CPU-specific and sometime application–specific (profile-driven) • Links object modules into absolute or relocatable modules optimization techniques enable the programmer to fine-tune the compiler’s output to match the application’s requirements. • Reads/writes/mixes ELF and STABS object files Programmers can select various optimizations to balance execution • Generates fully EABI-compliant ELF/DWARF 2.0 output for consumer speed with code size while intelligent defaults can generate optimal tool interoperability code out of the box.

Libraries Full-Featured Compiler The standard libraries include: The compiler provides a rich set of features and components: • Complete C++ library (STL) Advanced C/Embedded C++/C++ Compiler Designed for highly embedded development support. • Complete, reentrant C libraries compliant with ANSI/ISO, Key features include: POSIX and SVID standards

• Advanced optimization technology to generate fast, • Multithreading compact, high-quality code • Full complement of math libraries, including IEEE-754 • Field-proven reliability to meet extreme embedded appendix functions design constraints • Efficient floating-point libraries for fast execution of calculations • Compatibility with ANSI C++ specs (ISO/IEC 14882:1998E) and ANSI C specs (X3.159-1989 and most compilers are also ANSIC99 Profiler [except complex numbers]) Profiling options contained in the compiler instrument application code, which when executed save profile information that can be viewed by • Standards conformance (ANSI and EABI) for maximum the profiler utility. This profile data can also be used by the compiler tool interoperability for additional code optimization based on execution paths. • Complete control of code and data memory allocation • Options to pack or byte-swap structures to match Documentation The IDE and compiler ship with extensive documentation specific existing data types to the chosen architecture. The Getting Started Guide enables • Support for position-independent code (PIC) and data (PID) developers to quickly get up-to-speed and enhances out-of-box experience. In addition to hardcopy, all manuals are available in HTML • Board support routines for bare-board applications (no OS) and PDF formats online. • Proven performance with industry-leading RTOSs

Assembler Full-featured macro assembler that is automatically invoked by the project manager or as a complete stand-alone assembler for generating object modules. Key features include:

• Conditional macro assembler with over 30 directives • Unlimited number of symbols • Debug information for source-level debugging of assembly programs 

CodeWarrior Product Diagram

CodeWarrior IDE Environment Compilers, Linkers, Libraries, Debuggers, Emulators, Instrumentation Tools, Device Initialization, Multi-Language, Muti-Target

Value-Add Extensions OSEK and Awareness Plug-Ins, Drivers, Stacks, Processors Expert, PC-Lint, Third Party RTOS Plug-Ins, Version Control, Professional Services

56800/E Power™ HC(S)08/RS08 HSC12(x) 68K ColdFire® StarCore® DSC Architectures

Hardware Debug Probe CodeWarrior® USB TAP, Ethernet TAP, Third Party Probes

Project Manager The CodeWarrior Development Studio Project Manager provides a powerful framework to simplify organizing, configuring and building complex development projects and automating many aspects of managing a project.

The project manager performs automatic dependency analysis and generates the appropriate project context. The powerful graphical user interface (GUI) enables the user to configure a project by selecting from menus, the options covering everything from optimization level, debugging level and language-specific features to target type (executable or library). It takes the developer step-by-step through a series of questions to create a project and includes example stationery (a template) as a starting place for the application. The stationery includes a linker command file and project files that make it possible to associate debug connections easily and is provided for every CPU and programming language supported by the CodeWarrior compiler. 

Text Editor CodeWarrior Development Studio includes a full-featured, user-configurable, windowed text editor with features such as syntax coloring and auto-indenting. Syntax coloring helps quickly identify language keywords and constructs, including comments, strings, constants and more. The CodeWarrior text editor implements all of the standard functions that are expected from an editor, including a powerful search feature that can find values within multiple files. It is fully configurable, so the developer can change the key bindings, font type, font size, color scheme, syntax coloring and provides a single, consistent editor interface for all host and target development combinations. The text editor is an integral part of the overall CodeWarrior Development Studio and can be invoked and controlled as an object from other components within the CodeWarrior Development Studio.

Search Engine Industry observers estimate that software developers spend nearly half their time searching for basic information buried in application code. As applications grow in complexity, the time required to find, analyze and modify code grows as a proportion of total engineering effort. The search engine reduces this largely unproductive time by integrating code browsing and searching into a single tool. It is fast and provides emantic code navigation to make it possible to find specific code structures, symbols or pattern among hundreds of directories.

The seamless integration between the search engine and the text editor means all changes in the code are immediately reflected in the browser without any recompilation. With the search engine, the mouse can be used to navigate between the different symbols by placing the mouse cursor on a symbol and right-click to invoke the text editor. This will open the file and highlight the exact location of the selected symbol. 9

Product Name Supports Freescale Device Family

Software Development Tools

CodeWarrior® Development Studio for RS08, HC(S)08, ColdFire® V1

CodeWarrior Development Studio for HCS12(X) Microcontrollers HCS12 or HCS12X/XGATE

CodeWarrior Development Studio for ColdFire Architectures ColdFire Architectures (V2, V3, V4)

CodeWarrior Development Studio for Power Architecture Technologies for Networking Applications Power Architecture™ Processors

Power Architecture Technologies for Information CodeWarrior Development Studio for mobileGT and Multimedia Applications

CodeWarrior Development Studio for MPC55xx Power Architecture Technologies for Telematics Applications

CodeWarrior Development Studio for MPC5xx MPC5xx Processors

CodeWarrior Development Studio for StarCore® DSP MSC81xx Processors

CodeWarrior Development Studio for StarCore and SDMA i.300, MXC300, MXC275 Multi-Core Architectures

CodeWarrior Development Studio for 56F80x/2x, 56F85x, 56F81xx, 56F83xx, 56F801x, 56F802x/3x Digital 56800/E Digital Signal Controllers Signal Controllers

CodeWarrior Development Studio for 68K 68K Embedded Systems

Value-Added Extensions

OSEKturbo OSEK/VDX™ Compatible

Processor Expert™ Integration, Configuration and LLD

Version Control Integrated VCS for Check-In/Check-Out

Hardware Debug Probe

CodeWarrior Ethernet TAP

CodeWarrior USB TAP

Learn More: For current information about Freescale products and documentation, please visit www.freescale.com/codewarrior.

Freescale® and the Freescale logo are trademarks of , Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007 Document Number: CODEWARRIORPRDS REV 0