0% found this document useful (0 votes)
120 views4 pages

GigaDevice GD-Link Console User Manual

Uploaded by

alexander240298
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views4 pages

GigaDevice GD-Link Console User Manual

Uploaded by

alexander240298
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

GigaDevice GD-Link Console User Manual

Version
4 Pages
GigaDevice MCU English V 1.0

Name : GigaDevice GD-Link Console User

Team Manual

GigaDevice GD-Link Console User


Manual

GigaDevice Copyright © 2021

1/4
GigaDevice GD-Link Console User Manual

Directory
GigaDevice GD-Link Console User Manual................................................................... 1

1. Introduction................................................................................................................................ 3

1.1 Function description............................................................................................................ 3

1.2 Operating environment ....................................................................................................... 3

1.3 Package composition.......................................................................................................... 3

2. Instructions ................................................................................................................................ 3

2.1 Command set ................................................................................................................. 3

2.2 Other usage .................................................................................................................... 4

2/4
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.

1.1 Function description

With GD-Link CLI, user can download the application program to the internal flash

memory or secure chip and so on.

1.2 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.

1.3 Package composition

All files listed in Chart 1 are required.

Chart 1

2. Instructions

2.1 Command set

The command set is as follows:


Command Remarks
? Show the help
3/4
GigaDevice GD-Link Console User Manual

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

2.2 Other usage

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

Chart 2. The content of bat file

Chart 3. The content of test.gdlink file

4/4

You might also like