diff options
author | Zale Yu <cyyu@nuvoton.com> | 2020-04-29 16:53:52 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-08-02 10:47:02 +0100 |
commit | b12fca236d191b0f280aaea0b63a5789480b5e05 (patch) | |
tree | 39a6adae8e054950c7a42752dd212372b2c3748b /src/jtag/hla/hla_layout.c | |
parent | 583a65644b5b69f5c197322b09a577b3c90ca781 (diff) | |
download | riscv-openocd-b12fca236d191b0f280aaea0b63a5789480b5e05.zip riscv-openocd-b12fca236d191b0f280aaea0b63a5789480b5e05.tar.gz riscv-openocd-b12fca236d191b0f280aaea0b63a5789480b5e05.tar.bz2 |
jtag/drivers: add support for Nu-Link (Nuvoton ICE) over usb
Add support for Nu-Link1 over usb hidapi and config file.
The original work is fetched from Nuvoton github.
Code cleanup, fix merge conflicts, compile and runtime issues.
Switch the code from libusb to hidapi, being the device HID based.
Add documentation.
Merge fixes for multi-word memory read.
Reset is not fully compatible with openocd framework; currently
the target is reset and then halt at openocd start.
Change-Id: I9738de4e26783ba462ea3e39ec32069fd5bb7d94
Signed-off-by: Zale Yu <cyyu@nuvoton.com>
Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5635
Tested-by: jenkins
Reviewed-by: Marc Schink <dev@zapb.de>
Diffstat (limited to 'src/jtag/hla/hla_layout.c')
-rw-r--r-- | src/jtag/hla/hla_layout.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jtag/hla/hla_layout.c b/src/jtag/hla/hla_layout.c index 686e6f5..cf51a67 100644 --- a/src/jtag/hla/hla_layout.c +++ b/src/jtag/hla/hla_layout.c @@ -73,6 +73,14 @@ static const struct hl_layout hl_layouts[] = { .api = &icdi_usb_layout_api, }, #endif +#if BUILD_HLADAPTER_NULINK + { + .name = "nulink", + .open = hl_layout_open, + .close = hl_layout_close, + .api = &nulink_usb_layout_api, + }, +#endif {.name = NULL, /* END OF TABLE */ }, }; |