local &temp

RESet
probe.reset
SYStem.RESet
System.cpu dra829
SYStem.JtagClock 10MHz
SYStem.Option RESBREAK OFF
SYStem.Option EnReset OFF
System.memaccess dap

NAME.RESET
NAME.SET X.0 X.TCK
NAME.SET X.1 X.TMS
NAME.SET X.2 X.TDI
NAME.SET X.3 X.TDO
NAME.SET X.4 X.NTRST
;NAME.SET X.5 X.RTCK
;PROBE.PROTOCOL.LIST JTAG X.TCK X.TMS X.TDI X.TDO X.NTRST SELECT-DR-SCAN /track
;PROBE.T X.TCK X.TMS X.TDI X.TDO X.NTRST X.RTCK /TRACK
PROBE.PROTOCOL.LIST JTAG X.TCK X.TMS X.TDI X.TDO X.NTRST SELECT-DR-SCAN /track
PROBE.T X.TCK X.TMS X.TDI X.TDO X.NTRST /TRACK

probe.mode 50mhz 
;probe.TPreDelay 100%
probe.TDelay 100%

setup.urate 1000s
system.polling off

area.clear
area

probe.state

probe.arm

SYStem.attach

data.set e:0x70000000 %LE %Long 0xCAFEBABE 
&temp=d.l(e:0x70000000)

probe.off

probe.save j7es-attach-dap_write_read2.ad

print v.value(&temp)

enddo
