AN2757 Freescale Semiconductor / Motorola, AN2757 Datasheet - Page 10

no-image

AN2757

Manufacturer Part Number
AN2757
Description
MPC5200 Quick Start
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Framework
5.1
The “Application Config” project folder contains two project header files, physically located in the “ApplicationConfig” sub-
directory within a project folder on a hard disk.
5.2
The “System Config” project folder contains startup files, linker command files, prefix files and some CodeWarrior configuration
files required by the Quick Start project. All these files are physically located in the “SystemConfig” sub-directory within a project
folder on a hard disk. The files are described in the following sections.
5.2.1
Prefix file is an standard C header file included by default into every C file being compiled. A prefix file can be specified among
other C compiler settings globally for all the C files in the project. When set, a prefix file behaves exactly like it is included using
an #include directive at the beginning of each C file of the project.
In the Quick Start, there is a different prefix file for each project target. All prefix files are located in the “SystemConfig”
subdirectory of the project folder. Each prefix file defines its macro (e.g. TARGET_RAMDEBUG in “RAM Debug” target), using
which a source code identifies the target it is being compiled for. See
5.2.2
Linker Command File is processed by the linker when it is placing code and data segments to specific memory locations. The
linker command file defines memory areas by the means of base address and size and assigns a code and data segments
declared by the C compiler into those areas.
In MPC5200_Quick_Start, there is a separate Linker Command File for each project target. All Linker Command Files are located
in the SystemConfig sub-directory of the project folder on the disk. In each target, the file defines the location of the exception
10
The “configure.h” file is included by the Freescale (formerly Motorola) MPC5200 BSP source files (see
MPC5200
for the MPC5200 clock frequency calculations. This file is superseded by the “appconfig.h” file in the Quick Start
applications and is not used at all.
The “appconfig.h” file is the main application configuration file for the Quick Start-based applications. It contains the
initialization values of all important control registers for each MPC5200 peripheral module the user wants to configure.
The Graphical Configuration Tool can be used to edit the content of this file graphically. See
Configuration Tool
Application Configuration Files
System Configuration Files
Prefix Files
Linker Command Files
BSP). For the BSP-only applications, this file can define parameters of the PSC1 console and several macros
for more details.
AN2757 MPC5200 Quick Start and Graphical Configuration Tool
Figure 10. Project Content
Table 1
for prefix file-defined macros of each target.
Section 6, Graphical
Freescale Semiconductor
Section 9,

Related parts for AN2757