4 # This is for the case that TRST/SRST is not wired on your JTAG adaptor.
5 # Don't really need them anyways.
9 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
10 jtag_device 4 0x1 0xf 0xe
13 ## Target configuration
15 target arm7tdmi little 0
17 ## software initiated reset (if your SRST isn't wired)
18 #proc target_0_reset {} { mwb 0x0ffff0230 04 }
20 # use top 1k of SRAM for as temporary JTAG memory
21 #working_area 0 0x11C00 0x400 backup
23 ## flash configuration
24 ## AdUC702x not yet spported :(
26 ## If you use the watchdog, the following code makes sure that the board
27 ## doesn't reboot when halted via JTAG. Yes, on the older generation
28 ## AdUC702x, timer3 continues running even when the CPU is halted.
30 proc watchdog_service {} {
34 set watchdog_hdl [after 500 watchdog_service]
37 [new_target_name] configure -event old-post_halt { watchdog_service }
38 [new_target_name] configure -event old-pre_resume { global watchdog_hdl; after cancel $watchdog_hdl }