Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e57b717
Support for CH347 JTAG itnerfaces added
Sep 30, 2023
b3930db
Configuration of CH347 vid/pid,
EasyDevKits Sep 30, 2023
0916a29
Preparation for driving an activity LED
EasyDevKits Sep 30, 2023
b8f19c0
Unused actions removed
EasyDevKits Sep 30, 2023
a83ec25
Compilation error fixed for windows
EasyDevKits Sep 30, 2023
3fe37fc
Variables moved to fix the windows build
EasyDevKits Sep 30, 2023
59c6a11
GPIO output added for the activity LED
EasyDevKits Oct 1, 2023
2fe4288
GPIO3, 4, 5 and 6 can be used for the activity LED
EasyDevKits Oct 1, 2023
fe8ceaf
Wait a bit longer in esp_xtensa_reset_reason_read
EasyDevKits Oct 3, 2023
39d3b3f
Thanks to coflery - Frand Ren
EasyDevKits Oct 3, 2023
d7113c2
CH347: Chip version check added
EasyDevKits Oct 4, 2023
44d53e8
Various fixes for getting JTAG working with CH347
EasyDevKits Oct 8, 2023
c5dd1ab
Sync with latest espressif/openocd-esp32 (#1)
EasyDevKits Oct 8, 2023
d012d48
Dependency to CH347DLL.DLL removed. Changed some unsigned long to uin…
EasyDevKits Oct 9, 2023
41d7da7
coding style adjusted mostly to existing code
EasyDevKits Oct 9, 2023
f233045
Merge branch 'master' of https://github.com/EasyDevKits/openocd-easyd…
EasyDevKits Oct 9, 2023
aad889c
Merge branch 'espressif:master' into master
EasyDevKits Oct 9, 2023
9774f60
Merge branch 'espressif:master' into master
EasyDevKits Oct 10, 2023
9dda762
Added manufacturer, product and serial number to log output
EasyDevKits Oct 11, 2023
b4963a4
Merge branch 'master' of https://github.com/EasyDevKits/openocd-easyd…
EasyDevKits Oct 11, 2023
cfe9291
Update README.md
EasyDevKits Oct 11, 2023
8c85498
CH347: Error message for libusb_claim_interface enhanced
EasyDevKits Oct 11, 2023
e0a6502
Merge branch 'master' of https://github.com/EasyDevKits/openocd-easyd…
EasyDevKits Oct 11, 2023
6d371ff
adjusted for esp32 flavour
EasyDevKits Oct 12, 2023
2d4cf8c
Delete .github/workflows/OpenOCD EasyDevKits CI.yml
EasyDevKits Oct 12, 2023
21952c1
.gitignore reverted for esp32 flavour
EasyDevKits Oct 12, 2023
d2fb271
Merge branch 'esp32' of https://github.com/EasyDevKits/openocd-easyde…
EasyDevKits Oct 12, 2023
9ca3349
Delete README.md
EasyDevKits Oct 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .github/workflows/issue_comment.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/new_issues.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/new_prs.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions cmake/BuildOptions.cmake
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ option(BUILD_SANITIZERS "Build support with the sanitizer flags" OFF)

# USB1 Adapters #TODO check default values
option(BUILD_FTDI "MPSSE mode of FTDI based devices" ON)
option(BUILD_CH347 "Mode 3 of the CH347 devices" ON)
option(BUILD_HLADAPTER_STLINK "ST-Link Programmer" ON)
option(BUILD_HLADAPTER_ICDI "TI ICDI JTAG Programmer" ON)
option(BUILD_ULINK "Keil ULINK JTAG Programmer" ON)
Expand Down
13 changes: 13 additions & 0 deletions configure.ac
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ m4_define([ADAPTER_OPT], [m4_translit(ADAPTER_ARG($1), [_], [-])])

m4_define([USB1_ADAPTERS],
[[[ftdi], [MPSSE mode of FTDI based devices], [FTDI]],
[[ch347], [Mode 3 of the CH347 devices], [CH347]],
[[stlink], [ST-Link Programmer], [HLADAPTER_STLINK]],
[[ti_icdi], [TI ICDI JTAG Programmer], [HLADAPTER_ICDI]],
[[ulink], [Keil ULINK JTAG Programmer], [ULINK]],
Expand Down Expand Up @@ -393,6 +394,10 @@ AC_ARG_ENABLE([remote-bitbang],
AS_HELP_STRING([--enable-remote-bitbang], [Enable building support for the Remote Bitbang jtag driver]),
[build_remote_bitbang=$enableval], [build_remote_bitbang=no])

AC_ARG_ENABLE([ch347],
AS_HELP_STRING([--enable-ch347], [Enable building support for CH347]),
[build_ch347=$enableval], [build_ch347=no])

AS_CASE(["${host_cpu}"],
[i?86|x86*], [],
[
Expand Down Expand Up @@ -643,6 +648,12 @@ AS_IF([test "x$build_gcov" = "xyes"], [
AC_DEFINE([BUILD_GCOV], [0], [0 if you don't want OpenOCD source code coverage support.])
])

AS_IF([test "x$build_ch347" = "xyes"], [
AC_DEFINE([BUILD_CH347], [1], [1 if you want CH347.])
], [
AC_DEFINE([BUILD_CH347], [0], [0 if you don't want CH347.])
])

PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0], [
use_libusb1=yes
AC_DEFINE([HAVE_LIBUSB1], [1], [Define if you have libusb-1.x])
Expand Down Expand Up @@ -804,6 +815,8 @@ AM_CONDITIONAL([BUILD_ESP_COMPRESSION], [test "x$build_esp_compression" = "xyes"

AM_CONDITIONAL([BUILD_GCOV], [test "x$build_gcov" = "xyes"])

AM_CONDITIONAL([BUILD_CH347], [test "x$build_ch347" = "xyes"])

# Look for environ alternatives. Possibility #1: is environ in unistd.h or stdlib.h?
AC_MSG_CHECKING([for environ in unistd.h and stdlib.h])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
Expand Down
4 changes: 4 additions & 0 deletions src/jtag/drivers/CMakeLists.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ if(IS_ESPIDF)
target_link_libraries(ocdjtagdrivers PRIVATE idf::driver)
endif()

if(BUILD_CH347)
target_sources(ocdjtagdrivers PRIVATE ch347.c)
endif()

target_sources(ocdjtagdrivers PRIVATE
bitbang.h
bitq.h
Expand Down
3 changes: 3 additions & 0 deletions src/jtag/drivers/Makefile.am
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ endif
if BUILD_ESP_REMOTE
DRIVERFILES += %D%/jtag_esp_remote.c
endif
if CH347
DRIVERFILES += %D%/ch347.c
endif

DRIVERHEADERS = \
%D%/bitbang.h \
Expand Down
2 changes: 1 addition & 1 deletion src/jtag/drivers/angie.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int angie_usb_open(struct angie *device)
const uint16_t vids[] = {ANGIE_VID, ANGIE_VID, 0};
const uint16_t pids[] = {ANGIE_PID, ANGIE_PID_2, 0};

int ret = jtag_libusb_open(vids, pids, &usb_device_handle, NULL);
int ret = jtag_libusb_open(vids, pids, NULL, &usb_device_handle, NULL);

if (ret != ERROR_OK)
return ret;
Expand Down
2 changes: 1 addition & 1 deletion src/jtag/drivers/arm-jtag-ew.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ static struct armjtagew *armjtagew_usb_open(void)
const uint16_t pids[] = { USB_PID, 0 };
struct libusb_device_handle *dev;

if (jtag_libusb_open(vids, pids, &dev, NULL) != ERROR_OK)
if (jtag_libusb_open(vids, pids, NULL, &dev, NULL) != ERROR_OK)
return NULL;

struct armjtagew *result = malloc(sizeof(struct armjtagew));
Expand Down
Loading