Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

OnCE™ Module

JTAG

State

TCK

TMS

TDI

TDO

 

Test/Idle-Run

 

-DR-SelectScan

 

Scan-IR-Select

Capture-IR

 

 

Shift-IR

-Exit1IR

 

Update-IR

 

-DR-SelectScan

 

 

Scan-IR-Select

 

 

Capture-IR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Shift-IR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

= Don’t Care

 

 

 

 

 

 

 

= Tri-State

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Exit1-IR

Update-IR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AA0848

Figure 12-24. JTAG IR Status Polling

On the first 4-bit shift sequence, $6 (ENABLE_ONCE) is shifted into the JTAG IR. The first 2 bits coming out of TDO are the standard constants, and the last two are output shifter (OS) bits. OS is 00, indicating that the DSP is in normal mode. On the second 4-bit shift sequence, ENABLE_ONCE is again shifted in. The OS bits are now 11, indicating that the chip is in debug mode. ENABLE_ONCE does not have to be shifted in for JTAG IR polling. After reading proper status, the DR path can be entered directly for OnCE register accesses.

12.10.4.6 TRST/DE Pin Polling

The TRST/DE pin can also be used to provide information about the processor state. When the DE output function is enabled, TRST/DE goes low upon entry into debug mode. The pin is not released until debug mode is exited.

12.10.5 Serial Protocol Description

In order to permit an efficient means of communication between the command controller and the DSP chip, the following protocol has been adopted. Before starting any debugging activity, the command controller has to wait for an acknowledge from the chip that informs the command controller that it has entered the debug mode.

12-48

DSP56824 User’s Manual

 

Accessing the OnCE Module

NOTE:

In case of a breakpoint, trace, or software DEBUG/DEBUGcc instruction, the acknowledge itself initiates the debug session. The command controller communicates with the chip by sending 8-bit commands that may be accompanied by 16-bit data. After sending a command, the command processor starts waiting for the chip to acknowledge execution of the command. The command processor may send a new command only after the chip has acknowledged execution of the previous command.

12.10.5.1 Entering Debug Mode from User Mode

When shifting in the ENABLE_ONCE command, the OS bits will be shifted out so the user can determine if the core has acknowledged the request and halted. To enter the debug mode from the JTAG port, the user must issue the JTAG DEBUG_REQUEST instruction and then enter the ENABLE_ONCE instruction to begin programming the OnCE module.

12.10.5.2 Entering Debug Mode from DSP Reset

The JTAG state machine will be reset via a POR signal. JTAG will therefore be accessible soon after the DSP powers up. The OnCE state machine will be placed at the IDLE state at reset assertion by a pulse. The pulse would be valid for only a few cycles just after reset assertion, allowing for access to the OnCE state machine when the DSP is still in reset. The user can then execute the JTAG instruction DEBUG_REQUEST followed by ENABLE_ONCE. After de-asserting DSP reset, the chip will be in debug mode.

NOTE:

Providing OnCE access in DSP reset allows the user to set breakpoints while in reset. This aids in debugging when the DSP has problems leaving reset.

12.10.5.3 Polling for OnCE Status

It is necessary to poll for OnCE status in the following three situations:

After loading the JTAG instruction DEBUG_REQUEST

After issuing a DSP instruction while in debug mode

When breakpoints are enabled in user mode

In these situations the user must have some way of knowing if the core has halted. Since the TDO pin (which replaces the existing DSO pin) can no longer provide the acknowledge pulse, it has been proposed that the new OSR contain the OS[1:0] bits (as well as the JTAG IR on Capture-IR) that provide this sort of status information.

NOTE:

If the core is executing a STOP or WAIT instruction, the OSR will not be readable (loss of internal clocks) and status must be read via the JTAG IR. Alternately, the user can use the DE output to indicate that a debug event has occurred and that the OnCE module needs servicing.

 

OnCE™ Module

12-49

Соседние файлы в папке DSP568xx