; -------------------------------------------------------------------------------- ; @Title: Example for manual JTAG access, Debugger in DOWN Mode ; @Description: ; This script reads out the IDCODE of an ARM7 core when the debugger is in ; DOWN mode. ; Detailed knowledge about JTAG is required to use manual JTAG control signals! ; Tested on an ARM7 target board. ; @Keywords: idcode ; @Author: PEG ; @Props: Template ; @Copyright: (C) 1989-2014 Lauterbach GmbH, licensed for use with TRACE32(R) only ; -------------------------------------------------------------------------------- ; $Id: example1.cmm 6982 2014-04-24 11:10:17Z kjmal $ ; The debugger is in DOWN mode, the JTAG driver is tristated. JTAG.PIN ENable ; enable JTAG output driver JTAG.SHIFTTMS 1 1 1 1 1 ; soft reset of the JTAG interface, goto Test-Logic Reset state JTAG.SHIFTTMS 0 1 1 0 0 ; goto Shift-IR state JTAG.SHIFTREG 0 1 1 1 ; shift in IDCODE instruction JTAG.SHIFTTMS 1 1 0 0 ; goto Shift-DR state JTAG.SHIFTREG 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; shift in 32 dummy bits to get the IDCODE PRINT JTAG.SHIFT() ; print result JTAG.SHIFTTMS 1 1 1 1 ; goto Test-Logic Reset state JTAG.PIN DISable ; disable JTAG output driver ENDDO