/---------------------------------\
|  Kendryte OpenOCD Win32 Binary  |
|         version: 0.1.3          |
|        data: 2018/09/12         |
\---------------------------------/

==============
  Quickstart
==============

Click `check_version.cmd` to determine if openocd can run, you will see
```
Kendryte Open On-Chip Debugger For RISC-V v0.1.3 (20180912)
Licensed under GNU GPL v2
```
if it can work.

=========
  Usage
=========

First, Run `zadig-2.4.exe` in `tool/`, `Options` -> `List all devices`, select your 
JTAG simulator and convert the vendor drivers to WinUSB drivers.

Then modify `openocd.cfg` in `tcl/` for your situation.

We added a command line argument '-m', you can run `./bin/openocd -h` for help.
It can set the debug mode, we offer three modes:

1. no debug mode (-mn)
  This means that both cores will run and halt tothger, and this is the default option.

2. debug core 0 only (-m0)
  This means that the core 1 will remain halt, all operations(etc, halt, resume, read register) are operations on core 0.

3. debug core 1 only (-m1)
  This means that the core 0 will remain halt, all operations(etc, halt, resume, read register) are operations on core 1.

For example, if you want to debug core 0, you can run with the following command:
  ./bin/openocd -f ./tcl/openocd.cfg -m0 