Table of Contents

Advertisement

Quick Links

GigaDevice Semiconductor Inc.
GD-Link Adapter
User Guide
Revision 2.4
(May. 2022)

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for GigaDevice Semiconductor GD-Link Adapter

  • Page 1 GigaDevice Semiconductor Inc. GD-Link Adapter User Guide Revision 2.4 (May. 2022)
  • Page 2: Table Of Contents

    Introduction ......................5 Interactive mode and hardware connection ............5 2.1. Buttons and LED ......................5 2.2. Connecting GD-Link adapter with target board ............6 Offline programming .................... 6 3.1. Tool download ......................6 3.2. Update user code ......................6 3.3.
  • Page 3: List Of Figures

    Figure 3-6. Updata bin file ........................9 Figure 3-7. GD-Link adapter update file finished ................10 Figure 3-8. GD-Link adapter update firmware situation 1 figure 1 ..........10 Figure 3-9. GD-Link adapter update firmware situation 1 figure 2 ..........11 Figure 3-10.
  • Page 4: List Of Tables

    GD-Link Adapter User Guide List of Tables Table 2-1. The working status of GD-Link adapter represented by different LEDs ...... 5 Table 2-2. Pin function of GD-Link adapter ..................6 Table 5-1. Revision history ........................ 21...
  • Page 5: Introduction

    IDE such as Keil or IAR. Another important function is offline programming. The objective of this user guide is to describe how to use GD-Link adapter to achieve the above function.
  • Page 6: Connecting Gd-Link Adapter With Target Board

    When using the GD-Link offline programming function, please download the latest version of tool GigaDevice GD-Link Programmer from website https://www.gd32mcu.com/cn/download/7?kw= and perform the following operations. 3.2. Update user code Plug GD-Link adapter into PC USB connector, LED4 will turn on, which indicates that GD-...
  • Page 7: Figure 3-1. Gd-Link Adapter Offline Download Configuration

    2. Select erase mode, page erase or chip erase. 3. Set the maximum number of programming. Figure 3-1. GD-Link adapter offline download configuration Then select the file to download, click tool menu “GD-Link->Upadata file”, and choose a specific GD MCU model.
  • Page 8: Figure 3-3. Load The Bin File

    GD-Link Adapter User Guide Next, click “Add” label and load the bin file, fill in the address of the target mcu to be downloaded in the pop-up interface box. In this process, user can add multiple bin files (supports up to eight files) at the same time and download them to different address ranges of the target MCU.
  • Page 9: Figure 3-5. Configure Option Byte

    GD-Link Adapter User Guide Figure 3-5. Configure option byte After adding the bin file and configuring option bytes, click lable menu “Update” and "Yes" to update user code. Figure 3-6. Updata bin file...
  • Page 10: Update Firmware

    Complete the above steps correctly, presses button KEY1, then LED1 will flash at the moment, it indicates that the GD-Link adapter is downloading the user code to target board. If the user code is downloaded to the target board correctly, the buzzer will sound and at the same time, LED1 will stop flashing and turn on normally.
  • Page 11: Figure 3-9. Gd-Link Adapter Update Firmware Situation 1 Figure 2

    GD-Link Adapter User Guide Figure 3-9. GD-Link adapter update firmware situation 1 figure 2 3. There are two steps in the upgrade process. In step1, GD-Link LED3 is always bright. In step2, GD-Link LED2 is always bright. The prompt interface is shown in Figure 3-10.
  • Page 12: Figure 3-11. Gd-Link Adapter Update Firmware Situation 1 Figure 4

    GD-Link Adapter User Guide Figure 3-11. GD-Link adapter update firmware situation 1 figure 4 4. When the progress bar reaches 100%, click OK to complete the firmware update. The prompt interface is shown in Figure 3-12. GD-Link adapter update firmware situation 1 figure Figure 3-12.
  • Page 13: Update Prompt Type 2

    The prompt interface is shown in Figure 3-13. GD- Link adapter update firmware situation 1 figure Figure 3-13. GD-Link adapter update firmware situation 1 figure 6 3.3.2. Update prompt type 2 1. After clicking tool menu "GD-Link->Updata Firmware", user can directly update the firmware without powering off and then long pressing KEY1 to power on, and click “OK”...
  • Page 14: Figure 3-15. Gd-Link Adapter Update Firmware Situation 2 Figure 2

    GD-Link LED2 is always bright. The prompt interface is shown in Figure 3-15. GD-Link adapter update firmware situation 2 figure Figure 3-15. GD-Link adapter update firmware situation 2 figure 2 3. The firmware version number is displayed on the right side of the interface, indicating that the firmware upgrade is successful.
  • Page 15: Auto-Load Signal Introduction

    GD-Link Adapter User Guide 3.4. Auto-load signal introduction GD-Link provides some signals for the burning machine. The Figure 3-17. Schematic diagram of GD-Link auto load signals shows the definitions of the auto-load signals. Figure 3-17. Schematic diagram of GD-Link auto load signals All signals are active low.
  • Page 16: Programming In Ide

    Programming in IDE 4.1. In Keil (Version 5.26 above) for programming Power on and connect GD-Link adapter with target board via JTAG/SWD interface. Select “CMSIS-DAP Debugger” or “CMSIS-DAP ARMv8-M Debugger” in “Configure Flash Tools” Tools menu. Figure 4-1. Debug settings in Keil...
  • Page 17: Figure 4-2. Jtag/Swd Port Selection In Keil

    GD-Link Adapter User Guide Figure 4-2. JTAG/SWD Port selection in Keil Select “Utilities” page, and then select “CMSIS-DAP Debugger”, then click “Settings” command button, “Add” the correct flash programming algorithm according to the GD32 MCU which is using.
  • Page 18: In Iar (Version 8.32 Above) For Programming

    GD-Link Adapter User Guide Figure 4-3. Flash programming algorithm selection in Keil 4.2. In IAR (Version 8.32 above) for programming Power on and connect GD-Link adapter with target board via JTAG/SWD interface. Right-click the project name, select the “Options”.
  • Page 19: Figure 4-4. Project Options In Iar

    GD-Link Adapter User Guide Figure 4-4. Project Options in IAR Select “CMSIS-DAP” in “Debugger->Setup->Driver” tools menu.
  • Page 20: Figure 4-5. Debugger Settings In Iar

    GD-Link Adapter User Guide Figure 4-5. Debugger settings in IAR Select “JTAG or SW” interface in “CMSIS DAP->JTAG/SW->Interface” tool menu. Figure 4-6. Interface selection in IAR...
  • Page 21: Revision History

    GD-Link Adapter User Guide Revision history Table 5-1. Revision history Revision No. Description Date Initial Release Jul.15, 2015 Update file Jul.8, 2019 Add instructions for new features in version 3.6 Sept.23, 2019 1. Add recommended line length range 2. Add the new version of the GD-Link Programmer Aug.20, 2020...
  • Page 22 Important Notice This document is the property of GigaDevice Semiconductor Inc. and its subsidiaries (the "Company"). This document, including any product of the Company described in this document (the “Product”), is owned by the Company under the intellectual property laws and treaties of the People’s Republic of China and other jurisdictions worldwide.

Table of Contents