summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-12-28 17:36:39 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-12-28 17:36:39 +1300
commit9dd58be51c51273e7ccb2094115ea101d06701d6 (patch)
tree0dddba9e4dd3f2ed6d8c4edc2a232e16f4ec1119
parent13ec28b4bd88099c051f87a5ef59a46aa41a740b (diff)
downloadpi-zero-jtag-9dd58be51c51273e7ccb2094115ea101d06701d6.tar.xz
Add Pi Zero OpenOCD target configuration
-rw-r--r--pi-zero.cfg15
1 files changed, 15 insertions, 0 deletions
diff --git a/pi-zero.cfg b/pi-zero.cfg
new file mode 100644
index 0000000..9895056
--- /dev/null
+++ b/pi-zero.cfg
@@ -0,0 +1,15 @@
+transport select jtag
+
+adapter_khz 2000
+adapter_nsrst_delay 300
+reset_config trst_only
+
+set _CHIPNAME rpi
+set _CPU_TAPID 0x07b7617f
+
+jtag newtap $_CHIPNAME arm -irlen 5 -expected-id $_CPU_TAPID
+
+set _TARGETNAME $_CHIPNAME.arm
+target create $_TARGETNAME arm11 -chain-position $_TARGETNAME
+rpi.arm configure -event gdb-attach { halt }
+rpi.arm configure -work-area-phys 0x2F0000 -work-area-size 8096