1 #######################################
2 # HTC Dream/Magic - OpenOCD configuration
3 # > arm-usb-ocd profile
5 # For use with openocd 0.4
6 #######################################
8 ## Device settings for arm-usb-odc
10 #ft2232_device_desc "Olimex OpenOCD JTAG"
11 #ft2232_layout "olimex-jtag"
12 #ft2232_vid_pid 0x15BA 0x0003
13 ## Device settings for LPT wiggler
16 #parport_cable wiggler
19 ft2232_device_desc "Debug Board for Neo1973"
21 ft2232_vid_pid 0x1457 0x5118
25 ##### HTC Dream configuration #####
26 # based on Atmel AT91rm9200
27 ###################################
29 reset_config trst_and_srst #srst_pulls_trst
31 #dream information (or something near it)
32 set _CHIPNAME arm926ejs
34 set _CPUTAPID 0xa01700e1
38 #show 16 arm registers only
57 jtag newtap arm9 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
59 # Create the GDB Target.
60 set _TARGETNAME arm9.cpu
61 target create arm9 arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
63 # Work area non-functional at this point in time
64 #$_TARGETNAME configure -work-area-phys 0x00200000 \
65 # -work-area-size 0x4000 -work-area-backup 1
66 # .. seems to work until watchdog is triggered..
67 #arm9 configure -work-area-phys 0x103B5000 \
68 # -work-area-size 0x200 -work-area-backup 0
70 # This chip has a DCC ... use it
71 arm7_9 dcc_downloads enable
72 arm7_9 fast_memory_access enable