User Manual for GigaDevice models including: GD-Link Console, Console

User

GigaDevice GD-Link Console User Manual

Zestawy uruchomieniowe i programatory / Półprzewodniki - Maritex

GigaDevice GD-Link Console User Manual - Maritex

Sep 14, 2023 — mem. Read memory. Syntax: mem [:], (hex) mem8. Read 8-bit items. Syntax: mem8 [:], (hex).

PDF preview unavailable. Download the PDF instead.

GIGADEVICE GD-LINK
GigaDevice GD-Link Console User Manual

GigaDevice MCU Team

Version English V 1.0

4 Pages

Name  GigaDevice GD-Link Console User

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 RequirementsChinese or English Windows XPWindows 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.

2. Instructions

2.1 Command set

The command set is as follows:

Command

?

Show the help

3 / 4

Chart 1 Remarks

GigaDevice GD-Link Console User Manual

mem mem8 mem16 mem32
w1 w2 w4 erase r g h step loadbin savebin
SetPC SetRDP ReadAP WriteAP ReadDP WriteDP
si sd q

Read memory. Syntax: mem [<Zone>:]<Addr>, <NumBytes> (hex) Read 8-bit items. Syntax: mem8 [<Zone>:]<Addr>, <NumBytes> (hex) Read 16-bit items. Syntax: mem16 [<Zone>:]<Addr>, <NumItems> (hex) Read 32-bit items. Syntax: mem32 [<Zone>:]<Addr>, <NumItems> (hex) Write 8-bit items. Syntax: w1 [<Zone>:]<Addr>, <Data> (hex) Write 16-bit items. Syntax: w2 [<Zone>:]<Addr>, <Data> (hex) Write 32-bit items. Syntax: w4 [<Zone>:]<Addr>, <Data> (hex) Erase internal flash of selected device. Syntax: Erase Reset target go halt step Load *.bin file into target memory. Syntax: loadbin <filename>, <Addr> Saves target memory into binary file. Syntax: savebin <filename>, <Addr>, <NumBytes> Set the PC to specified value. Syntax: SetPC <Addr> Set the RDP(Read Protect) to specified level. Syntax: SetRDP <level> Read a CoreSight AP register. Syntax: ReadAP <Addr> Write a CoreSight AP register. Syntax: WriteAP <Addr>, <Data> (hex) Reads a CoreSight DP register. Syntax: ReadDP <Addr> Write a CoreSight DP register. Syntax: WriteDP <Addr>, <Data> (hex) Change target interface. Syntax: si <interface>, where 0=JTAG and 1=SWD Set up the device Part No. manually. Syntax: sd <Part No.> 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


Microsoft Word 2016