{"schema_version":1,"id":"bkuschak-cmsis-dap-tcp-esp32","name":{"en":"CMSIS-DAP TCP","zh":"通过 Wi-Fi 把 ESP32 变成 CMSIS-DAP JTAG/SWD 调试探针。"},"summary":{"en":"CMSIS-DAP programmer using TCP/IP rather than USB connection to the host. Runs on ESP32 and connects over WiFi to OpenOCD using the cmsis-dap-tcp backend. Supports JTAG and SWD.","zh":"通过 Wi-Fi 把 ESP32 变成 CMSIS-DAP JTAG/SWD 调试探针。"},"purpose":"network debug probe","tier":"community","author":"bkuschak","repository":"https://github.com/bkuschak/cmsis_dap_tcp_esp32","license":"Apache-2.0","shape":"headless","scenes":["tools"],"boards":[{"name":"ESP32"}],"native_board":{"en":"Seeed XIAO ESP32C6","page":"https://esp32gallery.com/boards/seeed-xiao/"},"motion":false,"hardware":{"en":"ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.","zh":"ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。"},"notes":{"en":"OpenOCD normally talks CMSIS-DAP to a programmer on the end of a USB cable; here the far end is an ESP32 on Wi-Fi. The board bit-bangs SWD or JTAG onto an ARM target, and OpenOCD's cmsis_dap_tcp backend connects over TCP, so flashing and debugging happen across the network. Tested with ESP32-S3, C3 and C6 boards against STM32 F4xx, F103 and G0xx parts, and a Lattice ECP5 FPGA. SWD needs two GPIO, JTAG at least four; up to three interfaces and three UART bridges can run at once, and an optional pin drives an activity LED. Building needs ESP-IDF, with per-board CMake presets and pin choices in menuconfig. Measured on an ESP32-S3 at 240 MHz: about 200 KB/sec writing SRAM, a 512 KB STM32F401RE image in roughly 13.4 seconds. SWO is unsupported and the clock tops out near 6 MHz.","zh":"把 CMSIS-DAP 调试器从 USB 线上挪到网线另一端：ESP32 用 GPIO 模拟 SWD 或 JTAG 时序去连 ARM 目标板，OpenOCD 通过 cmsis_dap_tcp 后端用 TCP 连上来，于是烧写和调试都走网络，目标板可以放在别处，调试器接个 USB 充电头就能单独跑。在 ESP32-S3、C3、C6 上测过，目标是 STM32 F4xx、F103、G0xx，也带过 Lattice ECP5 FPGA。SWD 占 2 个 GPIO，JTAG 至少 4 个；最多可同时开 3 路调试接口和 3 路串口桥，还能用一个引脚驱动活动指示灯。编译要 ESP-IDF，按板子选 CMake preset，引脚在 menuconfig 里改。S3 跑 240 MHz 时写 SRAM 约 200 KB/s，512 KB 的 STM32F401RE 镜像连擦带校验约 13.4 秒。SWO 不支持，时钟最高约 6 MHz，JTAG 比 SWD 慢得多。"},"readme_excerpts":[{"label":"Feature","quote":"Up to 3 independent JTAG/SWD interfaces can be supported simultaneously."},{"label":"Build","quote":"This code requires the ESP-IDF build tools."},{"label":"Performance","quote":"SWD reading / writing SRAM: up to 200 KB/sec"},{"label":"Limit","quote":"SWO is currently unsupported."},{"label":"Limit","quote":"Maximum clock rate is ~6 MHz and duty cycle can vary from ~33% to ~66%."}],"images":{"type":"gallery","primary":"https://esp32gallery.com/previews/bkuschak-cmsis-dap-tcp-esp32/poster.jpg","poster":"https://esp32gallery.com/previews/bkuschak-cmsis-dap-tcp-esp32/poster.jpg","sources":["https://esp32gallery.com/previews/bkuschak-cmsis-dap-tcp-esp32/frames/view-001.jpg","https://esp32gallery.com/previews/bkuschak-cmsis-dap-tcp-esp32/frames/view-002.jpg","https://esp32gallery.com/previews/bkuschak-cmsis-dap-tcp-esp32/frames/view-003.jpg","https://esp32gallery.com/previews/bkuschak-cmsis-dap-tcp-esp32/frames/view-004.jpg"]},"media_credit":{"status":"upstream-project-media","creator":"bkuschak","source":"https://github.com/bkuschak/cmsis_dap_tcp_esp32/tree/cc547237006452be22fcf03e25f84cffb0de6a65","note":{"en":"Screenshots from the upstream README. Code and firmware were not executed. License notices are included.","zh":"来自上游 README 的真实截图；未运行代码或固件，预览包保留许可证声明。"},"reviewed":"2026-10-20"},"preview":{"browser_playable":false,"kind":"media_gallery","label":{"en":"Project screenshots","zh":"项目截图"},"width":960,"height":720,"shape":"square","source_commit":"cc547237006452be22fcf03e25f84cffb0de6a65"},"stars":47,"pushed_at":"2026-11-18T21:36:05Z","added_at":"2026-10-20T14:44:01+08:00","urls":{"html":"https://esp32gallery.com/projects/bkuschak-cmsis-dap-tcp-esp32/","html_zh":"https://esp32gallery.com/zh/projects/bkuschak-cmsis-dap-tcp-esp32/","json":"https://esp32gallery.com/data/catalog/projects/bkuschak-cmsis-dap-tcp-esp32.json","markdown":"https://esp32gallery.com/data/catalog/projects/bkuschak-cmsis-dap-tcp-esp32.md"}}
