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:

Install Metrowerks CodeWarrior IDE

The first step is to install the Metrowerks CodeWarrior IDE:

  1. If you have previously installed a version of Metrowerks CodeWarrior for Embedded PowerPC that is earlier than version 6.0, uninstall it.
  2. 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:

  1. 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.
  2. A list of choices opens below Debugger. Select Remote Connections. The Remote Connections panel is displayed on the right.
  3. Select MPC555DK Wiggler from the list in the Remote Connections panel.
  1. If no MPC555DK Wiggler configuration exists, create one as follows:

    1. Click the Add... button. The New Connection configuration dialog box opens.
    2. Set the Name property to MPC555DK Wiggler.
    3. Set the Debugger property to EPPC MSI Wiggler.
    4. Set the Connection Type property to Parallel.
    5. Set the Connection Port property to match the port to which you have connected your phyCORE-MPC555 board (the default is LPT1).
    6. Set the Speed property to 1.
    7. Set the FPU Buffer Address property to 0xFFF00000.
    8. Click OK and skip to step 5.
  1. 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.
  2. 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

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.

  1. Copy the directory /PhyBasic/pcMPC555/Demos/Blinky to your hard drive. Open the /Blinky directory and open the project file Blinky.mcp.
  2. 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.
  3. 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.
  4. A list of choices opens below Debugger. Select Remote Debugging.The Remote Debugging panel is displayed on the right.
  5. Select MPC555DK Wiggler from the Connection pop-up menu in the right pane.
  6. Select EPPC Debugger Settings. The EPPC Debugger Settings panel is displayed on the right.
  7. 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.

  8. Click Apply and then OK to close the dialog box.
  9. 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.
  1. You can now break and resume execution, set breakpoints, single-step through code, and perform other debugger functions.

  1. 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