174
Variable
JTAG_TCKPin
JTAG_TDIPin
JTAG_TMSPin
JLINK_TRACE_Portwidth
EMU_ETB_IsPresent
EMU_ETB_UseETB
EMU_ETM_IsPresent
EMU_ETM_UseETM
EMU_JTAG_DisableHW-
Transmissions
CORESIGHT_CoreBaseAd-
dr
CORESIGHT_IndexAHBAP-
ToUse
J-Link / J-Trace (UM08001)
CHAPTER 5
SYS_Sleep(5); // Give pin some time to get low
JTAG_TRSTPin = 1;
Pulls TCK pin LOW / HIGH. Value assigned to reset pin
reflects the state. 0 = LOW, 1 = HIGH.
Example
JTAG_TCKPin = 0;
Pulls TDI pin LOW / HIGH. Value assigned to reset pin
reflects the state. 0 = LOW, 1 = HIGH.
Example
JTAG_TDIPin = 0;
Pulls TMS pin LOW / HIGH. Value assigned to reset pin
reflects the state. 0 = LOW, 1 = HIGH.
Example
JTAG_TMSPin = 0;
Sets or reads Trace Port width. Possible values: 1,2, 4.
Default value is 4.
Example
JLINK_TRACE_Portwidth = 4;
If the connected device has an ETB and you want to
use it with J-Link, this variable should be set to 1. Set-
ting this variable in another function as InitEmu() does
not have any effect.
Example
void InitEmu(void) {
EMU_ETB_IsPresent = 1;
}
Uses ETB instead of RAWTRACE capability of the emu-
lator. Setting this variable in another function as InitE-
mu() does not have any effect.
Example
EMU_ETB_UseETB = 0;
Selects whether an ETM is present on the target or
not. Setting this variable in another function as InitE-
mu() does not have any effect.
Example
EMU_ETM_IsPresent= 0;
Uses ETM as trace source. Setting this variable in an-
other function as InitEmu() does not have any effect.
Example
EMU_ETM_UseETM = 1;
Disables use of hardware units for JTAG transmissions
since this can cause problems on some hardware de-
signs.
Example
EMU_JTAG_DisableHWTransmissions = 1;
Sets base address of core debug component for
CoreSight compliant devices. Setting this variable dis-
ables the J-Link auto-detection of the core debug com-
ponent base address. Used on devices where auto-de-
tection of the core debug component base address is
not possible due to incorrect CoreSight information.
Example
CORESIGHT_CoreBaseAddr = 0x80030000;
Pre-selects an AP as an AHB-AP that J-Link uses
for debug communication (Cortex-M). Setting this
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Description
J-Link script files
R/W
R/W
R/W
R/W
R/W
WO
RO
R/W
WO
WO
R/W
WO
Need help?
Do you have a question about the J-Link and is the answer not in the manual?