Embedded Target for Motorola MPC555    

ASAP2 File Generation Procedure

  1. Set up for ASAP2 file generation by running the mpc555dk_asap2, as described above.
  2. Create the desired model. Use appropriate parameter names and signal labels to refer to ASAP2 CHARACTERISTICS and MEASUREMENTS respectively.
  3. Define the corresponding ASAP2.Parameter and ASAP2.Signal objects in the MATLAB workspace.
  4. Configure the data objects to generate unstructured global storage declarations in the generated code by assigning one of the following storage classes to the RTWInfo.StorageClass property:
  1. ExportedGlobal is the default storage class.

  1. Configure the other data object properties such as LongID_ASAP2, PhysicalMin_ASAP2, etc.
  2. In the Advanced pane of the Simulation Parameters dialog box, select the Inline parameters option.
  1. Note that you should not configure the parameters associated with your data objects in the Model Parameter Configuration dialog box. If a parameter that resolves to a Simulink data object is configured using the Model Parameter Configuration dialog box, the dialog box configuration is ignored. You can, however, use the Model Parameter Configuration dialog to configure other parameters in your model.

  1. In the Real-Time Workshop pane of the Simulation Parameters dialog, select ERT code generation options(2) from the Category menu. Then select the Generate ASAP2 file option.
  2. Click Apply.
  3. Click Build (or Generate code).
  4. The ASAP2 file is generated as part of the build process.

  Requirements and Limitations Data Acquisition (DAQ) List Configuration