|
From: openocd-gerrit <ope...@us...> - 2026-10-19 13:13:12
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via d2f72d49efed744eaa489ce931393b6e69122e66 (commit)
from 758114a61120c6d615ca37ac2af6a811ea710c9a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d2f72d49efed744eaa489ce931393b6e69122e66
Author: Tomas Vanek <tom...@gm...>
Date: Mon Oct 5 11:15:35 2026 +0200
jtag/drivers/ch347: show chip variant in initial info
The CH347 T and F variants differ in GPIO pins and also
in the firmware version numbering. Make clear which variant
is connected.
While on it fix the printf format of chip version.
CH347F 1.01 was printed as 1. 1
Change-Id: Ie6d26926988aac2c7ae4b161cc3b18744579288b
Signed-off-by: Tomas Vanek <tom...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/10088
Tested-by: jenkins
Reviewed-by: Matthias Jentsch <in...@ea...>
Reviewed-by: Paulius Zaleckas <pau...@gm...>
diff --git a/src/jtag/drivers/ch347.c b/src/jtag/drivers/ch347.c
index f505d1569..da67deb8e 100644
--- a/src/jtag/drivers/ch347.c
+++ b/src/jtag/drivers/ch347.c
@@ -1709,7 +1709,8 @@ static int ch347_open_device(void)
strcpy(serial_number, "(unknown)");
}
- LOG_INFO("CH347 %s from vendor %s with serial number %s found. (Chip version=%X.%2X, Firmware=0x%02X)",
+ LOG_INFO("CH347%c %s from vendor %s with serial number %s found. (Chip version=%X.%02X, Firmware=0x%02X)",
+ ch347.chip_variant == CH347T ? 'T' : ch347.chip_variant == CH347F ? 'F' : '?',
product,
manufacturer,
serial_number,
-----------------------------------------------------------------------
Summary of changes:
src/jtag/drivers/ch347.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
Main OpenOCD repository
|