7
31
Fork
You've already forked blackmagic
23

WCH-LinkE doesn't find target #2158

Open
opened 2025年10月31日 15:00:20 +01:00 by Schildkroet · 1 comment
Schildkroet commented 2025年10月31日 15:00:20 +01:00 (Migrated from github.com)
Copy link

Hello,

i have a WCH-LinkE and CH32V203. When using wlink, everythin works as expected and the probe+mcu are detected:

13:53:58 [INFO] Connected to WCH-Link v2.11(v31) (WCH-LinkE-CH32V305)
13:53:58 [INFO] Attached chip: CH32V20X [CH32V203C8T6] (ChipID: 0x20310510)
13:53:58 [INFO] Chip ESIG: FlashSize(64KB) UID(3e-92-5d-bc-cd-ab-68-fa)
13:53:58 [INFO] Flash protected: false
13:53:58 [INFO] RISC-V ISA(misa): Some("RV32ACIMUX")
13:53:58 [INFO] RISC-V arch(marchid): Some("WCH-V4B")

But when using blackmagic app, only the probe is found. No target.

Black Magic Debug App v2.0.0-239-g94281769-dirty
 for Black Magic Probe, ST-Link v2 and v3, CMSIS-DAP, J-Link, FTDI (MPSSE) and WCH-Link
Using 1a86:8010 7B578F060034 wch.cn
 WCH-Link ---
Firmware version: v2.11
Hardware type: WCH-LinkE (CH32V305)
Running in Test Mode
Target voltage: Unknown
Setting max debug interface frequency not available or not yet implemented
Reading max debug interface frequency not available or not yet implemented
No target found

I also compiled firmware with ch32v support, to test on BMP, but i got the same result:

Black Magic Debug App v2.0.0-239-g94281769-dirty
 for Black Magic Probe, ST-Link v2 and v3, CMSIS-DAP, J-Link, FTDI (MPSSE) and WCH-Link
Using 1d50:6018 DDD7C1DC Black Magic Debug
 Black Magic Probe (ST-Link/v2) v2.0.0-239-g94281769-dirty
Running in Test Mode
Target voltage: 3.30V
Speed set to 6.000MHz for SWD
Switching from JTAG to dormant
Switching from dormant to SWD
Deprecated JTAG to SWD sequence
No usable DP found
No target found

Is there no real support for WCH? Or did i miss something?

Hello, i have a WCH-LinkE and CH32V203. When using wlink, everythin works as expected and the probe+mcu are detected: ``` 13:53:58 [INFO] Connected to WCH-Link v2.11(v31) (WCH-LinkE-CH32V305) 13:53:58 [INFO] Attached chip: CH32V20X [CH32V203C8T6] (ChipID: 0x20310510) 13:53:58 [INFO] Chip ESIG: FlashSize(64KB) UID(3e-92-5d-bc-cd-ab-68-fa) 13:53:58 [INFO] Flash protected: false 13:53:58 [INFO] RISC-V ISA(misa): Some("RV32ACIMUX") 13:53:58 [INFO] RISC-V arch(marchid): Some("WCH-V4B") ``` But when using blackmagic app, only the probe is found. No target. ``` Black Magic Debug App v2.0.0-239-g94281769-dirty for Black Magic Probe, ST-Link v2 and v3, CMSIS-DAP, J-Link, FTDI (MPSSE) and WCH-Link Using 1a86:8010 7B578F060034 wch.cn WCH-Link --- Firmware version: v2.11 Hardware type: WCH-LinkE (CH32V305) Running in Test Mode Target voltage: Unknown Setting max debug interface frequency not available or not yet implemented Reading max debug interface frequency not available or not yet implemented No target found ``` I also compiled firmware with ch32v support, to test on BMP, but i got the same result: ``` Black Magic Debug App v2.0.0-239-g94281769-dirty for Black Magic Probe, ST-Link v2 and v3, CMSIS-DAP, J-Link, FTDI (MPSSE) and WCH-Link Using 1d50:6018 DDD7C1DC Black Magic Debug Black Magic Probe (ST-Link/v2) v2.0.0-239-g94281769-dirty Running in Test Mode Target voltage: 3.30V Speed set to 6.000MHz for SWD Switching from JTAG to dormant Switching from dormant to SWD Deprecated JTAG to SWD sequence No usable DP found No target found ``` Is there no real support for WCH? Or did i miss something?

for the last part, i think you tried with "mon swdp_scan", this is for arm cores.
You should try with "mon rvswdp_scan" or something like that (mon help will give you the exact command)

for the last part, i think you tried with "mon swdp_scan", this is for arm cores. You should try with "mon rvswdp_scan" or something like that (mon help will give you the exact command)
Sign in to join this conversation.
No Branch/Tag specified
main
fix/pre-bmp-v3-cross-file-cleanup
feature/bmda-remote-comms
ALTracer/feature/aarch64-ident
feature/better-meson-optimisation-handling
feature/am335x-support
feature/esp32-c3-support
feature/cortex-ar-software-breakpoints
feature/unit-testing
feature/windows-usb-serial-interface-naming
fix/bmp-external-spi
ALTracer/feature/bluepillplus-platform
ALTracer/feature/at32f43x-unrdp
feature/const-correctness
ALTracer/feature/fault_handlers
ALTracer/feature/hazard3-ice40-support
fix/ci-cleanup
ALTracer/fix/gdb-10-12-thread
ALTracer/feature/blackpill-f4-adc
ALTracer/fix/cortex-desc-allocfail-report
ALTracer/feature/spi-perf
ALTracer/feature/calibrate_swd
ALTracer/feature/blank-check
feature/avr
v2.0
v1.9
v1.10
v1.8
v2.1.0-rc1
v2.0.0
v2.0.0-rc2
v2.0.0-rc1
v1.9.3
v1.10.2
v1.10.1
v1.10.0
v1.10.0-rc1
v1.10.0-rc0
v1.9.2
v1.8.3
v1.9.1
v1.9.0
v1.9.0-rc1
v1.9.0-rc0
v1.8.2
v1.8.1
v1.8.0
v1.7.1
v1.7
v1.6.2-rc1
1.6.2-rc0
v1.6.1
v1.6
v1.6-rc1
v1.6-rc0
production_01
production_00
Labels
Clear labels
BMD App
Black Magic Debug App (aka. PC hosted) (not firmware)
BMP Firmware
Black Magic Probe Firmware (not PC hosted software)
Bug
Confirmed bug
Build system
Build system
Can't reproduce
Maintainers can't reproduce this problem
CI
Continuous Integration System
Contribution wanted
User contributions welcome
Documentation
Project documentation
Draft
Work in progress draft
Duplicate
This issue or pull request already exists
Enhancement
General project improvement
Feedback wanted
Requires additional submitter feedback
Foreign Host Board
Non Native hardware to runing Black Magic firmware on
GDB
Issue/PR related to GDB
Good first issue
Good for newcommers
HwIssue Mitigation
Solving or mitigating a Hardware issue in Software
Information Needed
Maintainers need more information
NativeHardware
Official Black Magic Debug Hardware
New Host Board
New hardware to run Black Magic firmware on
New Target
New debug target
Off Topic
Something that does not involve the project in any way
Potential Bug
A potential, unconfirmed or very special circumstance bug
Regression
Bug caused by a regression
User Interest Needed
More user interest required before consideration
User Testing Needed
Looking for user testing reports
Won't fix
Outside of the project scope or works as intended
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blackmagic-debug/blackmagic#2158
Reference in a new issue
blackmagic-debug/blackmagic
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?