background image

 

GD-Link  Adapter  User  Guide

 

5

 

 

1. 

Introduction 

GD-Link adapter is a three-in-one multi-function development tool for GD32 series of MCUs. 

It  provides  CMSIS-DAP  debugger  port  with  JTAG/SWD  interface.  User  can  use  GD-Link 

adapter for online programming or debugging code in compatible 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. 

2. 

Interactive mode and hardware connection 

2.1. 

Buttons and LED 

There  are  a  button  KEY1  and  4  LEDs  on  GD-Link.  The  button  KEY1  is  used  for  firmware 

upgrade and offline programming. The LEDs are used to display the working status of GD-

Link. The 

Figure 2-1. GD-Link adapter hardware

 shows the position of KEY1 and LEDs on 

GD-Link

Table  2-1.  The  working  status  of  GD-Link  adapter  represented  by  different 

LEDs

  briefly describes GD-Link working status indicated by  each LED status.

 

The specific 

meaning of the LED status

 

and the use of the button will be described in detail in the following 

chapters. 

Figure 2-1. GD-Link adapter hardware 

 

Table 2-1. The working status of GD-Link adapter represented by different LEDs 

LED 

LED status 

GD-Link working status 

LED1 

always bright 

offline programming successful 

flashing 

offline programming 

LED2 

always bright 

firmware upgrade status 

flashing fast 

USB connection successful 

flashing slow 

USB not connected 

LED3 

always bright 

firmware upgrade status 

Summary of Contents for GD-Link Adapter

Page 1: ...GigaDevice Semiconductor Inc GD Link Adapter User Guide Revision 2 4 May 2022...

Page 2: ...5 2 2 Connecting GD Link adapter with target board 6 3 Offline programming 6 3 1 Tool download 6 3 2 Update user code 6 3 3 Update firmware 10 3 3 1 Update prompt type 1 10 3 3 2 Update prompt type 2...

Page 3: ...update firmware situation 1 figure 3 11 Figure 3 11 GD Link adapter update firmware situation 1 figure 4 12 Figure 3 12 GD Link adapter update firmware situation 1 figure 5 12 Figure 3 13 GD Link ada...

Page 4: ...GD Link Adapter User Guide 4 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: ...line programming The LEDs are used to display the working status of GD Link The Figure 2 1 GD Link adapter hardware shows the position of KEY1 and LEDs on GD Link Table 2 1 The working status of GD Li...

Page 6: ...t the length of the DuPont lines not exceed 10cm Figure 2 2 Schematic diagram of GD Link adapter Table 2 2 Pin function of GD Link adapter GD Link Target Board SWD Target Board JTAG 3V3 3V3 3V3 GND GN...

Page 7: ...oad file open GD Link Programmer software click tool menu GD Link Configuration 1 Configure whether to add read protection to the target chip after downloading code 2 Select erase mode page erase or c...

Page 8: ...les supports up to eight files at the same time and download them to different address ranges of the target MCU Figure 3 3 Load the bin file Figure 3 4 Fill in the address If the MCU selection is the...

Page 9: ...GD Link Adapter User Guide 9 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: ...Programmer click tool menu GD Link Updata Firmware first There are two specific situations please follow the instructions of GD Link Programmer to upgrade the firmware 3 3 1 Update prompt type 1 1 Wh...

Page 11: ...ys bright In step2 GD Link LED2 is always bright The prompt interface is shown in Figure 3 10 GD Link adapter update firmware situation 1 figure 3 and Figure 3 11 GD Link adapter update firmware situa...

Page 12: ...rmware 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...

Page 13: ...figure 6 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 p...

Page 14: ...GD Link adapter update firmware situation 2 figure 2 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 indi...

Page 15: ...atic diagram of GD Link auto load signals All signals are active low When is programming the BUSY signal is low 0V The GOOD signal and NG signal are high 3 3V When programming is successful the GOOD s...

Page 16: ...ming can be started 4 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...

Page 17: ...e 17 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...

Page 18: ...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 pr...

Page 19: ...GD Link Adapter User Guide 19 Figure 4 4 Project Options in IAR Select CMSIS DAP in Debugger Setup Driver tools menu...

Page 20: ...GD Link Adapter User Guide 20 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: ...2 Add the new version of the GD Link Programmer to update the firmware operation process Aug 20 2020 2 3 1 Add the new version of the GD Link Programmer to update the bin file operation process 2 Sup...

Page 22: ...ary business industrial personal and or household applications only The Products are not designed intended or authorized for use as components in systems designed or intended for the operation of weap...

Reviews: