C166 Execution Profiling via ASC0 - Provide serial interface to execution profiling engine

Library

Target Support Package IC1/ C166 Driver Library/ Execution Profiling

Description

The C166 Execution Profiling via ASC0 block provides a serial 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 the serial interface (ASC0). See also the MATLAB® command profile_c166.

profile_c166('serial') 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 and then displayed in a summary HTML report and as a MATLAB graphic.

See The Profiling Command for instructions for setting the bit rate automatically or manually, and setting the serial port.

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

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