5.10.2.18CORESIGHT_AddAP()
Description
Allows the user to manually configure the AP-layout of the device J-Link is connected
to. This makes sense on targets where J-Link can not perform a auto-detection of the
APs which are present of the target system. Type can only be a known global J-Link
DLL AP constant. For a list of all available constants, please refer to Global DLL con-
stants on page 170.
Prototype
__api__ int CORESIGHT_AddAP(int Index, unsigned int Type);
Example
CORESIGHT_AddAP(0, CORESIGHT_AHB_AP); // First AP is a AHB-AP
CORESIGHT_AddAP(1, CORESIGHT_APB_AP); // Second AP is a APB-AP
CORESIGHT_AddAP(2, CORESIGHT_JTAG_AP); // Third AP is a JTAG-AP
5.10.3 Global DLL variables
The script file feature also provides some global variables which are used for DLL
configuration. Some of these variables can only be set to some specifc values, other
ones can be set to the whole datatype with. In the following all global variables and
their value ranges are listed and described.
Note:
All global variables are treated as unsigned 32-bit values and are zero-ini-
tialized.
Variable
CPU
JTAG_IRPre
JTAG_DRPre
JTAG_IRPost
JTAG_DRPost
Table 5.10: Global DLL variables
J-Link / J-Trace (UM08001)
Description
Pre-selct target CPU J-Link is communicating
with. Used in InitTarget() to skip the core auto-
detection of J-Link. This variable can only be set
to a known global J-Link DLL constant. For a list
of all valid values, please refer to Global DLL con-
stants on page 170.
Example
CPU = ARM926EJS;
Used for JTAG chain configuration. Sets the num-
ber of IR-bits of all devices which are closer to
TDO than the one we want to communicate with.
Example
JTAG_IRPre = 6;
Used for JTAG chain configuration. Sets the num-
ber of devices which are closer to TDO than the
one we want to communicate with.
Example
JTAG_DRPre = 2;
Used for JTAG chain configuration. Sets the num-
ber of IR-bits of all devices which are closer to
TDI than the one we want to communicate with.
Example
JTAG_IRPost = 6;
Used for JTAG chain configuration. Sets the num-
ber of devices which are closer to TDI than the
one we want to "communicate with.
Example
JTAG_DRPost = 0;
© 2004-2013 SEGGER Microcontroller GmbH & Co. KG
167
R/W
W
R/W
R
R
R
Need help?
Do you have a question about the J-Link and is the answer not in the manual?