GigaDevice GD-Link Console
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.
Instructions
Command set
The command set is as follows:
Command | Remarks |
? | Show the help |
mem | Read memory. Syntax: mem [<Zone>:]<Addr>, <NumBytes> (hex) |
mem8 | Read 8-bit items. Syntax: mem8 [<Zone>:]<Addr>, <NumBytes> (hex) |
mem16 | Read 16-bit items. Syntax: mem16 [<Zone>:]<Addr>, <NumItems> (hex) |
mem32 | Read 32-bit items. Syntax: mem32 [<Zone>:]<Addr>, <NumItems> (hex) |
w1 | Write 8-bit items. Syntax: w1 [<Zone>:]<Addr>, <Data> (hex) |
w2 | Write 16-bit items. Syntax: w2 [<Zone>:]<Addr>, <Data> (hex) |
w4 | Write 32-bit items. Syntax: w4 [<Zone>:]<Addr>, <Data> (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 <filename>, <Addr> |
savebin | Saves target memory into binary file. Syntax: savebin <filename>, <Addr>,
<NumBytes> |
SetPC | Set the PC to specified value. Syntax: SetPC <Addr> |
SetRDP | Set the RDP(Read Protect) to specified level. Syntax: SetRDP <level> |
ReadAP | Read a CoreSight AP register. Syntax: ReadAP <Addr> |
WriteAP | Write a CoreSight AP register. Syntax: WriteAP <Addr>, <Data> (hex) |
ReadDP | Reads a CoreSight DP register. Syntax: ReadDP <Addr> |
WriteDP | Write a CoreSight DP register. Syntax: WriteDP <Addr>, <Data> (hex) |
si | Change target interface. Syntax: si <interface>, where 0=JTAG and 1=SWD |
sd | Set up the device Part No. manually. Syntax: sd <Part No.> |
q | Quit |
Other usage
GD Link CLI can also be used by the bat script, like in chart 2.
Documents / Resources
![]() |
GigaDevice GD-Link Console [pdf] User Manual GD-Link Console, Console |