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

www.ti.com

Automation (for Debug)

5.5Automation (for Debug)

5.5.1Using the General Extension Language (GEL)

As mentioned earlier, GEL scripts can be used to create custom GEL menus and automate steps in Code Composer Studio. Section 4.6.1 described how to use built-in GEL functions to automate various project management steps. There are also many built-in GEL functions that can be used to automate debug steps, such as setting breakpoints, adding variables to the Watch Window, beginning execution, halting execution, and setting up File I/O.

5.5.2Scripting Utility for Debug

The scripting utility ( Section 4.6.2) also has commands that can automate many debug steps. See the online help that comes with the scripting utility for more information.

5.6Reset Options

It may be necessary to perform a reset of the target or the emulator using commands integrated in the Code Composer Studio IDE. The availability of these reset commands depends on the IDE connection to the target. See Section 3.1.3 for more information on connecting or disconnecting the target.

5.6.1Target Reset

Target reset initializes the contents of all registers to their power-up state, and halts execution of the program. If the target board does not respond to this command and you are using a kernel-based device driver, the CPU kernel may be corrupt. In this case, you must reload the kernel.

The simulator initializes the contents of all registers to their power-up state, according to target simulation specifications.

To reset the target processor, select DebugReset CPU.

Note:

Connection must be established with the target for the DebugReset CPU option to be available.

5.6.2Emulator Reset

Some processors require putting the processor into its functional run state before a hard reset will work. In this case, the only way to force the processor back into this functional run state is to reset the emulator. An emulator reset will pull the TRST pin active, forcing the device to the functional run mode.

The Reset Emulator option becomes available whenever Code Composer Studio is disconnected from the target. To reset the emulator, choose DebugReset Emulator. Upon running Reset Emulator, the hardware is left in a free running state and you can now manually reset the target hardware by pressing the reset button or by selecting DebugReset CPU. Note that this does not apply to ARM devices.

SPRU509F –May 2005

Debug

75

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]