AN2757 Freescale Semiconductor / Motorola, AN2757 Datasheet - Page 5

no-image

AN2757

Manufacturer Part Number
AN2757
Description
MPC5200 Quick Start
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
The “Hello World” application can be build by pressing the F7 key in the CodeWarrior IDE. The build process should finish with
no errors and warnings. If everything goes well, pressing the F5 key should run the application under the CodeWarrior debugger.
The Lite5200 board is first configured over the BDM, the SDRAM memory is automatically enabled and the compiled application
executable is downloaded into the Lite5200 memory. Then the application is started and the execution is halted at the default
breakpoint on the first line of the main() function.
When the F5 key is pressed again, the execution resumes and the “Hello World” output should be sent over the serial line and
displayed on the console window.
It will be a subject of the following sections to describe the MPC5200_Quick_Start framework, Graphical Configuration Tool,
project templates and other details briefly mentioned during work with the “Hello World” application.
4
This section describes different kinds of CodeWarrior projects that can be created using the project templates available in the
MPC5200_Quick_Start tool.
4.1
Project template can be viewed as a completely prepared and configured project whose copy is saved under custom name and
is used as a starting point for user’s own development. Such a copying is done automatically by CodeWarrior when the user
selects the project template and specifies a new project name (see
grouped together is called a “Project Stationery”. Currently, there are three project templates in the MPC5200_Quick_Start
Stationery, differing in the BestComm DMA microcode image and DMA tasks availability:
Freescale Semiconductor
DMA_Custom - there is an empty DMA microcode image by default. The user is responsible for creating his own set of
tasks, building the DMA microcode and adding task C-API source files to the project. The Graphical Configuration Tool
and BestComm Configuration Tool can be used to help implementing the DMA functionality.
DMA_ImageRtos1 - the precompiled “RTOS1” DMA image is included in the project. C-API files for all RTOS1 tasks
are already included in the project and the DMA image can not be further configured by BestComm Configuration Tool.
All MPC5200_Quick_Start sample applications are based on this template.
DMA_ImageRtos2 - same as the one above except that the “RTOS2” image is used. This image contains slightly
modified set of DMA tasks. See BestCommAPIUserGuide.pdf document for more details about the RTOS1 and RTOS2
images.
MPC5200 Quick Start Projects
Project Stationery and Templates
Figure 5. CodeWarrior Remote Debugging Options (Selecting BDM Interface)
AN2757 MPC5200 Quick Start and Graphical Configuration Tool
Figure 2
and
Figure
3). A set of different project templates
MPC5200 Quick Start Projects
5

Related parts for AN2757