Embedded Target for Motorola MPC555 |
 |
Setting Up Your Installation with Metrowerks CodeWarrior
To use the Embedded Target for Motorola MPC555 with Metrowerks CodeWarrior, you need the following:
- Configurable Subsystem block phyCORE-MPC555 Rapid Development Target, including the phyCORE-MPC555 development board, DB-25 parallel printer port cable, serial cable, AC to DC power adapter, and Configurable Subsystem block Spectrum CD.
- You do not need to install anything from the Configurable Subsystem block Spectrum CD except the
Blinky
test program that you will use to verify your installation.
- Metrowerks CodeWarrior for Embedded PowerPC (version 6.0 or later) CD (or network access to the Metrowerks CodeWarrior for Embedded PowerPC installer). Do not use a version of Metrowerks CodeWarrior for Embedded PowerPC that is earlier than version 6.0.
Install Metrowerks CodeWarrior IDE
The first step is to install the Metrowerks CodeWarrior IDE:
- If you have previously installed a version of Metrowerks CodeWarrior for Embedded PowerPC that is earlier than version 6.0, uninstall it.
- Install CodeWarrior for Embedded PowerPC version 6.0 using the setup program provided on your Metrowerks CodeWarrior CD (or on your network). Run
Setup.exe
and follow the prompts.
Configure Metrowerks CodeWarrior Debugger
The next step is to configure the CodeWarrior debugger to communicate with the phyCORE-MPC555 board over the parallel port:
- Start the Metrowerks CodeWarrior IDE. From the Edit menu, open the IDE Preferences dialog box. In the IDE Preference Panels pane, click on the plus sign next to Debugger.
- A list of choices opens below Debugger. Select
Remote Connections
. The Remote Connections panel is displayed on the right.
- Select
MPC555DK Wiggler
from the list in the Remote Connections panel.
- If no
MPC555DK Wiggler
configuration exists, create one as follows:
- Click the Add... button. The New Connection configuration dialog box
opens.
- Set the Name property to
MPC555DK Wiggler
.
- Set the Debugger property to
EPPC MSI Wiggler
.
- Set the Connection Type property to
Parallel
.
- Set the Connection Port property to match the port to which you have
connected your phyCORE-MPC555 board (the default is
LPT1
).
- Set the Speed property to
1
.
- Set the FPU Buffer Address property to
0xFFF00000
.
- Click OK and skip to step 5.
- If a
MPC555DK Wiggler
exists, click the Change... button. The MPC555DK Wiggler
configuration dialog box opens. By default, the Parallel Port property is set to LPT1
. If you have connected your phyCORE-MPC555 board to a different port, change the Parallel Port setting accordingly. Then click OK to close the MSI Wiggler configuration dialog box.
- Click Apply and close the IDE Preferences dialog box.
Set Target Preferences
The next step is to configure your target preferences for Metrowerks CodeWarrior. (Please read Setting Target Preferences, if you have not yet done so.) The relevant preferences are
- TargetCompiler: set to 'CodeWarrior'.
- TargetCompilerPath: change this to the appropriate path to your CodeWarrior installation.
- Note that when using CodeWarrior, you do not have to specify the TargetDebugger preference. When required, the build process will automatically invoke the CodeWarrior debugger.
For most purposes, the other target preferences fields can be left at their defaults.
Run Test Program (Optional)
Optionally, to verify your CodeWarrior setup, you may want to download and run a simple test program on the phyCORE-MPC555 board. We will use the Blinky
test program provided on the Configurable Subsystem block Spectrum CD. The Blinky
test program is described in the "Getting Started" chapter of the phyCORE-MPC555 Quickstart Instructions manual.
- Copy the directory
/PhyBasic/pcMPC555/Demos/Blinky
to your hard drive. Open the /Blinky
directory and open the project file Blinky.mcp
.
- CodeWarrior will prompt that the project is read-only and needs to be converted to the current format. Click OK to allow conversion to proceed.
- To set the debugger configuration of the project, select ram Settings... from the Edit menu. A dialog box titled ram Settings is displayed. In the left pane, click on the minus sign next to Debugger.
- A list of choices opens below Debugger. Select
Remote Debugging
.The Remote Debugging panel is displayed on the right.
- Select
MPC555DK Wiggler
from the Connection pop-up menu in the right pane.
- Select EPPC Debugger Settings. The EPPC Debugger Settings panel is displayed on the right.
- Select the Use Target Initialization File check box in the right pane. Then use the Browse button to select the following initialization file:
phytecCD\PhyBasic\pcMPC555\Tools\PowerPC_EABI_Support\Initialization_Files\Bdm\
phyCORE-MPC555_BDM_init.cfg.
- Click Apply and then OK to close the dialog box.
- The project code is already compiled and linked. To download and execute it on the target system, select Debug from the Project menu. After the code downloads, you should observe two LEDs blinking alternately on the phyCORE-MPC555 board.
- You can now break and resume execution, set breakpoints, single-step through code, and perform other debugger functions.
- When finished, select Kill from the Debug menu to terminate the program on the target hardware.
You have now verified your installation and are ready to begin working with the Embedded Target for Motorola MPC555. We suggest you now turn to PIL Cosimulation to get hands-on experience with processor-in-the-loop simulation via the Embedded Target for Motorola MPC555 and Metrowerks CodeWarrior.
| Configuring SingleStep and Downloading Boot Code | | PIL Cosimulation |  |