24.10.2012 Views

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

120 CHAPTER 5 Working with J-<strong>Link</strong> and J-<strong>Trace</strong><br />

5.10.2.12JTAG_GetU32()<br />

Description<br />

Gets 32 bits JTAG data, starting at given bit position.<br />

Prototype<br />

__api__ int JTAG_GetU32(int BitPos);<br />

5.10.2.13JTAG_WriteClocks()<br />

Description<br />

Writes a given number of clocks.<br />

Prototype<br />

__api__ int JTAG_WriteClocks(int NumClocks);<br />

5.10.2.14JTAG_StoreClocks()<br />

Description<br />

Stores a given number of clocks in the DLL JTAG buffer.<br />

Prototype<br />

__api__ int JTAG_StoreClocks(int NumClocks);<br />

5.10.2.15JTAG_Reset()<br />

Description<br />

Performs a TAP reset and tries to auto-detect the JTAG chain (Total IRLen, Number of<br />

devices). If auto-detection was successful, the global DLL variables which determine<br />

the JTAG chain configuration, are set to the correct values. For more information<br />

about the known global DLL variables, please refer to Global DLL variables on<br />

page 120.<br />

Note: This will not work for devices which need some special init (for example to<br />

add the core to the JTAG chain), which is lost at a TAP reset.<br />

Prototype<br />

__api__ int JTAG_Reset(void);<br />

5.10.2.16SYS_Sleep()<br />

Description<br />

Waits for a given number of miliseconds. During this time, J-<strong>Link</strong> does not communicate<br />

with the target.<br />

Prototype<br />

__api__ int SYS_Sleep(int Delayms);<br />

5.10.3 Global DLL variables<br />

The script file feature also provides some global variables which are used for DLL<br />

configuration. Some of these variables can only be set to some specifc values, other<br />

ones can be set to the whole datatype with. In the following all global variables and<br />

their value ranges are listed and described.<br />

J-<strong>Link</strong> / J-<strong>Trace</strong> (<strong>UM08001</strong>) © 2004-2010 SEGGER Microcontroller GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!