WCH WCH-LinkE

WCH-LinkE Online Download Debugger User Manual

Model: WCH-LinkE | Brand: WCH

1. Introducció i finalview

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. Característiques funcionals

  • 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. Descripció del maquinari

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.

Definició del pin

Interfície de pin del mòdulTarget Board InterfaceObservacions
5VMCU-5V power interfaceConnect 5V power supply of the target board
3.3 VMCU-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. Configuració i connexió

4.1 Actualització del microprogramari

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

  • Actualització en línia: 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 Mètodes de connexió

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 acabatview

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.
ModeLED indicadorIDESupport Chip
RISC VEl LED blau sempre està apagat quan està inactiuEstudi MounRiverWCH RISC-V core chips (supports two-line debugging)
ARMEl LED blau està sempre encès quan està inactiuEstudi Keil/MounRiverARM 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.

Notes generals de funcionament

  • 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. Especificacions

Serial Port Default Parameters

  • Bit de dades: 8
  • Bit d'aturada: 1
  • Checksum bit: None
  • Control de flux: cap

Taxes de baudis compatibles

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

Velocitat de transmissióVelocitat de transmissióVelocitat de transmissióVelocitat de transmissióVelocitat de transmissióVelocitat de transmissió
12002400480096001440019200
3840057600115200230400460800921600

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

7. Solució De Problemes

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

  • Problemes de connexió: 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.
  • Configuració del programari: Confirm that your IDE (MounRiver Studio, Keil) is correctly configured to detect and communicate with the WCH-LinkE and your target device.
  • Font d'alimentació: Ensure the target board is adequately powered, and the WCH-LinkE is receiving power via USB.

8. Consells d'usuari

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. Garantia i Suport

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 Weblloc.

WCH Official Weblogotip del lloc
Figure 8: WCH Official Webinformació del lloc.

Documents relacionats - WCH-LinkE

Preview Manual d'usuari de WCH-Link: Guia completa de les eines de depuració de WCH
Aquest manual d'usuari proporciona instruccions i especificacions detallades per a la sèrie d'eines de depuració i descàrrega WCH-Link, incloent-hi WCH-Link, WCH-LinkE i WCH-DAPLink. Cobreix la introducció del mòdul, el canvi de mode, les configuracions del port sèrie, les comparacions de funcions, les connexions de pins, els procediments de descàrrega i depuració mitjançant Keil i MounRiver Studio, els mètodes d'actualització del firmware i la instal·lació del controlador.
Preview QingKe V2 Microprocessor Manual
Technical manual detailing the QingKe V2 series 32-bit RISC-V MCU microprocessor, covering its architecture, features, instruction set, interrupt handling, low-power modes, and debugging capabilities.
Preview Fitxa tècnica del xip CH342 USB a ports sèrie duals
Fitxa tècnica completa del WCH CH342, un xip convertidor USB a UART dual versàtil. Aquest document detalla les seves característiques, configuracions de pins, característiques elèctriques, gestió d'energia i diversos circuits d'aplicació per a la comunicació sèrie TTL, RS232 i RS485.
Preview WCH QingKe V3 Microprocessor Manual: RISC-V Architecture and Features
Detailed technical manual for the WCH QingKe V3 series microprocessors (V3A, V3B, V3C). Explores the RISC-V architecture, instruction set extensions (RV32IMAC, RV32IMCB, XW), features like HPE and VTF, exception handling, memory protection, and debug capabilities.
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 最小系统板的详细用户手册,涵盖硬件资源、原理图、引脚定乀引脚定义义