C166 Execution Profiling via CAN A - Provide CAN interface to execution profiling engine via CAN channel A

Library

Target Support Package IC1/ C166 Driver Library/ Execution Profiling

Description

The C166 Execution Profiling via CAN A block provides a CAN interface to the execution profiling engine. On receipt of a start command message, logging of execution profile data begins. On completion of a logging run, the recorded data is automatically returned via CAN. You must specify the message identifiers for the start command and the returned data. These identifiers must be compatible with the values used by the host-side part of the execution profiling utility. See also the MATLAB command profile_c166.

profile_c166(CAN) collects and displays execution profiling data from an Infineon C166 target microcontroller that is running a suitably configured application generated by the Target Support Package IC1 product. The data collected is unpacked then displayed in a summary HTML report and as a MATLAB graphic.

To use the CAN connection, you must have suitable CAN hardware installed on the host computer. See The Profiling Command for instructions for setting the CAN Application Channel and bit rate.

To configure a model for use with execution profiling, you must perform the following steps:

  1. Check the appropriate option in the Target Specific Options tab of the Real-Time Workshop Options dialog box.

  2. Make sure the model includes a C166 Execution Profiling block that provides an interface between the target-side profiling engine, and the host-side computer from which this command is run.

For more information, see Execution Profiling which includes instructions for the example demo c166_multitasking.

Dialog Box

Start command CAN message identifier

Set the identifier of the message to start logging execution profiling data. You should use the default unless you have modified profile_c166. This identifier must be compatible with the values used by the host-side part of the execution profiling utility (profile_c166).

The utility profile_c166 provides a mechanism for initiating an execution profiling run and for uploading the recorded data to the host machine. To perform this procedure using a CAN connection between host and target, profile_c166 first sends a CAN message that is a command to start an execution profiling run. The CAN identifier for this message must be specified as the same value on the target as on the host. The host-side values are hard-coded in profile_c166. If you are using an unmodified version of the host-side utility, you should use the default value for this CAN message identifier. These are visible to help you avoid using the same identifier for other tasks.

Returned data CAN message identifier

Set the message identifier for the returned data. As with the message identifier for the start command, the value specified here must be the same as the hard-coded value in profile_c166.

Sample time

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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS