####################################### # HTC Dream/Magic - OpenOCD configuration # > Wiggler profile # changed by opensys # For use with openocd 0.4 ####################################### # Parallel port wiggler (many clones available) on port 0x378 # # Addresses: 0x378/LPT1 or 0x278/LPT2 ... interface parport #parport_port 0x378 parport_port 0 parport_cable wiggler #jtag_khz 2 ##### 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 # set _CPUTAPID 0x201700E1 # set _CPUTAPID 0x4117b362 set _CPUTAPID 0x301700e1 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