Main Content

SoC Blockset Task Profiling

When you use the SoC Blockset™ product with the STM32F4xx based boards, the boards can use task profiler to measure the timing of the interrupts on the processor. To profile interrupt timing, follow these steps.

  1. Create or open an Embedded Coder® Support Package for STMicroelectronics® Discovery Boards model.

  2. On the Hardware tab, click Hardware Settings.

  3. On the Code Generation > Verification > Code execution time profiling pane, select Measure task execution time. Close the Configuration Parameters window.

  4. On the Hardware tab, enable interrupt profiling by clicking Profile Tasks.

  5. Run the model on the hardware board by clicking Monitor & Tune.

  6. When the run completes, open the Simulation Data Inspector to see the data signals and the interrupts on the STMicroelectronics processor. This figure shows a sample of the expected interrupt data shown. For more information on tasks in the Simulation Data Inspector, see Task Visualization in Simulation Data Inspector (SoC Blockset).

    Simulation Data Inspector view of interrupts

  7. Using the data collected in the Simulation Data Inspector, you can use the Task Execution Report (SoC Blockset) tool to generate an aggregation of the timing data from the interrupts.

See Also

(SoC Blockset) |