EasyManua.ls Logo

Segger J-Link - Global DLL Constants

Segger J-Link
480 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
217
5.11.4 Global DLL constants
Currently there are only global DLL constants to set the global DLL variable CPU. If
necessary, more constants will be implemented in the future.
5.11.4.1 Constants for global variable: CPU
The following constants can be used to set the global DLL variable CPU:
•ARM7
•ARM7TDMI
CORESIGHT_
AHBAPCSWDefaultSetting
s
Overrides the default settings to be used by the
DLL when configuring the AHB-AP CSW register.
By default, the J-Link DLL will use the following
settings for the CSW:
Cortex-M0, M0+, M3, M4
[30] == 0
[28] == 0
[27] == 0
[26] == 0
[25] == 1
[24] == 1
Configurable settings
[30] == SPROT: 0 == secure transfer request
[28] == HRPOT[4]: Always 0
[27] == HRPOT[3]: 0 == uncachable
[26] == HRPOT[2]: 0 == unbufferable
[25] == HRPOT[1]: 0 == unpriviledged
[24] == HRPOT[0]: 1 == Data access
WO
MAIN_ResetType
Used to determine what reset type is currently
selected by the debugger. This is useful, if the
script has to behave differently in case a specific
reset type is selected by the debugger and the
script file has a ResetTarget() function which
overrides the J-Link reset strategies.
Example
if (MAIN_ResetType == 2) {
[...]
} else {
[...]
}
RO
MAIN_ActiveTIF
Returns the currently used target interface used
by the DLL to communicate with the target. Use-
ful in cases where some special setup only needs
to be done for a certain target interface, e.g.
JTAG.
For a list of possible values this variable may
hold, please refer to Constants for global variable
"MAIN_ActiveTIF" on page 219.
RO
MAIN_IsFirstIdentify
Used to check if this is the first time we are run-
ning into InitTarget(). Useful if some init steps
only need to be executed once per debug ses-
sion.Example
if (MAIN_IsFirstIdentify == 1) {
[...]
} else {
[...]
}
RO
Variable Description R/W
Table 5.11: Global DLL variables

Table of Contents

Other manuals for Segger J-Link

Related product manuals