reset_config trst_and_srst
#jtag scan chain
-#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
-jtag_device 8 0x1 0x1 0xfe
-jtag_device 4 0x1 0xf 0xe
-jtag_device 5 0x1 0x1 0x1e
+jtag newtap str9 flash -irlen 8
+jtag newtap str9 cpu -irlen 4 -irmask 0xf
+jtag newtap str9 bs -irlen 5
#target configuration
target create target0 arm966e -endian little -chain-position 1 -variant arm966e