| Target Support Package™ FM5 | ![]() |
Target Support Package FM5/ MPC555 Driver Library/ Execution Profiling

Provides a CAN interface to the execution profiling engine. On receipt of a start command message, logging of execution profile data is commenced. On completion of a logging run, the recorded data is automatically returned via serial. See also MATLAB command profile_c166.
profile_mpc555(connection) collects and displays execution profiling data from an MPC555 target microcontroller that is running a suitably configured application generated by the Target Support Package FM5 product. The connection may be set to 'serial' in order to collect data via a serial connection between the target and the host computer.
The data collected is unpacked then displayed in a summary HTML report and as MATLAB graphic.
profdata = profile_mpc555(connection)
returns the execution profiling data in the format documented by exprofile_unpack.
See The Profiling Command for instructions for setting the bit rate automatically or manually.
To configure a model for use with execution profiling, you must perform the following steps:
Make sure the model includes an MPC555 Execution Profiling block that provides an interface between the target-side profiling engine, and the host-side computer from which this command is run.
Make sure the execution profiling option is selected in the MPC5xx Options pane of the Configuration Parameters dialog box.
For more information see Execution Profiling which includes instructions for the example demo mpc555rt_multitasking.mdl.

The sample time of the block. The faster the sample time of the block, the faster data will be uploaded at the end of the execution profiling run. You may want to run this block slower than the fastest rate in the system because the execution profiling itself imposes some loading on the processor. You can minimize this extra loading by not running it at the fastest rate.
![]() | MPC555 Execution Profiling via CAN A | MPC555 Resource Configuration | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |