Jelajahi Sumber

Merge pull request #1 from ErikChanGit/main

Init sdk-debugger-openocd-kendryte
shiwei 4 tahun lalu
induk
melakukan
b59f6164f9
18 mengubah file dengan 116 tambahan dan 0 penghapusan
  1. 45 0
      Readme.txt
  2. TEMPAT SAMPAH
      bin/kflash.exe
  3. TEMPAT SAMPAH
      bin/libconfuse-2.dll
  4. TEMPAT SAMPAH
      bin/libftdi1.dll
  5. TEMPAT SAMPAH
      bin/libftdipp1.dll
  6. TEMPAT SAMPAH
      bin/libgcc_s_dw2-1.dll
  7. TEMPAT SAMPAH
      bin/libhidapi-0.dll
  8. TEMPAT SAMPAH
      bin/libiconv-2.dll
  9. TEMPAT SAMPAH
      bin/libintl-8.dll
  10. TEMPAT SAMPAH
      bin/libstdc++-6.dll
  11. TEMPAT SAMPAH
      bin/libusb-1.0.dll
  12. TEMPAT SAMPAH
      bin/libwinpthread-1.dll
  13. TEMPAT SAMPAH
      bin/openocd.exe
  14. 7 0
      tcl/.vscode/settings.json
  15. 21 0
      tcl/kendryte.cfg
  16. 21 0
      tcl/openocd.cfg
  17. 22 0
      tcl/openocd_jlink.cfg
  18. TEMPAT SAMPAH
      tool/zadig-2.4.exe

+ 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.

TEMPAT SAMPAH
bin/kflash.exe


TEMPAT SAMPAH
bin/libconfuse-2.dll


TEMPAT SAMPAH
bin/libftdi1.dll


TEMPAT SAMPAH
bin/libftdipp1.dll


TEMPAT SAMPAH
bin/libgcc_s_dw2-1.dll


TEMPAT SAMPAH
bin/libhidapi-0.dll


TEMPAT SAMPAH
bin/libiconv-2.dll


TEMPAT SAMPAH
bin/libintl-8.dll


TEMPAT SAMPAH
bin/libstdc++-6.dll


TEMPAT SAMPAH
bin/libusb-1.0.dll


TEMPAT SAMPAH
bin/libwinpthread-1.dll


TEMPAT SAMPAH
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

TEMPAT SAMPAH
tool/zadig-2.4.exe