0% found this document useful (0 votes)
236 views34 pages

Nu-Link Command Tool User Manual - V2.05

The Nu-Link Command Tool allows users to program, erase, dump and update firmware on NuMicro MCUs via a Nu-Link dongle. It supports the M051, M0518, M0519 and M0564 series and provides commands to access flash memory, reset the chip, and get part and version information. The tool can be used to create customized flash programming applications.

Uploaded by

varunyowabackup
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)
236 views34 pages

Nu-Link Command Tool User Manual - V2.05

The Nu-Link Command Tool allows users to program, erase, dump and update firmware on NuMicro MCUs via a Nu-Link dongle. It supports the M051, M0518, M0519 and M0564 series and provides commands to access flash memory, reset the chip, and get part and version information. The tool can be used to create customized flash programming applications.

Uploaded by

varunyowabackup
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/ 34

Nu-Link Command Tool

ARM® Cortex® -M
32-bit Microcontroller

NuMicro® Family
Nu-Link Command Tool
User Manual

NU-LINK COMMAND TOOL USER MANUAL


The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.

Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based system
design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.

For additional information or questions, please contact: Nuvoton Technology Corporation.


www.nuvoton.com

Jul. 25, 2018 Page 1 of 34 Rev 2.05


Nu-Link Command Tool

Table of Contents
1 OVERVIEW ......................................................................................... 4
1.1 Supported Chips ....................................................................................... 4
2 NU-LINK COMMAND TOOL ..................................................................... 8
2.1 Installing the Nu-Link Command Tool .............................................................. 8
2.2 Launching the Nu-Link Command Tool ........................................................... 10
2.3 Limitation of Using Multiple Nu-Link Dongles .................................................... 11
2.4 Command Format .................................................................................... 11
2.4.1 Nu-Link ID ...................................................................................................... 12
2.4.2 Options ......................................................................................................... 12
2.4.3 Example for Programming APROM ........................................................................ 28

3 CUSTOMIZED FLASH PROGRAMMING TOOL ........................................... 29


3.1 Environment ........................................................................................... 29
3.2 Nu-Link Vendor UI Usage ...........................................................................29
4 Specific Series .................................................................................... 32
4.1 Support for M2351 Series ...........................................................................32
5 REVISION HISTORY ............................................................................ 33
NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 2 of 34 Rev 2.05


Nu-Link Command Tool

List of Figures
Figure 1-1 Nu-Link Command Tool System Block Diagram ............................................................ 4
Figure 2-1 Language Selection Form .............................................................................................. 8
Figure 2-2 Setup Wizard Form ......................................................................................................... 8
Figure 2-3 Install Path Selection Form ............................................................................................. 8
Figure 2-4 Shortcut Path Setting Form ............................................................................................ 9
Figure 2-5 Installation Information Confirmation Form..................................................................... 9
Figure 2-6 Setup Completely Form .................................................................................................. 9
Figure 2-7 Open Windows Command Prompt ............................................................................... 10
Figure 2-8 Launch Nu-Link.exe by Using Windows Command Prompt ........................................ 10
Figure 2-9 Multiple Nu-Link ICE Dongle Connection Illustration. ................................................... 11
Figure 2-10 Use -d Command to Dump Data from Device to File ................................................. 13
Figure 2-11 Use -l Command to Display Nu-Link ID ...................................................................... 14
Figure 2-12 Use -r Command to Read Config 0 Value .................................................................. 16
Figure 2-13 Use -w Command to Write Config 0 Value ................................................................. 18
Figure 2-14 Use -v Command to Verify Config 0 Value ................................................................. 20
Figure 2-15 Use -e Command to Erase Chip ................................................................................. 22
Figure 2-16 Use -reset Command to Reset Target Chip ............................................................... 23
Figure 2-17 Use -p Command to Display the Part Number of Target Chip ................................... 24
Figure 2-18 Use -version Command to Display Application and Nu-Link Firmware Version ........ 25

NU-LINK COMMAND TOOL USER MANUAL


Figure 2-19 Use -update Command to Update Nu-Link Firmware ................................................ 26
Figure 2-20 Use -disconnect Command to Disconnect from Target Chip ..................................... 27
Figure 3-1 Nu-Link Vendor UI Form ............................................................................................... 29
Figure 3-2 Select Bin File ............................................................................................................... 30
Figure 3-3 Display Error Message Due to Command Length is Too Long .................................... 30
Figure 3-4 Program Data to Target Chip with Nu-Link Vendor UI ................................................. 31
Figure 3-5 List All Connected Nu-Link Device IDs ......................................................................... 31

Jul. 25, 2018 Page 3 of 34 Rev 2.05


Nu-Link Command Tool

1 OVERVIEW
The Nu-Link Command Tool is a Win32 console application consisting of functions to access
®
Flash memory embedded in a NuMicro MCU via a Nu-link dongle. Besides, it also provide
functions to update Nu-Link dongle firmware. All these functions are enabled by input options
which will be introduced in Chapter 2.

With the Nu-Link Command Tool, users are able to erase, program and dump Flash according to
their requirements. In other words, users can create their customized Flash programming tool. In
Chapter 3, a simple Windows application program is introduced for reference.
NU-LINK COMMAND TOOL USER MANUAL

Figure 1-1 Nu-Link Command Tool System Block Diagram

1.1 Supported Chips


M051 series
 M052/M054/M058/M0516AN
 M052/M054/M058/M0516BN
 M052/M054/M058/M0516DN
 M052/M054/M058/M0516DE

M0518 series
 M0518AE

M0519 series
 M0519AE

Jul. 25, 2018 Page 4 of 34 Rev 2.05


Nu-Link Command Tool

M0564 series
 M0564AE

M058S series
 M058SAN

Mini51 series
 Mini51/Mini52/Mini54AN
 Mini51/Mini52/Mini54DE
 Mini55DE

Mini57 series
 Mini57DE

Mini58 series
 Mini58DE

NM1120 series
 NM1120AE

NM1200 series

NU-LINK COMMAND TOOL USER MANUAL


 NM1100AE
 NM1200AE

NM1500 series
 NM1510AE
 NM1530AE
 NM1520AE

NM1810 series
 NM1810AE

NM1820 series
 NM1820AE

NUC029 series
 NUC029AN
 NUC029AE

Jul. 25, 2018 Page 5 of 34 Rev 2.05


Nu-Link Command Tool

Nano100 series
 Nano100AN
 Nano100BN

Nano103 series
 Nano103AE

Nano112 series
 Nano102AN
 Nano112AN

NUC100 series
 NUC100AN
 NUC100BN
 NUC100CN
 NUC100DN

NUC121 series
 NUC121AE
 NUC125AE

NUC122 series
NU-LINK COMMAND TOOL USER MANUAL

 NUC122AN

NUC123 series
 NUC123AN
 NUC123AE

NUC126 series
 NUC126AE

NUC131 series
 NUC131AE

NUC200 series
 NUC200AN
 NUC220AN
 NUC230AE
 NUC240AE

Jul. 25, 2018 Page 6 of 34 Rev 2.05


Nu-Link Command Tool

NUC400 series
 NUC442AE
 NUC472AE

M2351 series
 M2351AE

M451 series
 M451AE
 M452AE
 M453AE
 M451MAE

M480 series
 M481AE
 M482AE
 M483AE
 M484AE
 M485AE
 M487AE

8051 1T series
 N76E885

NU-LINK COMMAND TOOL USER MANUAL


 N76E616
 N76E003

Jul. 25, 2018 Page 7 of 34 Rev 2.05


Nu-Link Command Tool

2 NU-LINK COMMAND TOOL

2.1 Installing the Nu-Link Command Tool


Please execute the setup program which named “NuMicro NuLink Command Tool
1.30.6491.exe” to install the Nu-Link Command Tool, and follow instructions to complete the
installation. The detailed steps are listed below.
1. Select setup language.

Figure 2-1 Language Selection Form


2. Setup wizard form which shows current version number.
NU-LINK COMMAND TOOL USER MANUAL

Figure 2-2 Setup Wizard Form


3. Browse the installation path.

Figure 2-3 Install Path Selection Form

Jul. 25, 2018 Page 8 of 34 Rev 2.05


Nu-Link Command Tool

4. Specify a shortcut path on “Start Menu”.

Figure 2-4 Shortcut Path Setting Form


5. Confirm the selection.

NU-LINK COMMAND TOOL USER MANUAL


Figure 2-5 Installation Information Confirmation Form
6. Finish the Nu-Link Command Tool installation.

Figure 2-6 Setup Completely Form

Jul. 25, 2018 Page 9 of 34 Rev 2.05


Nu-Link Command Tool

2.2 Launching the Nu-Link Command Tool


To launch Nu-Link Command Tool, please open the Windows command prompt, and then change the
current directory to the install path of Nu-Link Command Tool. Type “NuLink.exe” and press the
“Enter” button. The brief description of Nu-Link Command Tool will be displayed in the Windows
command prompt.

Figure 2-7 Open Windows Command Prompt


NU-LINK COMMAND TOOL USER MANUAL

Figure 2-8 Launch Nu-Link.exe by Using Windows Command Prompt

Jul. 25, 2018 Page 10 of 34 Rev 2.05


Nu-Link Command Tool

2.3 Limitation of Using Multiple Nu-Link Dongles


The Nu-Link Command Tool can support more than one Nu-Link ICE dongles to plug into Host
PC at the same time. However, the affordable number of dongles varies in different Windows
operating systems.

Windows XP
The Nu-Link Command Tool can support up to 8 Nu-Link dongles on Windows XP. However,
there is a known problem when using multiple Nu-Link ICE dongles. The programming and
response time will be increased while using multiple Nu-Link ICE dongles. The programming
performance will be decreased if more and more Nu-Link ICE dongles are used. The OS
operating performance may decrease significantly if some Nu-Link ICE dongle connections are
created.
Windows 7
User can connect 4 USB 4-port hubs to PC and connect 4 Nu-Link ICE dongles into each hub.

NU-LINK COMMAND TOOL USER MANUAL


Figure 2-9 Multiple Nu-Link ICE Dongle Connection Illustration.

To get better performance, a host PC with multi-core CPU running Windows 7 is


recommended.

2.4 Command Format


User can open a Command Prompt program in Windows and then execute Nu-Link Command
Tool as below.

>NuLink [Nu-Link ID] [Options] [sections] [File/Value]

Note: NuLink is the execution name of Nu-Link Command Tool and it is case sensitive.

The usage of each parameter is described in following sections.

Jul. 25, 2018 Page 11 of 34 Rev 2.05


Nu-Link Command Tool

2.4.1 Nu-Link ID

Each Nu-Link has one ID. User can select a corresponding ID to control a specified Nu-Link
dongle.

2.4.2 Options

Nu-Link command types are listed in the following table.

Options Description

-d Dump bin data to device with specific range

-disconnect Disconnect from target chip and quit ICE mode

-e Erase chip or flash ROM

-l Display all available Nu-Link IDs

-p Display the part number of target device

-r Read data from chip

-reset Reset taget device

-update Update firmware of Nu-Link ICE dongle

-v Verify chip data with source file/value

-version Display Nu-Link Command Tool and firmware of Nu-Link ICE dongle version

-w Write data to chip with source file/value


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 12 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.1 Dump bin data


Command: Dump bin data from device with specific range.

>NuLink [Nu-Link ID] –d [start_address] [end_address] [file]

[Nu-Link ID] Optional.


[start_address] Required. Start address of dump range.
[end_address] Required. End address of dump range.
[file] Required. A file path name for outputting result.
Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command
might not work.
Example:
Dump bin data to device with specific range.

>NuLink –d 0x1000 0x2000 C:\Range.bin

NU-LINK COMMAND TOOL USER MANUAL


Figure 2-10 Use -d Command to Dump Data from Device to File

Jul. 25, 2018 Page 13 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.2 Display All Available Nu-Link IDs


Command: Display all availiable Nu-Link ICE IDs.

>NuLink –l

Example:

>NuLink –l

Figure 2-11 Use -l Command to Display Nu-Link ID


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 14 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.3 Read Data from Chip


Command: Read data of specific region from target chip.

>NuLink [Nu-Link ID] -r [sections] [file]

[Nu-Link ID] Optional.


[sections] Required. Argument names are case insensitive as shown below.
Read data from target chip: CFG0, CFG1, CFG2, CFG3, LDROM, APROM, DATAROM, SPROM,
SPROM2, SPROM3, KPROM, UID, UCID.
[file] Required. But reading config0 and config1 can be optional.
A file path name for outputting result.

>NuLink [Nu-Link ID] -r SPIFLASH [file] address [value1] size [value2] channel [value3]

[value1] The start address of reading SPI flash.


[value2] The size of reading SPI flash.
[value3] The SPIM channel. The option is optional.

Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command
might not work.
Example:
Display UCID value from chip on screen.

NU-LINK COMMAND TOOL USER MANUAL


>NuLink –r UCID

Display config0 value from chip with Nu-Link ID 0x12345678 on screen.

>NuLink 0x12345678 –r CFG0

Read APROM data of target chip and save data to file.

>NuLink –r APROM C:\APROM.bin

Read APROM data of target chip with Nu-Link ID 0x12345678 and save data to file.

>NuLink 0x12345678 –r APROM C:\APROM.bin

Read SPI flash data of target chip with range (0x0~0x1000) and save data to file.

>NuLink –r SPIFLASH C:\SPIFLASH.bin address 0x0 size 0x1000

Jul. 25, 2018 Page 15 of 34 Rev 2.05


Nu-Link Command Tool

Display config0 value on screen.

>NuLink –r CFG0

Figure 2-12 Use -r Command to Read Config 0 Value


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 16 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.4 Write Data to Chip


Command: Write data of specific region to target chip.

>NuLink [Nu-Link ID] -w [sections] [file/value]

[Nu-Link ID] Optional.


[sections] Required. Argument names are shown as following and case insensitive.
Write data to target chip: CFG0, CFG1, CFG2, CFG3, LDROM, APROM, DATAROM, SPROM,
SPROM2, SPROM3, KPROM.
[file/value] Required.
A file path name or value for data writing.

>NuLink [Nu-Link ID] -w SPIFLASH [file/value] address [value1] channel [value2] key0 [value3]
key1 [value4]

[value1] The start address of programming SPI flash.


[value2] The SPIM channel. The option is optional.
[value3] The option is optional.
The secure key0 of SPI flash encrypt file data. Value is 0 : file data does not to encrypt.
[value4] The option is optional.
The secure key1 of SPI flash encrypt file data. Value is 0 : file data does not to encrypt.

Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command

NU-LINK COMMAND TOOL USER MANUAL


might not work.

Example:
Program 0xFFFFFFFE value to config0 through Nu-Link ID 0x12345678.

>NuLink 0x12345678 –w CFG0 0xFFFFFFFE

Program APROM data of target chip from file.

>NuLink –w APROM C:\APROM.bin

Program APROM data of target chip with Nu-Link ID 0x12345678 from file.

>NuLink 0x12345678 –w APROM C:\APROM.bin

Program SPI flash data of target chip with base address 0x0 from file.
Remark: Secure key0 of SPI flash is 0x123 and Secure key1 of SPI flash is 0x456. Use non-zero
value of secure key to encrypt file data and program encrypted data to SPI flash. Use zero value of
secure key to program file data to SPI flash without encrypted.

>NuLink –w SPIFLASH C:\SPIFLASH.bin address 0x0 key0 0x123 key1 0x456

Program 0xFFFFFFFE value to config0.

Jul. 25, 2018 Page 17 of 34 Rev 2.05


Nu-Link Command Tool

>NuLink –w CFG0 0xFFFFFFFE

Figure 2-13 Use -w Command to Write Config 0 Value


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 18 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.5 Verify Chip Data with Source File/Value


Command: Verify data of specific region from target chip with source file or value.

>NuLink [Nu-Link ID] -v [sections] [file/value]

[Nu-Link ID] Optional.


[sections] Required. Argument names are shown as following and case insensitive.
Verify data from target chip : CFG0, CFG1, CFG2, CFG3, LDROM, APROM, DATAROM, SPROM,
SPROM2, SPROM3.
[file/value] Required.
A file path name or value for data verifying.

>NuLink [Nu-Link ID] -v SPIFLASH [file/value] address [value1] channel [value2]

[value1] The start address of verifying SPI flash.


[value2] The SPIM channel. The option is optional.

Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command
might not work.

Example:
Verify Config0 with data 0xFFFFFFFE through Nu-Link ID 0x12345678.

NU-LINK COMMAND TOOL USER MANUAL


>NuLink 0x12345678 –v CFG0 0xFFFFFFFE

Verify LDROM data of target chip from file.

>NuLink –v LDROM C:\LDROM.bin

Verify LDROM data of target chip with Nu-Link ID 0x12345678 from file.

>NuLink 0x12345678 –v LDROM C:\LDROM.bin

Verify SPI flash data of target chip from file.

>NuLink –v LDROM C:\LDROM.bin

Verify SPI flash data of target chip with base address 0x0 from file.

>NuLink –v SPIFLASH C:\SPIFLASH.bin address 0x0

Jul. 25, 2018 Page 19 of 34 Rev 2.05


Nu-Link Command Tool

Verify config0 with 0xFFFFFFFE value.

>NuLink –v CFG0 0xFFFFFFFE

Figure 2-14 Use -v Command to Verify Config 0 Value


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 20 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.6 Erase Chip/Flash ROM


Command: Erase data of specific region from target chip.

>NuLink [Nu-Link ID] –e [sections]

[Nu-Link ID] Optional.


[sections] Required. Argument names are shown as following and case insensitive.
Erase data from target chip : all, LDROM, APROM, DATAROM, SPROM, SPROM2, SPROM3,
KPROM.

>NuLink [Nu-Link ID] –e SPIFLASH address [value1] size [value2] channel [value3]

[value1] The start address of erasing SPI flash.


[value2] The size of erasing SPI flash.
[value3] The SPIM channel. The option is optional.

Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command
might not work.

Example:
Erase LDROM data of target chip.

>NuLink –e LDROM

NU-LINK COMMAND TOOL USER MANUAL


Erase APROM data of target chip.

>NuLink –e APROM

Erase DATAROM data of target chip.

>NuLink –e DATAROM

Erase LDROM data of target chip with Nu-Link ID 0x12345678.

>NuLink 0x12345678 –e LDROM

Erase APROM data of target chip with Nu-Link ID 0x12345678.

>NuLink 0x12345678 –e APROM

Erase DATAROM data of target chip with Nu-Link ID 0x12345678.

>NuLink 0x12345678 –e DATAROM

Erase SPI flash data of target chip with range (0x0~0x1000).

>NuLink –e SPIFLASH address 0x0 size 0x1000

Jul. 25, 2018 Page 21 of 34 Rev 2.05


Nu-Link Command Tool

Erase whole chip data including config0, config1, config2, config3, LDROM, APROM, DATAROM,
SPROM, SPROM2, SPROM3, KPROM.

>NuLink –e all

Figure 2-15 Use -e Command to Erase Chip


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 22 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.7 Reset Target Chip


Command: Reset target chip.

>NuLink [Nu-Link ID] –reset

[Nu-Link ID] Optional.


Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command
might not work.

Example:
Reset target chip with Nu-Link ID 0x12345678.

>NuLink 0x12345678 –reset

Reset target chip.

>NuLink –reset

NU-LINK COMMAND TOOL USER MANUAL


Figure 2-16 Use -reset Command to Reset Target Chip

Jul. 25, 2018 Page 23 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.8 Display the Part Number of Target Chip


Command: Display the part number of target chip.

>NuLink –p

Remark:
This command only supports one Nu-Link ICE dongle plugged into one PC.

Example:
Display the part number of target chip.

>NuLink –p
NU-LINK COMMAND TOOL USER MANUAL

Figure 2-17 Use -p Command to Display the Part Number of Target Chip

Jul. 25, 2018 Page 24 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.9 Display Nu-Link Command Tool and Firmware Version of Nu-Link ICE Dongle
Command: Display Nu-Link Command Tool and firmware of Nu-Link ICE version.

>NuLink –version

Remark:
This command only supports one Nu-Link ICE dongle plugged into one PC.
The Nu-Link firmware version is the firmware version of Nu-Link ICE dongle plugged into current PC.
The current application version is the version of Nu-Link Command Tool.

Example:
Display Nu-Link Command Tool and Firmware of Nu-Link ICE Dongle Version.

>NuLink –version

Figure 2-18 Use -version Command to Display Application and Nu-Link Firmware Version

NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 25 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.10 Update Firmware of Nu-Link ICE Dongle


Command: Update firmware of Nu-Link ICE dongle.

>NuLink –update

Remark:
This command only supports one Nu-Link ICE dongle plug into one PC.
If the Nu-Link firmware version and the current application version are different, the firmware version
will be updated to current application version by executing the command.

Example:
Update firmware of Nu-Link ICE dongle.

>NuLink –update
NU-LINK COMMAND TOOL USER MANUAL

Figure 2-19 Use -update Command to Update Nu-Link Firmware

Jul. 25, 2018 Page 26 of 34 Rev 2.05


Nu-Link Command Tool

2.4.2.11 Disconnect from Target Chip


Command: Disconnect from target chip and quit ice mode.

>NuLink [Nu-Link ID] –disconnect

[Nu-Link ID] Optional.


Remark:
If more than one Nu-Link ICE dongles plug into one PC and no Nu-Link ID is specified, the command
might not work.
Must to use the command after programming flash.

Example:
Disconnect from target chip with Nu-Link ID 0x12345678.

>NuLink 0x12345678 –disconnect

Disconnect from target chip.

>NuLink –disconnect

NU-LINK COMMAND TOOL USER MANUAL


Figure 2-20 Use -disconnect Command to Disconnect from Target Chip

Jul. 25, 2018 Page 27 of 34 Rev 2.05


Nu-Link Command Tool

2.4.3 Example for Programming APROM

The following step is an example about writing “APROM.bin” file data to APROM of target chip and
verifying and reading data after writing APROM data. Finally, the target chip will be reset.

>NuLink –e APROM

>NuLink –w APROM C:\APROM.bin

>NuLink –v APROM C:\APROM.bin

>NuLink –r APROM C:\R_APROM.bin

>Nulink –reset

Note: User needs to erase flash before programming data.


NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 28 of 34 Rev 2.05


Nu-Link Command Tool

3 CUSTOMIZED FLASH PROGRAMMING TOOL


This chapter introduces an example Windows application program which is based on the Nu-Link
Command Tool. This program invokes the Nu-Link Command Tool to access Fash memory
® ®
embedded in a NuMicro MCU. It supports to update multiple NuMicro MCUs concurrently and
®
supports to dynamic scan all connected NuMicro MCUs.
The example source code is stored in the installation folder. Users can refer to the source code to
create their customized Flash programming tool.

3.1 Environment
The Vendor UI Tool is based on the Nu-Link Command Tool. Therefore, user needs to install
the Nu-Link Command Tool before executing Vendor UI.
The default path of execution file of the Nu-Link Command Tool is “C:\Program Files\Nuvoton
Tools\NuLink Command Tool”.
A prebuilt execution version is located at “C:\Program Files\Nuvoton Tools\NuLink Command
Tool\NuLinkVendorUI.exe”.

3.2 Nu-Link Vendor UI Usage


The following shows the steps of executing NuLinkVendorUI.
Step1:
Connect Nu-Link ICE dongles to PC.
Step2:
Execute NuLinkVendorUI.exe.

NU-LINK COMMAND TOOL USER MANUAL

Figure 3-1 Nu-Link Vendor UI Form

Jul. 25, 2018 Page 29 of 34 Rev 2.05


Nu-Link Command Tool

Step3:
Click the “LDROM”, “APROM” or “Data” button to select a bin file from disk.

Figure 3-2 Select Bin File

The command of cmd.exe has length limit. For Microsoft Windows XP or later, the maximum
length of the string that you can use at the command prompt is 8191 characters. For Microsoft
Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the
command prompt is 2047 characters.
For example, if the command length is over the limit, the cmd.exe will display “Command format
Error!!!” message.
NU-LINK COMMAND TOOL USER MANUAL

Figure 3-3 Display Error Message Due to Command Length is Too Long

Jul. 25, 2018 Page 30 of 34 Rev 2.05


Nu-Link Command Tool

Step 4:
Click the “Update” button and start to update program through all connected Nu-Link devices.

Figure 3-4 Program Data to Target Chip with Nu-Link Vendor UI

All connected Nu-Link device ID will be listed in the list section below the “Update” button.

NU-LINK COMMAND TOOL USER MANUAL

Figure 3-5 List All Connected Nu-Link Device IDs


The update flow for each bin file is erase -> program -> verify.
So, the update flow of above example: erase LDROM -> program LDROM -> verify LDROM ->
erase APROM -> program APROM -> verify APROM -> erase DATAROM -> program
DATAROM -> verify DATAROM.
Jul. 25, 2018 Page 31 of 34 Rev 2.05
Nu-Link Command Tool

4 SPECIFIC SERIES

4.1 Support for M2351 Series


There are some different command format to use Nu-Link command tool for M2351 series, please
follow instructions to get the usage below.
1. Open a Command Prompt program in Windows and find installation path of Nu-Link command
tool.
2. Type “NuLink_M2351.exe” to execute tool, and show the command format and example.
NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 32 of 34 Rev 2.05


Nu-Link Command Tool

5 REVISION HISTORY

Date Revision Description

2015.07.21 1.30 Preliminary version.

2016.03.16 1.31 Added dump bin data command.

2016.07.22 2.00 Added –disconnect command to disconnect from target.

2017.01.13 2.01 Added SPROM, KPROM erasing, programming and verifying.

2017.06.23 2.02 Added SPI flash erasing, programming and verifying.

2018.06.22 2.04 Supported M2351 Series.

2018.07.25 2.05 Updated SPI flash command format content.

NU-LINK COMMAND TOOL USER MANUAL

Jul. 25, 2018 Page 33 of 34 Rev 2.05


Nu-Link Command Tool
NU-LINK COMMAND TOOL USER MANUAL

Important Notice
Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any
malfunction or failure of which may cause loss of human life, bodily injury or severe property
damage. Such applications are deemed, “Insecure Usage”.
Insecure usage includes, but is not limited to: equipment for surgical implementation, atomic
energy control instruments, airplane or spaceship instruments, the control or operation of
dynamic, brake or safety systems designed for vehicular use, traffic signal instruments, all
types of safety devices, and other applications intended to support or sustain life.
All Insecure Usage shall be made at customer’s risk, and in the event that third parties lay
claims to Nuvoton as a result of customer’s Insecure Usage, customer shall indemnify the
damages and liabilities thus incurred by Nuvoton.

Jul. 25, 2018 Page 34 of 34 Rev 2.05

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy