SourcePoint Intel Help

Table of Contents

first_jtag_device

Return the device ID of the first JTAG device.

Syntax

[result = ] first_jtag_device

Where:

result

specifies a debug variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

Discussion

first_jtag_device returns the device ID of the first JTAG device.ย  It can be used with num_jtag_devices and/or last_jtag_device to iterate over JTAG devices.

Example

To create a custom-format devicelist command:

Command input:

define proc devlist()

{

ย  define ord4 nID

ย  if (num_jtag_devices > 0)

ย  {

ย ย ย  for (nID=first_jtag_device; nID <= last_jtag_device; nID++)

ย ย ย  {

ย ย ย ย ย  printf("%4x %8s (%-11s) port %d, scanchain %d, idcode %x\n",

ย ย ย ย ย ย ย  devicelist[nID].did,

ย ย ย ย ย ย ย  devicelist[nID].alias,

ย ย ย ย ย ย ย  devicelist[nID].devicetype,

ย ย ย ย ย ย ย  devicelist[nID].debugport,

ย ย ย ย ย ย ย  devicelist[nID].scanchain,

ย ย ย ย ย ย ย  devicelist[nID].idcode)ย ย ย ย ย ย ย ย 

ย ย ย  }

ย  }

}

Related Topics