baseband
[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 jtag_khz 2
24
25 ##### HTC Dream configuration #####
26 # based on Atmel AT91rm9200
27 ###################################
28
29 reset_config trst_and_srst #srst_pulls_trst
30
31 #dream information (or something near it)
32    set  _CHIPNAME arm926ejs
33    set  _ENDIAN little
34    set _CPUTAPID 0xa01700e1
35
36
37 proc dbreg {} {
38     #show 16 arm registers only
39     reg 0
40     reg 1 
41     reg 2
42     reg 3
43     reg 4
44     reg 5
45     reg 6
46     reg 7
47     reg 8
48     reg 9
49     reg 10
50     reg 11
51     reg 12
52     reg 13
53     reg 14
54     reg 15
55 }
56
57 jtag newtap arm9 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
58
59 # Create the GDB Target.
60 set _TARGETNAME arm9.cpu
61 target create arm9 arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
62
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
69
70 # This chip has a DCC ... use it
71 arm7_9 dcc_downloads enable
72 arm7_9 fast_memory_access enable
73