Why this openocd doesn't support ch347 adapter?

未關閉
#53 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
52/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
c
領域
embedded-iot

研究方向

Start by comparing the adapter lists in the issue with the STMicroelectronics build and xPack OpenOCD, then check the repository's build configuration and adapter sources for CH347 support. The issue does not name files or tests, so first establish whether CH347 support exists in this repository and how adapters are included in its build. Done means explaining why this build omits CH347 or identifying the change needed to make it available.

由索引模型根據 Issue 內容生成。

描述

The powershell output for this openocd is as below, there is no ch347:

 ./openocd -c "adapter list"
Open On-Chip Debugger 0.12.0+dev-00635-gddb0d32b4 (2025-11-07-10:06) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
The following debug adapters are available:
1: ftdi
2: usb_blaster
3: esp_usb_jtag
4: ft232r
5: usbprog
6: vsllink
7: rlink
8: ulink
9: angie
10: arm-jtag-ew
11: hla
12: osbdm
13: opendous
14: cmsis-dap
15: kitprog
16: xds110
17: st-link
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: Debug Adapter has to be specified, see "adapter driver" command

but xpack-openocd-0.12.0-7 has ch347:

./openocd -c "adapter list"
xPack Open On-Chip Debugger 0.12.0+dev-02228-ge5888bda3-dirty (2025-10-04-22:44)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
amt_jtagaccel  { jtag }
angie          { jtag }
arm-jtag-ew    { jtag }
ch347          { jtag swd }
cmsis-dap      { jtag swd }
dummy          { jtag }
esp_usb_jtag   { jtag }
ft232r         { jtag }
ftdi           { jtag swd }
gw16012        { jtag }
hla            { jtag swd }
jlink          { jtag swd }
jtag_dpi       { jtag }
jtag_vpi       { jtag }
kitprog        { swd }
opendous       { jtag }
openjtag       { jtag }
osbdm          { jtag }
parport        { jtag }
presto         { jtag }
remote_bitbang { jtag swd }
rlink          { jtag }
st-link        { jtag swd swim }
ulink          { jtag }
usb_blaster    { jtag }
usbprog        { jtag }
vdebug         { jtag swd }
vsllink        { jtag swd }
xds110         { jtag swd }
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: Debug Adapter has to be specified, see "adapter driver" command
主要語言
C
星號
212
分支
61
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

STMicroelectronics/OpenOCD 的其他 Issue

查看 STMicroelectronics/OpenOCD 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。