Embedded Target for Motorola MPC555 | ![]() ![]() |
Compiler-Specific Post-Processing Requirements
The Embedded Target for Motorola MPC555 generates an initial ASAP2 file during the code generation process. At this point, the addresses of signals and parameters on the target system are unavailable, since the code has not been compiled and linked. The initial ASAP2 file contains placeholders for the unresolved addresses.
To supply the required memory addresses, the generated code must be compiled and a compiler-generated MAP file must be created.
After the build process, if the Embedded Target for Motorola MPC555 real-time target detects the presence of the ASAP2 file and a MAP file in the required format, it performs a post-processing phase. During this phase, the MAP file is used to propagate the required address information back into the ASAP2 file.
MAP file formats differ between compilers, so the post processing phase is compiler-specific. The Embedded Target for Motorola MPC555 provides the post-processing mechanism for the Diab compiler. Therefore, the Embedded Target for Motorola MPC555 real-time target supports generation of ASAP2 files only when used with the Diab cross-compiler.
To use the Embedded Target for Motorola MPC555 ASAP2 file generation feature, you must configure MATLAB via the mpc555dk_asap2 utility. Before generating ASAP2 files, run the mpc555dk_asap2 utility (described in the next section). This will ensure that the generated MAP and ASAP2 files are automatically post-processed.
The names of the ASAP2 file and the MAP file derive from the source model. The MAP file is generated in the same directory as the source model. The ASAP2 file is written to the build directory.
mpc555dk_asap2 Utility
The Embedded Target for Motorola MPC555 provides a setup utility, mpc555dk_asap2
. Before generating an ASAP2 file, you must execute the mpc555dk_asap2
utility as follows:
where option
is either standard
or mpc555
. The default is standard
.
The option
parameter determines how the MAP file and ASAP2 file are post-processed:
mpc555
: processes a MAP file generated by the Diab cross-compiler in the Diab format. This is the appropriate option for use with the Embedded Target for Motorola MPC555 real-time target, since the real-time target supports only the Diab compiler.
standard
: processes the MAP file with a standard Perl script (asap2post.pl
) provided with Real-Time Workshop Embedded Coder. This script is not suitable for use with Embedded Target for Motorola MPC555.
We recommend that you add a call to mpc555dk_asap2 in your startup.m
file.
![]() | Generating ASAP2 Files | ASAP2 File Generation Procedure | ![]() |