ARM | RISC-V Microcontrollers Programmer CMSIS Debugger WCH DAPLink Module

Model: WCH DAP CMSIS Link Programmer
SKU: A3-14-ST-WCH-DAP-CMSIS
In Stock
EGP 325.000
In Stock

Guaranteed By UGE Electronics

Fully compatible with CMSIS-DAP emulator in arm mode

Supports SWD interface and TTL serial por

Supports Firmware upgrade

Description

ARM | RISC-V Microcontrollers Programmer CMSIS Debugger WCH DAPLink Module

Module introduction

This ARM | RISC-V Microcontrollers Programmer CMSIS Debugger WCH DAPLink module can be used for debugging and downloading of WCH RISC-V MCU, and also for debugging and downloading of ARM MCU with SWD interface. It also comes with a serial port for easy debugging output.

Features

  • Support WCH RISC-V and ARM kernel, support two working modes switching, simple and convenient to use! Fully compatible with CMSIS-DAP emulator in arm mode.
  • Support dual power output, support 5V and 3.3V dual power output.
  • Type-C USB interface, standard Type-C interface, no need to distinguish the front and back sides.
  • It supports SWD interface and TTL serial port, TTL serial port function, supports a wide range of baud rate, and is convenient to view debugging information through the serial port.
  • Support firmware upgrade, just short circuit JP5 solder joints, you can directly upgrade through USB.
  • the built in LED indicators (RED for running and Blue for Mode) if the Red on so this indicates the module working and enumerated successfully and if the Blue LED on to indicate the Mode for ARM Debugging and off is for RISC-V debugging and use the onboard switch to switch between this modes at power up instant .

Pin Definition

Module pin interface Target board interface Remarks
5V MCU 5V power interface Connect the 5V power supply of the target board
3V3 MCU 3.3V power interface Connect the 3.3V power supply of the target board
GND MCU GND Connect GND of target board
SWCLK MCU SWCLK Connect SWCLK of target board
SWDIO MCU SWDIO Connect SWDIO of target board
RX MCU UART-TX UART x TX connected to the target board
TX MCU UART-RX

UART x RX connected to the target board

 

Using the WCH DAP Link  with the STM32F103C8 microcontroller and Keil IDE is straightforward. Below is a step-by-step guide to help you set it up and start debugging/programming your STM32F103C8:


Step 1: Hardware Connections

  1. Connect the WCH DAP Link V2 to your STM32F103C8:
    • Connect the SWDIO pin of the WCH DAP Link V2 to the SWDIO pin (PA13) of the STM32F103C8.
    • Connect the SWCLK pin of the WCH DAP Link V2 to the SWCLK pin (PA14) of the STM32F103C8.
    • Connect the GND pin of the WCH DAP Link V2 to the GND pin of the STM32F103C8.
    • Connect the 3.3V pin of the WCH DAP Link V2 to the 3.3V pin of the STM32F103C8 (if needed for power).
  2. Connect the WCH DAP Link to your PC:
    • Use the USB-C cable to connect the WCH DAP Link to your computer.

Step 2: Install Required Software

  1. Install Keil IDE:
    • If you haven’t already, download and install the latest version of Keil µVision IDE from the Keil website.
  2. Install STM32 Device Packs:
    • Open Keil IDE and go to Pack Installer (click the puzzle piece icon or navigate via Project > Manage > Pack Installer).
    • Search for STM32F1 Series Device Family Pack and install it.
  3. Install WCH DAP Link Drivers (if required):
    • Most operating systems (Windows, Linux, macOS) will recognize the WCH DAP Link V2 automatically. If not, download the drivers from the WCH website.

Step 3: Configure Keil IDE for WCH DAP Link

  1. Create or Open a Project:
    • Open Keil IDE and create a new project or open an existing one for the STM32F103C8.
  2. Set Up Debugger:
    • Go to Project > Options for Target (or press Alt + F7).
    • Navigate to the Debug tab.
    • Select CMSIS-DAP Debugger from the dropdown menu under “Use.”
  3. Configure Debug Settings:
    • Click on Settings next to the debugger dropdown.
    • In the Debug tab, ensure the following:
      • Port: SW
      • Max Clock: 10 MHz
    • In the Flash Download tab:
      • Ensure the Reset and Run option is checked.
      • Add the STM32F1xx Flash algorithm (it should be available if you installed the STM32F1 device pack).
  4. Verify Connection:
    • Click on Verify in the debug settings to ensure the WCH DAP Link is properly connected to the STM32F103C8.

Step 4: Build and Flash the Firmware

  1. Build the Project:
    • Click on Build (or press F7) to compile your project.
  2. Flash the Firmware:
    • Click on Download (or press F8) to flash the firmware to the STM32F103C8.

Step 5: Debugging

  1. Start Debugging:
    • Click on Debug (or press Ctrl + F5) to start a debugging session.
    • Use Keil’s debugging tools (breakpoints, watch windows, etc.) to debug your code.
  2. Run the Program:
    • Click on Run (or press F5) to execute the program on the STM32F103C8.

Brand

UGE Electronics

UGE Electronics
UGE Electronics

Reviews

There are no reviews yet.

Be the first to review “ARM | RISC-V Microcontrollers Programmer CMSIS Debugger WCH DAPLink Module”
WCH DapLink
ARM | RISC-V Microcontrollers Programmer CMSIS Debugger WCH DAPLink Module EGP 325.000
In Stock