Forráskód Böngészése

Merge pull request #1 from ErikChanGit/main

Init sdk-debugger-openocd-kendryte
shiwei 4 éve
szülő
commit
b59f6164f9

+ 45 - 0
Readme.txt

@@ -0,0 +1,45 @@
+/-------------------------------------\
+|    Kendryte OpenOCD Win32 Binary    |
+|           version: 0.2.3            |
+|          data: 2018/02/21           |
+\-------------------------------------/
+
+===============================================================================
+                                  Requirement
+===============================================================================
+
+First, Run `zadig-2.4.exe` in `tool/`, `Options` -> `List all devices`, select
+your JTAG simulator and convert the vendor drivers to WinUSB drivers.
+
+===============================================================================
+                                  Quickstart
+===============================================================================
+
+We have provided a template configuration for J-Link in `tcl/kendryte.cfg`,
+if you are using other JTAG simulators, please modify it yourself.
+
+We added a command line argument '-m', it can set the debug mode, now you have
+two options, `-m0` for debugging core 0 while `-m1` for debugging core 1, and 
+the `-m0` is the default option.
+
+You can start the openocd simply by using the following command:
+  
+  ./bin/openocd -f ./tcl/kendryte.cfg -m0
+
+After OpenOCD startup, connect GDB with
+
+  (gdb) target remote :3333
+
+then start your debugging! :)
+
+More information: https://github.com/kendryte/openocd-kendryte/wiki
+
+===============================================================================
+                                  Bug report
+===============================================================================
+
+If you have some problems, you can open a issue at
+
+  https://github.com/kendryte/openocd-kendryte/issues
+   
+Thank you for your use.

BIN
bin/kflash.exe


BIN
bin/libconfuse-2.dll


BIN
bin/libftdi1.dll


BIN
bin/libftdipp1.dll


BIN
bin/libgcc_s_dw2-1.dll


BIN
bin/libhidapi-0.dll


BIN
bin/libiconv-2.dll


BIN
bin/libintl-8.dll


BIN
bin/libstdc++-6.dll


BIN
bin/libusb-1.0.dll


BIN
bin/libwinpthread-1.dll


BIN
bin/openocd.exe


+ 7 - 0
tcl/.vscode/settings.json

@@ -0,0 +1,7 @@
+{
+    "RTT_Studio.Build.Parallel_Jobs": "8",
+    "RTT_Studio.Env_Location": "D:/RT-ThreadStudio/platform/env_released/env",
+    "RTT_Studio.Debuger.J-Link.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link/6.80d2",
+    "RTT_Studio.Debuger.ST-Link.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/STMicroelectronics/ST-LINK_Debugger/1.6.0",
+    "RTT_Studio.Debuger.QEMU.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/RealThread/QEMU/4.2.0.4"
+}

+ 21 - 0
tcl/kendryte.cfg

@@ -0,0 +1,21 @@
+# debug adapter
+interface jlink
+
+transport select jtag
+adapter_khz 3000
+
+# server port
+gdb_port 3333
+telnet_port 4444
+
+# add cpu target
+set _CHIPNAME riscv
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME
+
+# command
+init
+halt

+ 21 - 0
tcl/openocd.cfg

@@ -0,0 +1,21 @@
+# debug adapter
+interface jlink
+
+transport select jtag
+adapter_khz 3000
+
+# server port
+gdb_port 3333
+telnet_port 4444
+
+# add cpu target
+set _CHIPNAME riscv
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME
+
+# command
+init
+halt

+ 22 - 0
tcl/openocd_jlink.cfg

@@ -0,0 +1,22 @@
+# debug adapter
+interface jlink
+jlink serial 0
+
+transport select jtag
+adapter_khz 15000
+
+# server port
+gdb_port 3333
+telnet_port 4444
+
+# add cpu target
+set _CHIPNAME riscv
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME
+
+# command
+init
+halt

BIN
tool/zadig-2.4.exe