EasyManua.ls Logo

GigaDevice Semiconductor GD-Link Adapter - User Manual

Default Icon
22 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...
GigaDevice Semiconductor Inc.
GD-Link Adapter
User Guide
Revision 2.4
(May. 2022)

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the GigaDevice Semiconductor GD-Link Adapter and is the answer not in the manual?

Summary

Introduction

Hardware Connection and Interaction

Buttons and LEDs Overview

Details the function and status indications of buttons and LEDs on the GD-Link adapter.

Connecting to Target Board

Explains the electrical connection between the GD-Link adapter and the target board using JTAG/SWD interfaces.

Offline Programming Guide

Downloading the GD-Link Programmer Tool

Guides users on downloading the necessary PC tool for GD-Link offline programming.

Updating User Code via Offline Programming

Details the steps for updating user code onto a target board using the GD-Link adapter for offline programming.

GD-Link Firmware Update Procedures

Details the procedures for updating the GD-Link adapter's firmware, covering different prompt types.

Auto-load Signal Definitions

Explains the auto-load signals provided by GD-Link for burning machines and their definitions.

IDE Programming Setup

Keil IDE Setup for Programming

Guides on configuring the Keil IDE for programming using the GD-Link adapter with JTAG/SWD interface.

IAR IDE Setup for Programming

Provides instructions for setting up the IAR IDE for programming with the GD-Link adapter.

Revision History

Overview

The GigaDevice GD-Link Adapter is a versatile, three-in-one multi-function development tool designed for the GD32 series of MCUs. It serves as a CMSIS-DAP debugger with JTAG/SWD interface, enabling online programming and debugging within compatible Integrated Development Environments (IDEs) such as Keil and IAR. A key feature of the adapter is its offline programming capability, which allows users to program MCUs without a continuous connection to a PC.

Function Description

The GD-Link Adapter integrates three primary functions:

  • Online Programming and Debugging: It provides a CMSIS-DAP debugger port with both JTAG and SWD interfaces, allowing developers to program and debug code directly from IDEs like Keil (Version 5.26 and above) and IAR (Version 8.32 and above). This facilitates real-time code execution analysis, breakpoint setting, and memory inspection.
  • Offline Programming: This function enables the adapter to download user code to a target MCU without requiring a PC connection during the actual programming process. This is particularly useful for production environments or field updates.
  • Firmware Upgrade: The adapter's firmware can be updated using the GigaDevice GD-Link Programmer PC tool, ensuring compatibility with new MCUs and features.

Important Technical Specifications

While specific electrical specifications like voltage and current ratings are not detailed, the manual provides information on the connectivity and operational aspects:

  • Interfaces: The adapter supports both SWD (Serial Wire Debug) and JTAG (Joint Test Action Group) interfaces for connecting to target MCUs.
  • Connectivity: It connects to a PC via a USB connector. The connection to the target board is typically made using DuPont lines or other connecting wires, with a recommended maximum length of 10cm for optimal signal integrity.
  • Supported MCUs: The adapter is designed for the GD32 series of MCUs. For offline programming, it supports option byte configuration specifically for GD32W515 series chips.
  • PC Tool Compatibility: The GigaDevice GD-Link Programmer PC tool is essential for offline programming and firmware updates. The latest version of this tool should be downloaded from the GigaDevice website.
  • IDE Compatibility: It is compatible with Keil (Version 5.26 and above) and IAR (Version 8.32 and above) IDEs for online programming and debugging.

Usage Features

The GD-Link Adapter offers several user-friendly features:

Interactive Mode and Hardware Connection:

  • Buttons and LEDs: The adapter includes a KEY1 button and four LEDs (LED1, LED2, LED3, LED4) that indicate its working status.
    • KEY1: Used for firmware upgrades and initiating offline programming.
    • LED1: Indicates offline programming status (flashing for programming, always bright for success).
    • LED2: Indicates USB connection status (flashing fast for successful connection, flashing slow for no connection) and firmware upgrade status (always bright during upgrade).
    • LED3: Indicates firmware upgrade status (always bright during upgrade).
    • LED4: Indicates power supply status (always bright for normal power).
  • Target Board Connection: The manual provides a schematic diagram and pin function table (Table 2-2) for connecting the GD-Link adapter to the target board's SWD or JTAG interface. Key pins include +3V3, GND, TMS/IO (JTMS/SWDIO), TCK/CLK (JTCK/SWCLK), TDO/SWO (JTDO), TDI (JTDI), and TReset (NRST).

Offline Programming:

  • Tool Download: Users must download the GigaDevice GD-Link Programmer PC tool to configure offline programming.
  • User Code Update:
    1. Configuration: Configure settings such as read protection, erase mode (page erase or chip erase), and the maximum number of programming cycles via the "GD-Link->Configuration" menu.
    2. MCU Model Selection: Choose the specific GD MCU model from the "GD-Link->Upadata file" menu.
    3. Bin File Loading: Add one or multiple (up to eight) bin files, specifying their starting addresses for download.
    4. Option Byte Configuration: For GD32W515 series chips, option bytes can be configured through the interface.
    5. Update Process: After configuration, click "Update" and "Yes" to transfer the user code to the adapter.
    6. Initiating Offline Programming: Pressing KEY1 on the adapter initiates the download of user code to the target board. LED1 flashes during programming and turns solid with a buzzer sound upon successful completion.
  • Auto-load Signals: The adapter provides specific signals (T_NG, T_BUSY, T_GOOD, T_START) for burning machines, all of which are active low.
    • T_BUSY: Low (0V) during programming.
    • T_GOOD: Low (0V) upon successful programming.
    • T_NG: Low (0V) if programming fails.
    • T_START: Normally high (3.3V), a 100ms low-level signal initiates programming when the device is idle.

Programming in IDE (Keil and IAR):

  • Keil (Version 5.26 above):
    1. Connect the GD-Link adapter to the target board.
    2. In "Configure Flash Tools," select "CMSIS-DAP Debugger" or "CMSIS-DAP ARMv8-M Debugger."
    3. Click "Settings" and choose "JTAG" or "SWD" port.
    4. In the "Utilities" page, select "CMSIS-DAP Debugger," click "Settings," and "Add" the correct flash programming algorithm for the specific GD32 MCU.
  • IAR (Version 8.32 above):
    1. Connect the GD-Link adapter to the target board.
    2. Right-click the project name and select "Options."
    3. In "Debugger->Setup->Driver" menu, select "CMSIS-DAP."
    4. Select "JTAG or SW" interface in "CMSIS DAP->JTAG/SW->Interface" tool menu.

Maintenance Features

  • Firmware Upgrade: The GD-Link Adapter's firmware can be updated using the GigaDevice GD-Link Programmer PC tool. The process involves specific steps depending on the prompt type:

    • Prompt Type 1 (Power-off required):
      1. Click OK when prompted to power off the GD-Link.
      2. Long press KEY1 while powering on until LED3 is always on, then release KEY1.
      3. Click "GD-Link->Updata Firmware" again and confirm the upgrade.
      4. The upgrade proceeds in two steps, indicated by LED3 and then LED2 being always bright. The progress bar shows completion.
      5. Do not disconnect the GD-Link from the PC during the upgrade.
      6. Upon 100% completion, click OK. The new firmware version will be displayed, confirming success.
    • Prompt Type 2 (Direct update):
      1. Click "GD-Link->Updata Firmware."
      2. Long press KEY1 to power on, then click "OK" to start the firmware update.
      3. During the update, LED2 is always bright, and a progress bar indicates completion.
      4. Upon 100% completion, the new firmware version will be displayed.
  • Revision History: The manual includes a revision history table (Table 5-1) detailing updates to the adapter's features and documentation, ensuring users have access to the latest information and improvements. This includes additions like recommended line length range, new GD-Link Programmer versions, support for multiple bin files, option byte configuration for specific MCUs, and detailed button/LED descriptions.

GigaDevice Semiconductor GD-Link Adapter Specifications

General IconGeneral
BrandGigaDevice Semiconductor
ModelGD-Link Adapter
CategoryComputer Hardware
LanguageEnglish

Related product manuals