Global Dll Variables - Segger J-Link User Manual

Hide thumbs Also See for J-Link:
Table of Contents

Advertisement

Prototype
int JLINK_CORESIGHT_ReadAP(unsigned int RegIndex);
Example
v = JLINK_CORESIGHT_ReadAP(JLINK_CORESIGHT_AP_REG_DATA);
Report1("DATA: " v);
5.11.2.21JLINK_CORESIGHT_ReadDP()
Description
Reads a specific DP register.
For JTAG, makes sure that DP is selected automatically.
Makes sure that actual data is returned, meaning for register read-accesses which
usually only return data on the second access, this function performs this automati-
cally, so the user will always see valid data.
Prototype
int JLINK_CORESIGHT_ReadDP(unsigned int RegIndex);
Example
v = JLINK_CORESIGHT_ReadDP(JLINK_CORESIGHT_DP_REG_IDCODE);
Report1("DAP-IDCODE: " v);
5.11.2.22JLINK_CORESIGHT_WriteAP()
Description
Writes a specific AP register.
For JTAG, makes sure that AP is selected automatically.
Prototype
int JLINK_CORESIGHT_WriteAP(unsigned int RegIndex, unsigned int Data);
Example
JLINK_CORESIGHT_WriteAP(JLINK_CORESIGHT_AP_REG_BD1, 0x1E);
5.11.2.23JLINK_CORESIGHT_WriteDP()
Description
Writes a specific DP register.
For JTAG, makes sure that DP is selected automatically.
Prototype
int JLINK_CORESIGHT_WriteDP(unsigned int RegIndex, unsigned int Data);
Example
JLINK_CORESIGHT_WriteDP(JLINK_CORESIGHT_DP_REG_ABORT, 0x1E);

5.11.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 specific values, others
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.
J-Link / J-Trace (UM08001)
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
213

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

J-trace

Table of Contents

Save PDF