Embedded Target for Motorola MPC555    

Setting Up the Model

In this section you will make a local copy of the demo model and configure the model as required by this exercise:

  1. Make a local copy of the demo model, mpc555pil_fuelsys.mdl.
  1. The model is located in the directory
    matlabroot/toolbox/rtw/targets/mpc555dk/mpc555demos. Open mpc555pil_fuelsys.mdl and save a copy of the model to your working directory.

Next, check that the model is correctly configured for use with the Embedded Target for Motorola MPC555.

  1. From the Simulation menu, choose Simulation Parameters. The Simulation Parameters dialog box opens. Click on the Real-Time Workshop tab to activate the Real-Time Workshop pane.
  2. Select Target configuration from the Category menu of the Real-Time Workshop pane. The target configuration should be as shown in this figure.

  3. If the target configuration settings are not as shown, click the Browse... button to open the System Target File Browser, and select the Embedded Target for Motorola MPC555 (processor-in-the-loop) target. Then click OK to close the Browser and return to the Real-Time Workshop pane.
  4. Select ERT code generation options(1)from the Category menu. Make sure that the options are set to their defaults, as shown in this figure.

  5. Select ERT code generation options (2) from the Category menu. Make sure that the options are set as shown in this figure. Note that the Create Simulink (S-Function) block option is selected. This is required to generate a Real-Time Workshop Embedded Coder S-function wrapper block.

.

  1. Select MPC555-DK (PIL) options from the Category menu.

  1. Select Download_and_run from the Build action list. This option automatically invokes the appropriate downloading/debugging utility for your development environment, as specified in your target preferences.
  2. Click Apply if you have changed any parameters. Then click OK to close the Simulation Parameters dialog box. If needed, save the model to preserve any changes you have made.

  The Demo Model Building PIL and Simulation Components