AN2757 Freescale Semiconductor / Motorola, AN2757 Datasheet - Page 15

no-image

AN2757

Manufacturer Part Number
AN2757
Description
MPC5200 Quick Start
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
5.8
Each MPC5200_Quick_Start project contains a single source file named “main.c”. This file contains typical “Hello World”
application source code.
If a user application grows beyond the single source file (which is most likely to happen with MPC5200 applications), it is the
user’s responsibility to add other source files to the CodeWarrior project.
6
This section describes the Graphical Configuration Tool which is included in the MPC5200_Quick_Start development
environment. The Graphical Configuration Tool (GCT) is a standard Microsoft Windows-based application used to graphically
edit (read and write) project’s “appconfig.h” file. All control bits and bit-fields of each MPC5200 peripheral module are presented
in an easy-to-understand graphical form. The register initialization values edited by graphical controls can be immediately
displayed and/or written back to the “appconfig.h” file. Here they are used by the module initialization code to set up the individual
peripheral modules. As it was already described in
peripheral modules which are to be automatically configured before entering the application’s main() function.
6.1
The most effective use of the GCT is to integrate it into the CodeWarrior development environment and assign a hot-key or menu-
item for invoking it. In such a configuration, the GCT is automatically opened for the project currently active in the CodeWarrior
IDE.
A detailed description of how to integrate the GCT into CodeWarrior IDE can be found in the “todo_CW.txt” document in the
MPC5200_Quick_Start installation. The procedure is also briefly described below.
In the CodeWarrior, select the menu “Edit / Commands and Key Bindings”. In the “Customize IDE...” window
the menu group in which you want to create a new “GCT” menu item (e.g. “Project”).
Freescale Semiconductor
1.
2.
3.
4.
Click on the “New Command” button
Type “MPC5200 Configuration Tool” to the “Name” box
Click on “Appears in Menus” check box and tick it
Click on button on the right hand side of the “Execute” edit box and browse for the “gct5200.exe” GCT executable.
E.g. “C:\Program Files\Freescale (formerlyMotorola)\MPC5200_Quick_Start\config_tool\gct5200.exe”.
The “main.c” File
Graphical Configuration Tool
Integration into CodeWarrior IDE
AN2757 MPC5200 Quick Start and Graphical Configuration Tool
Figure 13. Key Binding for MPC5200 GCT
Section 5.3, Startup
Code, the GCT can be also used to select MPC5200
Graphical Configuration Tool
(Figure
13), select
15

Related parts for AN2757