Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
spru509f(введение).pdf
Скачиваний:
22
Добавлен:
18.05.2015
Размер:
2 Мб
Скачать
☆

www.ti.com

Advanced Debugging Features

5.3Advanced Debugging Features

5.3.1Advanced Event Triggering (AET)

Advanced Event Triggering (AET) uses Event Analysis and Event Sequencer tools to simplify hardware analysis.

Event Analysis uses a simple interface to configure common hardware debug tasks called jobs. You can easily set breakpoints, action points, and counters by using a context menu and performing a simple drag-and-drop action. You can access Event Analysis from the Tools menu, or by right-clicking in a source file.

Event Sequencer looks for conditions in your target program and initiates specific actions when it detects these conditions. While the CPU is halted, you define the conditions and actions, then run your target program. The sequence program looks for the specified condition and performs the requested action.

5.3.1.1Event Analysis

The following jobs can be performed using Event Analysis:

∙Setting breakpoints

–Hardware breakpoints

–Hardware breakpoints with count

–Chained breakpoint

–Global hardware breakpoint

∙Setting action/watch points

–Data actionpoint

–Program actionpoint

–Watchpoint

–Watchpoint with data

∙Setting counters

–Data access counter

–Profile counter

–Watchdog timer

–Generic counter

∙Other

–Benchmark to here

–Emulation pin configuration

For detailed information on the Event Analysis tool, see the Event Analysis topics provided in the online help.

To configure a job using the Event Analysis Tool, Code Composer Studio IDE must be configured for a target processor that contains on-chip analysis features. You can use Event Analysis by selecting it from the Tools menu or by right-clicking in a source file. Once you configure a job, it is enabled and will perform analysis when you run code on your target. For information about how to enable or disable a job that is already configured, see the Advanced Event Triggering online help.

1. Select Tools→Advanced Event Triggering→Event Analysis to view the Event Analysis window.

68

Debug

SPRU509F –May 2005

www.ti.com

Advanced Debugging Features

Figure 5-23. Event Analysis Window

2.Right-click in the Event Analysis Window and choose Event Triggering→Job Type→Job. The job menu is dynamically built and dependent on the target configuration. If a job is not supported on your target, the job is grayed out.

3.Type your information in the Job dialog box.

4.Click Apply to program the job and save your changes.

5.3.1.2Event Sequencer

Event Sequencer looks for conditions in your target program and initiates specific actions when it detects these conditions. While the CPU is halted, you define the conditions and actions, then run your target program. The sequence program looks for the specified condition and performs the requested action.

To use the Event Sequencer, Code Composer Studio IDE must be configured for a target processor that contains on-chip analysis features. You can use the Event Sequencer by selecting it from the Tools menu. Once you create an Event Sequencer program, it is enabled and performs analysis when you run code on your target. For information on creating an Event Sequencer program, see the Advanced Event Triggering online help.

To enable the Event Sequencer:

1. Select Tools→Advanced Event Triggering→Event Sequencer. The Event Sequencer displays.

SPRU509F –May 2005

Debug

69