GigaDevice GD-Link Console User Manual

June 13, 2024
GigaDevice

GigaDevice GD-Link Console

GigaDevice-GD-Link-Console-PRODUCT

Version: English V 1.0

Pages: 4

Product Information

The GigaDevice GD-Link Console is an application used to operate the flash or config GigaDevice MCUs. It requires a USB cable and GD-Link adaptor for operation. The GD-Link CLI tool allows users to interact with MCUs at high speed.

Function Description

The GD-Link CLI tool enables users to download application programs to the internal flash memory or secure chip of GigaDevice MCUs.

Operating Environment

Software Requirements: Chinese or English Windows XP, Windows 7, and advanced operation systems.

Hardware Requirements: GD-Link adapter (refer to the GD-Link Adapter User Manual).

Package Composition

All files listed in Chart 1 are required.

Product Usage Instructions

Command Set

The available commands are:

  • ? : Show the help

  • mem : Perform memory operations (mem8, mem16, mem32)

  • w1, w2, w4 : Write data to memory

  • erase : Erase memory

  • r, g, h : Read memory

  • step : Execute program step by step

  • loadbin : Load a binary file

  • savebin : Save data to a binary file

  • SetPC, SetRDP, ReadAP, WriteAP, ReadDP,
    WriteDP
    : Perform specific operations

  • si, sd, q : Additional commands

Other Usage

The GD-Link CLI tool can also be used with bat scripts. Refer to Chart 2 for an example of a bat file content and Chart 3 for an example of a test.gdlink file content.

For more detailed information and instructions, please refer to the complete GigaDevice GD-Link Console User Manual.

1. Introduction

This user manual describes an application used to operate the flash or config GigaDevice MCUs with available USB cable and GD Link adaptor. GD Link CLI is a tool for the user to use MCUs with high speed.

Function description
With GD Link CLI , user can download the application program to the internal f lash memory or secure chip and so on

Operating environment
Software Requirements Chinese or English Windows XP 、 Windows 7 and advanced operation systems.
Hardware Requirements: GD Link adapter , referring to the GD Link Adapter User Manual .

Package composition
A ll files listed in Chart 1 are required.

GigaDevice-GD-Link-Console-FIG-1

Instructions

Command set

The command set is as follows:

Command Remarks
? Show the help
mem Read memory. Syntax: mem    [:], (hex)
--- ---
mem8 Read 8-bit items. Syntax: mem8    [:], (hex)
mem16 Read 16-bit items. Syntax: mem16 [:], (hex)
mem32 Read 32-bit items. Syntax: mem32 [:], (hex)
w1 Write    8-bit items. Syntax: w1 [:], (hex)
w2 Write 16-bit items. Syntax: w2 [:], (hex)
w4 Write 32-bit items. Syntax: w4 [:], (hex)
erase Erase internal flash of selected device. Syntax: Erase
r Reset target
g go
h halt
step step
loadbin Load *.bin file into target memory. Syntax: loadbin ,
savebin| Saves target memory into binary file. Syntax: savebin , ,

SetPC| Set the PC to specified value. Syntax: SetPC
SetRDP| Set the RDP(Read Protect) to specified level. Syntax: SetRDP
ReadAP| Read a CoreSight AP register. Syntax: ReadAP
WriteAP| Write a CoreSight AP register. Syntax: WriteAP , (hex)
ReadDP| Reads a CoreSight DP register. Syntax: ReadDP
WriteDP| Write a CoreSight DP register. Syntax: WriteDP , (hex)
si| Change target interface. Syntax: si , where 0=JTAG and 1=SWD
sd| Set up the device Part No. manually. Syntax: sd
q| Quit

Other usage
GD Link CLI can also be used by the bat script, like in chart 2.

GigaDevice-GD-Link-Console-FIG-2

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals