add openocd

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-03-01 15:17:39 +08:00
parent 6fe9278908
commit 97afab88d6
2 changed files with 14 additions and 0 deletions

BIN
tools/openocd/openocd.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,14 @@
adapter_khz 1000
reset_config srst_only
adapter_nsrst_assert_width 100
interface cmsis-dap
transport select jtag
set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1e200a6f
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME