24.10.2012 Views

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

122 CHAPTER 5 Working with J-<strong>Link</strong> and J-<strong>Trace</strong><br />

Variable Description R/W<br />

Pulls reset pin low / Releases nRST pin. Used<br />

to issue a reset of the CPU. Value assigned to<br />

reset pin reflects the state. 0 = Low, 1 = high.<br />

JTAG_ResetPin Example<br />

JTAG_ResetPin = 0;<br />

SYS_Sleep(5); // Give pin some time to get low<br />

JTAG_ResetPin = 1;<br />

Pulls reset pin low / Releases nTRST pin. Used<br />

to issue a reset of the debug logic of the CPU.<br />

Value assigned to reset pin reflects the state.<br />

JTAG_TRSTPin<br />

0 = Low, 1 = high.<br />

Example<br />

JTAG_TRSTPin = 0;<br />

SYS_Sleep(5); // Give pin some time to get low<br />

JTAG_TRSTPin = 1;<br />

If the connected device has an ETB and you<br />

want to use it with J-link, this variable should<br />

be set to 1. Setting this variable in another<br />

function as InitEmu() does not have any<br />

EMU_ETB_IsPresent effect.<br />

Example<br />

void InitEmu(void) {<br />

EMU_ETB_IsPresent = 1;<br />

}<br />

Table 5.10: Global DLL variables<br />

5.10.4 Global DLL constants<br />

Currently there are only global DLL constants to set the global DLL variable CPU. If<br />

necessary, more constants will be implemented in the future.<br />

5.10.4.1 Constants for global variable: CPU<br />

The following constants can be used to set the global DLL variable CPU:<br />

• ARM7<br />

• ARM7TDMI<br />

• ARM7TDMIR3<br />

• ARM7TDMIR4<br />

• ARM7TDMIS<br />

• ARM7TDMISR3<br />

• ARM7TDMISR4<br />

• ARM9<br />

• ARM9TDMIS<br />

• ARM920T<br />

• ARM922T<br />

• ARM926EJS<br />

• ARM946EJS<br />

• ARM966ES<br />

• ARM968ES<br />

• ARM11<br />

• ARM1136<br />

• ARM1136J<br />

• ARM1136JS<br />

• ARM1136JF<br />

• ARM1136JFS<br />

• ARM1156<br />

• ARM1176<br />

• ARM1176J<br />

• ARM1176JS<br />

• ARM1176IF<br />

Write-only<br />

Write-only<br />

Write-only<br />

J-<strong>Link</strong> / J-<strong>Trace</strong> (<strong>UM08001</strong>) © 2004-2010 SEGGER Microcontroller GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!