HTC Dream / T-Mobile G1 openocd configuration
[HTC-Dream-G1-JTAG.git] / openocd.cfg
1 #######################################
2 # HTC Dream/Magic - OpenOCD configuration
3 # > arm-usb-ocd profile
4 #
5 # For use with openocd 0.4
6 #######################################
7
8 ## Device settings for arm-usb-odc
9 #interface ft2232
10 #ft2232_device_desc "Olimex OpenOCD JTAG"
11 #ft2232_layout "olimex-jtag"
12 #ft2232_vid_pid 0x15BA 0x0003
13 ## Device settings for LPT wiggler
14 #interface parport
15 #parport_port 0
16 #parport_cable wiggler
17
18 interface ft2232
19 ft2232_device_desc "Debug Board for Neo1973"
20 ft2232_layout jtagkey
21 ft2232_vid_pid 0x1457 0x5118
22
23 ##### HTC Dream configuration #####
24 # based on Atmel AT91rm9200
25 ###################################
26
27 reset_config trst_and_srst #srst_pulls_trst
28
29 #dream information (or something near it)
30    set  _CHIPNAME arm926ejs
31    set  _ENDIAN little
32    set _CPUTAPID 0xa01700e1
33
34
35 proc dbreg {} {
36     #show 16 arm registers only
37     reg 0
38     reg 1 
39     reg 2
40     reg 3
41     reg 4
42     reg 5
43     reg 6
44     reg 7
45     reg 8
46     reg 9
47     reg 10
48     reg 11
49     reg 12
50     reg 13
51     reg 14
52     reg 15
53 }
54
55 jtag newtap arm9 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
56
57 # Create the GDB Target.
58 set _TARGETNAME arm9.cpu
59 target create arm9 arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
60
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
67
68 # This chip has a DCC ... use it
69 arm7_9 dcc_downloads enable
70 arm7_9 fast_memory_access enable
71