Files
zTC1/mico-os/makefiles/OpenOCD/MOC108/MOC108.cfg

35 lines
857 B
INI

source [find mico-os/makefiles/OpenOCD/interface/swj-dp.tcl]
source [find mico-os/makefiles/OpenOCD/MOC108/flash.tcl]
set _CHIPNAME moc108
set _CPUTAPID 0x15968001
set _TARGETNAME $_CHIPNAME.cpu
adapter_khz 10000
reset_config none
# Add the ARM9 core debug tap
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
# Create the ".cpu" target
target create $_TARGETNAME arm966e -endian little -chain-position $_TARGETNAME -rtos auto
#$_TARGETNAME configure -work-area-phys 0x400000 -work-area-size 0x8000 -work-area-backup 0
arm7_9 dbgrq enable
arm7_9 dcc_downloads enable
gdb_breakpoint_override enable
# Reset target when gdb attaches
$_TARGETNAME configure -event gdb-attach {
soft_reset_halt
}
# Shutdown OpenOCD daemon when gdb detaches
$_TARGETNAME configure -event gdb-detach {
resume
shutdown
}