arm11_add_debug_scan_n() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDarm11_add_debug_scan_n()

arm11_add_debug_scan_n() function

Select and write to Scan Chain Register (SCREG) This function sets the instruction register to SCAN_N and writes the data register with the selected chain number. http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301f/Cacbjhfg.html Changes the current scan chain if needed, transitions to the specified TAP state, and leaves the IR undefined. The chain takes effect when Update-DR is passed (usually when subsequently the INTEXT/EXTEST instructions are written). \warning (Obsolete) Using this twice in a row will \em fail. The first call will end in Pause-DR. The second call, due to the IR caching, will not go through Capture-DR when shifting in the new scan chain number. As a result the verification in arm11_in_handler_scan_n() must fail. \remarks This adds to the JTAG command queue but does \em not execute it.

Syntax

int arm11_add_debug_scan_n(struct arm11_common *arm11,     uint8_t chain,     tap_state_t state);
Implemented in arm11_dbgtap.c:183

Arguments

arm11

Target state variable.

chain

Scan chain that will be selected.

state

Pass the final TAP state or ARM11_TAP_DEFAULT for the default value (Pause-DR).

References

LocationReferrerText
arm11_dbgtap.c:183
int arm11_add_debug_scan_n(struct arm11_common *arm11,
arm11_dbgtap.h:21
int arm11_add_debug_scan_n(struct arm11_common *arm11,
arm11.c:96arm11_debug_entry()
arm11_add_debug_scan_n(arm11, 0x05, ARM11_TAP_DEFAULT);
arm11.c:281arm11_leave_debug_state()
arm11_add_debug_scan_n(arm11, 0x05, ARM11_TAP_DEFAULT);
arm11.c:1153arm11_examine()
arm11_add_debug_scan_n(arm11, 0x00, ARM11_TAP_DEFAULT);
arm11_dbgtap.c:269arm11_read_dscr()
retval = arm11_add_debug_scan_n(arm11, 0x01, ARM11_TAP_DEFAULT);
arm11_dbgtap.c:306arm11_write_dscr()
retval = arm11_add_debug_scan_n(arm11, 0x01, ARM11_TAP_DEFAULT);
arm11_dbgtap.c:345arm11_run_instr_data_prepare()
return arm11_add_debug_scan_n(arm11, 0x05, ARM11_TAP_DEFAULT);
arm11_dbgtap.c:364arm11_run_instr_data_finish()
return arm11_add_debug_scan_n(arm11, 0x00, ARM11_TAP_DEFAULT);
arm11_dbgtap.c:848arm11_sc7_run()
retval = arm11_add_debug_scan_n(arm11, 0x07, ARM11_TAP_DEFAULT);

Call Tree

Type of arm11_add_debug_scan_n()
arm11_add_debug_scan_n()
uint8_t
all items filtered out