J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
211
5.11.2.16JTAG_Reset()
Description
Performs a TAP reset and tries to auto-detect the JTAG chain (Total IRLen, Number of
devices). If auto-detection was successful, the global DLL variables which determine
the JTAG chain configuration, are set to the correct values. For more information
about the known global DLL variables, please refer to Global DLL variables on
page 213.
Note: This will not work for devices which need some special init (for example to
add the core to the JTAG chain), which is lost at a TAP reset.
Prototype
__api__ int JTAG_Reset(void);
5.11.2.17SYS_Sleep()
Description
Waits for a given number of miliseconds. During this time, J-Link does not communi-
cate with the target.
Prototype
__api__ int SYS_Sleep(int Delayms);
5.11.2.18 JLINK_CORESIGHT_AddAP()
Description
Allows the user to manually configure the AP-layout of the device J-Link is connected
to. This makes sense on targets on which J-Link can not perform a auto-detection of
the APs which are present on 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
constants on page 217.
Prototype
__api__ int JLINK_CORESIGHT_AddAP(int Index, unsigned int Type);
Example
JLINK_CORESIGHT_AddAP(0, CORESIGHT_AHB_AP); // First AP is a AHB-AP
JLINK_CORESIGHT_AddAP(1, CORESIGHT_APB_AP); // Second AP is a APB-AP
JLINK_CORESIGHT_AddAP(2, CORESIGHT_JTAG_AP); // Third AP is a JTAG-AP
5.11.2.19JLINK_CORESIGHT_Configure()
Description
Has to be called once, before using any other _CORESIGHT_ function that accesses
the DAP.
Takes a configuration string to prepare target and J-Link for CoreSight function
usage. Configuration string may contain multiple setup parameters that are set.
Setup parameters are separated by a semicolon.
At the end of the JLINK_CORESIGHT_Configure(), the appropriate target interface
switching sequence for the currently active target interface is output, if not disabled
via setup parameter.
This function has to be called again, each time the JTAG chain changes (for dynami-
cally changing JTAG chains like those which include a TI ICEPick), in order to setup
the JTAG chain again.