WCH WCH-LinkE

WCH-LinkE Online Download Debugger User Manual

Model: WCH-LinkE | Brand: WCH

1. Introduction and Overview

The WCH-LinkE module is a versatile online download debugger designed for microcontrollers (MCUs) based on WCH RISC-V architecture and ARM chips utilizing the Serial Wire Debug (SWD) interface. It facilitates online debugging and programming of target chips. The module connects to a host computer via a USB2.0 full-speed interface, offering plug-and-play, driver-free installation. Additionally, it provides a serial port for convenient debugging output.

WCH-LinkE module with features highlighted
Figure 1: WCH-LinkE Online Download Debugger highlighting its features including 2-wire connection, online debugging, and serial port to USB channel.

2. Functional Features

  • Supports online downloading and debugging of WCH RISC-V architecture MCUs and ARM chips with SWD interface.
  • Features a two-wire interface for fast and stable operation.
  • Provides 3.3V/5V dual power output.
  • Equipped with red and blue LED indicators for easy monitoring of working status.
  • Interface definitions are directly marked on the board for user convenience.
  • Supports automatic firmware detection and upgrade.
  • Allows one-button switching between RISC-V and ARM modes via the host computer.
  • Comes with a transparent case for motherboard protection and portability.

3. Hardware Description

The WCH-LinkE module is designed for robust performance and ease of use. Below is a physical representation and the pin definitions for connecting to target boards.

Physical picture of WCH-LinkE module, front and back
Figure 2: Physical view of the WCH-LinkE module, showing both sides of the PCB within its transparent casing.

Pin Definition

Module Pin InterfaceTarget Board InterfaceRemarks
5VMCU-5V power interfaceConnect 5V power supply of the target board
3.3VMCU-3.3V power interfaceConnect the 3.3V power supply of the target board
GNDMCU-GNDConnect GND of the target board
SWCLKMCU-SWCLKConnect SWCLK of the target board
SWDIOMCU-SWDIOConnect SWDIO of the target board
RXMCU-UART-TXConnect the UART - RX of the target board
TXMCU-UART-RXConnect the UART - RX of the target board
ModeS\Press and hold the ModeS key to power up until the status indicator lights up to complete the mode switch
IAP\WCH-LinkE manual update key

Table 1: WCH-LinkE Pin Definitions and their functions.

4. Setup and Connection

4.1 Firmware Update

It is recommended to keep your WCH-LinkE firmware updated for optimal performance and compatibility.

  • Online Update: When using MounRiver Studio or WCH-LinkUtility, a pop-up reminder will appear if a firmware update is available upon clicking 'download'. Click 'Yes' to proceed with the update.
  • Manual Online Update: Press and hold the IAP key on the WCH-LinkE module. While holding, power on the device. Continue holding until the blue LED lights up. Then, click 'download' in MounRiver Studio or WCH-LinkUtility. A pop-up reminder will appear; click 'Yes' to start the update.

4.2 Connection Methods

SWD Connection

For debugging and programming WCH RISC-V and ARM chips, connect the WCH-LinkE to your target evaluation board using the SWD interface as shown below.

SWD connection diagram between WCH-LinkE and Evaluation Board
Figure 3: Diagram illustrating the SWD connection between the WCH-LinkE module and an evaluation board, showing connections for SWCLK, SWDIO, GND, 3V3, and 5V.

USB to TTL Serial Port Connection

To utilize the serial port for debugging output, connect the WCH-LinkE to your target evaluation board's UART pins as depicted.

USB to TTL serial port connection diagram between WCH-LinkE and Evaluation Board
Figure 4: Diagram illustrating the USB to TTL serial port connection between the WCH-LinkE module and an evaluation board, showing connections for RX, TX, GND, 3V3, and 5V.

5. Operating Instructions: Mode Switching

The WCH-LinkE supports different operating modes for RISC-V and ARM architectures. The mode can be switched using software or a physical key (for specific versions).

Mode Overview

WCH-LinkE mode table showing LED indicators, IDEs, and supported chips
Figure 5: WCH-LinkE operating modes, indicating LED behavior, compatible IDEs, and supported chip architectures.
ModeIndicator LEDIDESupport Chip
RISC VBlue LED is always off when idleMounRiver StudioWCH RISC-V core chips (supports two-line debugging)
ARMBlue LED is always on when idleKeil/MounRiver StudioARM core chips (supports SWD protocol)

Table 2: Detailed description of WCH-LinkE operating modes.

5.1 Mode Switching via MounRiver Studio

  • Power up the WCH-LinkE module.
  • Open MounRiver Studio software and navigate to the download configuration.
  • Select the desired target mode (e.g., WCH-LinkRV) from the dropdown menu.
  • Click 'Apply' to set the new mode. You can click 'Query' to check the current mode.
Screenshot of MounRiver Studio showing mode selection
Figure 6: MounRiver Studio interface for selecting and applying the WCH-LinkE operating mode.

5.2 Mode Switching via WCH-LinkUtility Tool

  • Power up the WCH-LinkE module.
  • Open the WCH-LinkUtility tool.
  • Select the desired target mode from the dropdown menu.
  • Click 'Set' to apply the mode. You can click 'Get' to retrieve the current mode.
Screenshot of WCH-LinkUtility showing mode selection
Figure 7: WCH-LinkUtility interface for selecting and setting the WCH-LinkE operating mode.

5.3 Mode Switching via ModeS Key (WCH-LinkE-R0-1v2 only)

  • For WCH-LinkE-R0-1v2 versions, press and hold the ModeS key.
  • While holding the ModeS key, power on the WCH-LinkE.
  • Continue holding until the status indicator LED lights up, which signifies the mode switch is complete.

General Operating Notes

  • During active downloading or debugging, the blue LED indicator on the WCH-LinkE will flash.
  • Once a mode is set, the WCH-LinkE will maintain this mode for subsequent uses until explicitly changed.
  • The high-speed version of WCH-LinkE offers accelerated performance specifically for CH32F20x, CH32V20x, and CH32V30x series chips.

6. Specifications

Serial Port Default Parameters

  • Data bit: 8
  • Stop bit: 1
  • Checksum bit: None
  • Flow control: None

Supported Baud Rates

The WCH-LinkE serial port supports the following baud rates:

Baud RateBaud RateBaud RateBaud RateBaud RateBaud Rate
12002400480096001440019200
3840057600115200230400460800921600

Table 3: List of supported serial port baud rates for WCH-LinkE.

7. Troubleshooting

If you encounter issues while using the WCH-LinkE, consider the following common troubleshooting steps:

  • Connection Issues: Ensure all physical connections (USB, SWD, UART) are secure and correctly wired according to the pin definitions and connection diagrams.
  • Mode Mismatch: Verify that the WCH-LinkE is set to the correct mode (RISC-V or ARM) for your target chip using MounRiver Studio or WCH-LinkUtility.
  • Firmware Outdated: Check for and apply any available firmware updates for the WCH-LinkE module.
  • Software Configuration: Confirm that your IDE (MounRiver Studio, Keil) is correctly configured to detect and communicate with the WCH-LinkE and your target device.
  • Power Supply: Ensure the target board is adequately powered, and the WCH-LinkE is receiving power via USB.

8. User Tips

Based on general usage patterns for similar debugging tools, here are some tips:

  • Always double-check your wiring before powering on to prevent damage to the debugger or target board.
  • Keep the WCH-LinkE firmware updated to ensure compatibility with the latest MCUs and software versions.
  • When switching between RISC-V and ARM projects, remember to verify and adjust the WCH-LinkE's operating mode accordingly.
  • Utilize the transparent case to protect the module from dust and physical damage, especially when transporting it.

9. Warranty and Support

For technical support, software downloads, and further information, please refer to the official WCH resources:

For official product information and updates, visit the WCH Official Website.

WCH Official Website logo
Figure 8: WCH Official Website information.

Related Documents - WCH-LinkE

Preview WCH-Link User Manual: Comprehensive Guide to WCH Debugging Tools
This user manual provides detailed instructions and specifications for the WCH-Link series of debugging and downloading tools, including WCH-Link, WCH-LinkE, and WCH-DAPLink. It covers module introduction, mode switching, serial port configurations, function comparisons, pin connections, download and debug procedures using Keil and MounRiver Studio, firmware update methods, and driver installation.
Preview CH342 USB to Dual Serial Ports Chip Datasheet
Comprehensive datasheet for the WCH CH342, a versatile USB to dual UART converter chip. This document details its features, pin configurations, electrical characteristics, power management, and various application circuits for TTL, RS232, and RS485 serial communication.
Preview WCHISPTool_CMD: Command Line Programming Tool Instruction
Comprehensive instruction manual for WCHISPTool_CMD, a multi-platform command-line tool for WCH MCU firmware download and verification via USB or serial port on Windows, Linux, and macOS.
Preview CH32F103C8T6 最小系统板用户手册与技术指南
CH32F103C8T6 最小系统板的详细用户手册,涵盖硬件资源、原理图、引脚定义及开发示例。
Preview CH343 USB to High-Speed Serial UART Chip Datasheet
Datasheet for the CH343, a USB bus converter chip that converts USB to a high-speed serial UART interface. Details features, pinouts, power consumption, and applications.
Preview WCH Product Selection Manual: Communication Interface ICs and MCUs
Explore the comprehensive product selection manual from WCH (WinChipHead), detailing a wide range of Communication Interface ICs and Microcontrollers (MCUs) including RISC-V and E8051 core-based solutions. Discover products for USB, Bluetooth, and Ethernet applications.