####################################### # HTC Dream/Magic - OpenOCD configuration # > arm-usb-ocd profile # # For use with openocd 0.4 ####################################### ## Device settings for arm-usb-odc #interface ft2232 #ft2232_device_desc "Olimex OpenOCD JTAG" #ft2232_layout "olimex-jtag" #ft2232_vid_pid 0x15BA 0x0003 ## Device settings for LPT wiggler interface parport parport_port 0 parport_cable wiggler ##### HTC Dream configuration ##### # based on Atmel AT91rm9200 ################################### reset_config trst_and_srst #srst_pulls_trst #dream information (or something near it) set _CHIPNAME arm926ejs set _ENDIAN little set _CPUTAPID 0xa01700e1 proc dbreg {} { #show 16 arm registers only reg 0 reg 1 reg 2 reg 3 reg 4 reg 5 reg 6 reg 7 reg 8 reg 9 reg 10 reg 11 reg 12 reg 13 reg 14 reg 15 } jtag newtap arm9 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID # Create the GDB Target. set _TARGETNAME arm9.cpu target create arm9 arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME # Work area non-functional at this point in time #$_TARGETNAME configure -work-area-phys 0x00200000 \ # -work-area-size 0x4000 -work-area-backup 1 # .. seems to work until watchdog is triggered.. #arm9 configure -work-area-phys 0x103B5000 \ # -work-area-size 0x200 -work-area-backup 0 # This chip has a DCC ... use it arm7_9 dcc_downloads enable arm7_9 fast_memory_access enable