下载

© Freescale Semiconductor, Inc., 2005, 2006. All rights reserved.
Freescale Semiconductor
Application Note
AN2757
Rev. 3, 06/2006
Table of Contents
This document describes the MPC5200_Quick_Start
environment for creating non-operating system
applications for the Freescale MPC5200 device. The
environment also includes an easy-to-use Graphical
Configuration Tool (GCT) which simplifies definition of
the startup configuration for MPC5200 on-chip
peripherals. The MPC5200 microcontroller is based on
an e300 C0 core using the PowerPC
TM
instruction set.
A current version of the MPC5200_Quick_Start tool is
primarily designed for, and integrated with, CodeWarrior
development tools. There are more tools likely to be
supported in the future; please see the release_notes.txt
file n the MPC5200_Quick_Start installation for an
up-to-date list of tools supported by the latest release. In
this document, it is assumed the user is already familiar
with the target development environment.
All MPC5200 embedded-side code was tested with the
CodeWarrior MGT Edition Version 8.1 and the Lite5200
(IceCube) evaluation board.
New in the MPC5200_Quick_Start Release 0.9
The new MPC5200B device is now supported in
MPC5200_Quick_Start. The code was also tested with
CodeWarrior MGT Edition Version 8.1 on a Lite5200B
evaluation board.
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Suggested Reading . . . . . . . . . . . . . . . . . . . . 2
2 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 Configuring CodeWarrior IDE . . . . . . . . . . . . 3
3 Your First Hello World Application . . . . . . . . . . . . 4
4 MPC5200 Quick Start Projects . . . . . . . . . . . . . . . 6
4.1 Project Stationery and Templates . . . . . . . . . 6
4.2 Project Targets . . . . . . . . . . . . . . . . . . . . . . . 7
4.3 Making the Application Standalone . . . . . . . . 8
5 Application Framework . . . . . . . . . . . . . . . . . . . . 12
5.1 Application Configuration Files . . . . . . . . . . 12
5.2 System Configuration Files . . . . . . . . . . . . . 13
5.3 Startup Code . . . . . . . . . . . . . . . . . . . . . . . . 16
5.4 Interrupt Dispatcher . . . . . . . . . . . . . . . . . . . 16
5.5 BSP Source Code . . . . . . . . . . . . . . . . . . . . 17
5.6 DMA Files . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.7 MPC5200_Quick_Start Source Code . . . . . 17
5.8 The main.c File . . . . . . . . . . . . . . . . . . . . . . 18
6 Graphical Configuration Tool . . . . . . . . . . . . . . . 19
6.1 Integration into CodeWarrior IDE. . . . . . . . . 19
6.2 GCT User Interface . . . . . . . . . . . . . . . . . . . 20
6.3 MPC5200/B Pinout Page. . . . . . . . . . . . . . . 23
6.4 MPC5200/B Peripheral Modules . . . . . . . . . 24
6.5 Side-Bar Views . . . . . . . . . . . . . . . . . . . . . . 50
7 Module Initialization Code. . . . . . . . . . . . . . . . . . 51
8 Sample Applications . . . . . . . . . . . . . . . . . . . . . . 53
9 MPC5200 BSP . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
11 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . 55
MPC5200 Quick Start
and MPC5200 Graphical Configuration Tool
by: Michal Hanak
Roznov Czech System Center
TSPG, Freescale Semiconductor