Segger J-Link User Manual page 166

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

Advertisement

166
Example
v = JLINK_CORESIGHT_ReadAP(JLINK_CORESIGHT_AP_REG_DATA);
Report1("DATA: "
5.12.2.4
JLINK_CORESIGHT_ReadDP()
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 automatically, so the user
will always see valid data.
Prototype
int JLINK_CORESIGHT_ReadDP(int RegIndex);
Example
v = JLINK_CORESIGHT_ReadDP(JLINK_CORESIGHT_DP_REG_IDCODE);
Report1("DAP-IDCODE: "
5.12.2.5
JLINK_CORESIGHT_WriteAP()
Writes a specific AP register. For JTAG, makes sure that AP is selected automatically.
Prototype
int JLINK_CORESIGHT_WriteAP(int RegIndex, U32 Data);
Example
JLINK_CORESIGHT_WriteAP(JLINK_CORESIGHT_AP_REG_BD1, 0x1E);
5.12.2.6
JLINK_CORESIGHT_WriteDP()
Writes a specific DP register. For JTAG, makes sure that DP is selected automatically.
Prototype
int JLINK_CORESIGHT_WriteDP(int RegIndex, U32 Data);
Example
JLINK_CORESIGHT_WriteDP(JLINK_CORESIGHT_DP_REG_ABORT, 0x1E);
5.12.2.7
JLINK_CORESIGHT_WriteDAP()
Writes to a CoreSight AP/DP register. This function performs a full-qualified write which
means that it tries to write until the write has been accepted or too many WAIT responses
have been received.
Prototype
int JLINK_WriteDAP(int RegIndex, int APnDP, U32 Data);
Parameter
RegIndex
APnDP
J-Link / J-Trace (UM08001)
CHAPTER 5
v);
v);
Description
Specifies the index of the AP/DP
register to write.
0: DP register
1: AP register
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
J-Link script files

Advertisement

Table of Contents

Troubleshooting

loading
Need help?

Need help?

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

This manual is also suitable for:

J-trace

Table of Contents

Save PDF