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
23 ##### HTC Dream configuration #####
24 # based on Atmel AT91rm9200
25 ###################################
27 reset_config trst_and_srst #srst_pulls_trst
29 #dream information (or something near it)
30 set _CHIPNAME arm926ejs
32 set _CPUTAPID 0xa01700e1
36 #show 16 arm registers only
55 jtag newtap arm9 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
57 # Create the GDB Target.
58 set _TARGETNAME arm9.cpu
59 target create arm9 arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
61 # Work area non-functional at this point in time
62 #$_TARGETNAME configure -work-area-phys 0x00200000 \
63 # -work-area-size 0x4000 -work-area-backup 1
64 # .. seems to work until watchdog is triggered..
65 #arm9 configure -work-area-phys 0x103B5000 \
66 # -work-area-size 0x200 -work-area-backup 0
68 # This chip has a DCC ... use it
69 arm7_9 dcc_downloads enable
70 arm7_9 fast_memory_access enable