Variable
JTAG_ResetPin
JTAG_TRSTPin
JTAG_TCKPin
JTAG_TDIPin
JTAG_TMSPin
JLINK_TRACE_Portwidth
EMU_ETB_IsPresent
EMU_ETB_UseETB
EMU_ETM_IsPresent
EMU_ETM_UseETM
Table 5.11: Global DLL variables
J-Link / J-Trace (UM08001)
Description
Pulls reset pin low / Releases nRST pin. Used to
issue a reset of the CPU. Value assigned to reset
pin reflects the state. 0 = Low, 1 = high.
Example
JTAG_ResetPin = 0;
SYS_Sleep(5); // Give pin some time to get low
JTAG_ResetPin = 1;
Pulls reset pin low / Releases nTRST pin. Used to
issue a reset of the debug logic of the CPU. Value
assigned to reset pin reflects the state. 0 = Low,
1 = high.
Example
JTAG_TRSTPin = 0;
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 Portwidth. 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. Setting 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
emulator. Setting this variable in another func-
tion as InitEmu() 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 InitEmu() does not have any effect.
Example
EMU_ETM_IsPresent= 0;
Uses ETM as trace source. Setting this variable in
another function as InitEmu() does not have any
effect.
Example
EMU_ETM_UseETM = 1;
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
215
R/W
WO
WO
R/W
R/W
R/W
R/W
WO
RO
R/W
WO
Need help?
Do you have a question about the J-Link and is the answer not in the manual?