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>
This commit is contained in:
@@ -143,6 +143,9 @@ endif
|
||||
if HLADAPTER_ICDI
|
||||
DRIVERFILES += %D%/ti_icdi_usb.c
|
||||
endif
|
||||
if HLADAPTER_NULINK
|
||||
DRIVERFILES += %D%/nulink_usb.c
|
||||
endif
|
||||
if RSHIM
|
||||
DRIVERFILES += %D%/rshim.c
|
||||
endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -72,6 +72,14 @@ static const struct hl_layout hl_layouts[] = {
|
||||
.close = hl_layout_close,
|
||||
.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 */ },
|
||||
};
|
||||
|
||||
@@ -31,6 +31,7 @@ struct hl_interface_param_s;
|
||||
/** */
|
||||
extern struct hl_layout_api_s stlink_usb_layout_api;
|
||||
extern struct hl_layout_api_s icdi_usb_layout_api;
|
||||
extern struct hl_layout_api_s nulink_usb_layout_api;
|
||||
|
||||
/** */
|
||||
struct hl_layout_api_s {
|
||||
|
||||
Reference in New Issue
Block a user