summaryrefslogtreecommitdiff
path: root/platform/wavelet3d/openocd.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'platform/wavelet3d/openocd.cfg')
-rw-r--r--platform/wavelet3d/openocd.cfg32
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/wavelet3d/openocd.cfg b/platform/wavelet3d/openocd.cfg
new file mode 100644
index 0000000..f801f6a
--- /dev/null
+++ b/platform/wavelet3d/openocd.cfg
@@ -0,0 +1,32 @@
+debug_level 0
+adapter speed 10000
+
+adapter driver remote_bitbang
+remote_bitbang host localhost
+
+remote_bitbang port 1234
+
+# we don't have srst
+reset_config trst_only
+
+set _CHIPNAME riscv
+set _TARGETNAME $_CHIPNAME.cpu
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10002FFF
+target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
+
+foreach t [jtag names] {
+ puts [format "TAP: %s\n" $t]
+}
+
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME
+
+riscv set_reset_timeout_sec 2000
+riscv set_command_timeout_sec 2000
+riscv set_prefer_sba on
+
+scan_chain
+init
+reset halt
+
+echo "Ready for Remote Connections on port 3333."