Вы находитесь на странице: 1из 23

e-Link32 Quick Start for

Holteks HT32 Series Microcontrollers

Revision: V1.00

Date:
November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Table of Contents
1 Overview................................................................................................................... 5
Introduction............................................................................................................................. 5
Hardware Description............................................................................................................. 6

2 Installing the e-Link32 USB Driver......................................................................... 7


3 Using e-Link32 with Keil MDK-ARM..................................................................... 10
4 Using e-Link32 with IAR EWARM......................................................................... 15
5 e-Link32 Firmware Update.................................................................................... 22

Rev. 1.00

2 of 23

November 30, 2011

Table of Contents

Flash Memory Programming.................................................................................................. 6

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

List of Tables
Table 1. e-Link32 Specifications............................................................................................................... 6

List of Tables

Rev. 1.00

3 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

List of Figures

Rev. 1.00

1. Holtek e-Link32 USB Interface Adapter..................................................................................... 5


2. ARM SWD 10-Pin Connector.................................................................................................... 6
3. e-Link32 USB Driver Installation Welcome Page................................................................... 7
4. e-Link32 USB Driver Installation Select Installation Path....................................................... 8
5. e-Link32 USB Driver Installation Ready to Install Page......................................................... 8
6. e-Link32 USB Driver Installation Completion......................................................................... 9
7. e-Link32 Keil Plugin Installation Welcome Page.................................................................. 10
8. e-Link32 Keil Plugin Installation Select Installation Path.......................................................11
9. e-Link32 Keil Plugin Installation Ready to Install Page.........................................................11
10. e-Link32 Keil Plugin Installation Completion...................................................................... 12
11. Keil uVision4 Debug............................................................................................................ 12
12. Keil uVision4 Utilities.......................................................................................................... 13
13. Keil uVision4 Flash Download Setup.................................................................................. 13
14. Keil uVision4 e-Link32 Settings.......................................................................................... 14
15. e-Link32 IAR Plugin Installation Welcome Page................................................................ 15
16. e-Link32 IAR Plugin Installation Select Installation Path.................................................... 16
17. e-Link32 IAR Plugin Installation Ready to Install Page...................................................... 17
18. e-Link32 IAR Plugin Installation Completion...................................................................... 18
19. IAR EWARM Debugger...................................................................................................... 19
20. IAR EWARM RDI Driver..................................................................................................... 20
21. IAR EWARM RDI Menu...................................................................................................... 20
22. IAR EWARM RDI Configuration......................................................................................... 21
23. Firmware Update Message................................................................................................... 22
24. Update Status for e-Link32.................................................................................................... 22

4 of 23

November 30, 2011

List of Figures

Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Overview
The purpose of this quick start guide is to familiarize users with Holtek e-Link32 Debug Adapter.
The guide includes information on how to setup the e-Link32 with Keil MDK-ARM and IAR
EWARM.

The Holtek e-Link32 connects your target board (via Serial Wire) to PCs USB port. User can
program and debug the embedded programs on the target board. The supported MCUs are HT32
Series Microcontrollers.
The e-Link32 provides the following key features.
Supports HT32 Series MCUs
Serial Wire Debug interface
Integrates with Keil & IAR IDE
USB powered
10-pin Cortex Debug Connector
Three LEDs that display the USB, ERROR and RUN status
One RESET button

Figure 1. Holtek e-Link32 USB Interface Adapter

Rev. 1.00

5 of 23

November 30, 2011

Overview

Introduction

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Hardware Description
The e-Link32 supports Serial Wire Mode interface. There are only two pins, SWCLK (Serial Wire
Clock) and SWDIO (Serial Wire Debug Data Input/Output), are used for the communication. The
following illustration shows the target connector.

2 4 6 8 10
Overview

1 3 5 7 9
Figure 2. ARM SWD 10-Pin Connector

Pin#

Description

Pin#

Description

3.3V

SWDIO

GND

SWCLK

GND

TRACESWO

NC

NC

GND

10

Reset

Flash Memory Programming


The e-Link32 can be used for Flash programming and on-chip debugging. The following table
shows the performance of Flash programming.
Table 1. e-Link32 Specifications
Page Erase + Program + 31 KBytes
Serial Wire Clock

2 MHz

Keil MDK-ARM
Flash Programming

4 Sec

IAR EWARM
Flash Programming

Rev. 1.00

5 Sec

6 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Installing the e-Link32 USB Driver


The following steps show how to install the e-Link32 USB driver into the computer.

Figure 3. e-Link32 USB Driver Installation Welcome Page

3. The default installation path is C:\Program Files\Holtek HT32 Series\e-Link32 USB Driver.
Select the Browse button to change the path and select the Next button to continue when the
path has been chosen.

Rev. 1.00

7 of 23

November 30, 2011

Installing the e-Link32 USB Driver

1. Obtain the latest version of the e-Link32 USB driver from the CD-ROM supplied by Holtek. The
required filename is similar to e-Link32_USB_Driver_Vnnn.exe where nnn represents the
version number.
2. Double-click on e-Link32_USB_Driver_Vnnn.exe and press the Next button on the dialog
below to continue.

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Installing the e-Link32 USB Driver

Figure 4. e-Link32 USB Driver Installation Select Installation Path

4. Press the Install button to start the installation when the Ready to Install screen appears.

Figure 5. e-Link32 USB Driver Installation Ready to Install Page

Rev. 1.00

8 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

5. Once the installation has finished, a completion page will appear as shown below. Press the
Finish button to complete the installation process.

Installing the e-Link32 USB Driver

Figure 6. e-Link32 USB Driver Installation Completion

6. Connect the e-Link32 adapter to PCs USB port.


7. Select the e-Link32 USB driver to install by Windows operation systems.
8. Once the installation has finished, you should check the status of the e-Link32 USB connection
on Device Manager.
9. Under Universal Serial Bus controllers find the name Holtek e-Link32 Debug Interface.
Confirm that no error condition occurs.

Rev. 1.00

9 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Using e-Link32 with Keil MDK-ARM


For information on the Keil MDK-ARM, please refer to the Keil MDK-ARM quick start guide for
HT32 series microcontrollers.
The following steps show how to install the e-Link32 plugin of Keil uVision IDE.

Figure 7. e-Link32 Keil Plugin Installation Welcome Page

Rev. 1.00

10 of 23

November 30, 2011

Using e-Link32 with Keil MDK-ARM

1. Obtain the latest version of the e-Link32 Keil plugin from the CD-ROM supplied by Holtek. The
required filename is similar to e-Link32_Keil_Plugin_Vnnn.exe where nnn represents the
version number.
2. Double-click on e-Link32_Keil_Plugin_Vnnn.exe and press the Next button on the dialog
below to continue.

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

3. The default installation path is C:\Keil. Select the Browse button to change the path and
select the Next button to continue when the path has been chosen.

Using e-Link32 with Keil MDK-ARM

Figure 8. e-Link32 Keil Plugin Installation Select Installation Path

4. Press the Install button to start the installation when the Ready to Install screen appears.

Figure 9. e-Link32 Keil Plugin Installation Ready to Install Page

Rev. 1.00

11 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

5. Once the installation has finished, a completion page will appear as shown below. Press the
Finish button to complete the installation process.

Using e-Link32 with Keil MDK-ARM

Figure 10. e-Link32 Keil Plugin Installation Completion


6. Open the Keil uVision4 project, and configure the debugging mode in the dialog Options for
Target Debug. Select Holtek e-Link32 Debugger.

Figure 11. Keil uVision4 Debug

Rev. 1.00

12 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

7. Open the dialog Options for Target Utilities, and select Holtek e-Link32 Debugger.

Using e-Link32 with Keil MDK-ARM

Figure 12. Keil uVision4 Utilities

8. Click the button Settings to open the Flash Download Setup dialog. Check the Programming
Algorithm settings.

Figure 13. Keil uVision4 Flash Download Setup

Rev. 1.00

13 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

9. Open the dialog Debug and check the e-Link32 settings.

Using e-Link32 with Keil MDK-ARM

Figure 14. Keil uVision4 e-Link32 Settings

Rev. 1.00

14 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

Using e-Link32 with IAR EWARM


For information on the IAR Embedded Workbench for ARM (EWARM), please refer to the IAR
EWARM quick start guide for HT32 series microcontrollers.
The following steps show how to install the e-Link32 plugin of IAR EWARM IDE.

Figure 15. e-Link32 IAR Plugin Installation Welcome Page

Rev. 1.00

15 of 23

November 30, 2011

Using e-Link32 with IAR EWARM

1. Obtain the latest version of the e-Link32 IAR plugin from the CD-ROM supplied by Holtek. The
required filename is similar to e-Link32_IAR_Plugin_Vnnn.exe where nnn represents the
version number.
2. Double-click on e-Link32_IAR_Plugin_Vnnn.exe and press the Next button on the dialog
below to continue.

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

3. The default installation path is C:\Program Files\Holtek HT32 Series\e-Link32 IAR Pulgin.
Select the Browse button to change the path and select the Next button to continue when the
path has been chosen.

Using e-Link32 with IAR EWARM

Figure 16. e-Link32 IAR Plugin Installation Select Installation Path

Rev. 1.00

16 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

4. Press the Install button to start the installation when the Ready to Install screen appears.

Using e-Link32 with IAR EWARM

Figure 17. e-Link32 IAR Plugin Installation Ready to Install Page

Rev. 1.00

17 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

5. Once the installation has finished, a completion page will appear as shown below. Press the
Finish button to complete the installation process.

Using e-Link32 with IAR EWARM

Figure 18. e-Link32 IAR Plugin Installation Completion

Rev. 1.00

18 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

6. Open the IAR EWARM project, and configure the debugging mode in the dialog
OptionsDebugger. In the Setup tab, choose RDI from the drop-down list named Driver.

Using e-Link32 with IAR EWARM

Figure 19. IAR EWARM Debugger

Rev. 1.00

19 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

7. Select RDI in the Category list to display the RDI option page. Check the Manufacturer
RDI driver setting as e-Link32_rdi.dll.

Using e-Link32 with IAR EWARM

Figure 20. IAR EWARM RDI Driver

8. The RDI menu is added to the menu bar now.

Figure 21. IAR EWARM RDI Menu

Rev. 1.00

20 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

9. Click the Configure to open the e-Link32 RDI Configuration dialog. Check the e-Link32
RDI settings.

Using e-Link32 with IAR EWARM

Figure 22. IAR EWARM RDI Configuration

Rev. 1.00

21 of 23

November 30, 2011

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

e-Link32 Firmware Update


For e-Link32, the new versions of the Keil plugin may require an update of the firmware in the
e-Link32.
The following steps show how to update the firmware in the e-Link32.

Figure 23. Firmware Update Message

7. The window Build Output displays the update status.

Figure 24. Update Status for e-Link32

Rev. 1.00

22 of 23

November 30, 2011

e-Link32 Firmware Update

1. Install the new version of the e-Link32 Keil plugin.


2. Connect e-Link32 to the PC and target board.
3. Power up the board.
4. Open the Keil uVision4 project that configures the debugging mode as e-Link32.
5. Erase Flash to the target board.
6. Press the Yes button to start the update process.

32-bit ARM Cortex-M3 MCU


HT32F1251/51B/52/53

e-Link32 Firmware Update

Holtek Semiconductor Inc. (Headquarters)


No.3, Creation Rd. II, Science Park, Hsinchu, Taiwan
Tel: 886-3-563-1999
Fax: 886-3-563-1189
http://www.holtek.com.tw
Holtek Semiconductor Inc. (Taipei Sales Office)
4F-2, No. 3-2, YuanQu St., Nankang Software Park, Taipei 115, Taiwan
Tel: 886-2-2655-7070
Fax: 886-2-2655-7373
Fax: 886-2-2655-7383 (International sales hotline)
Holtek Semiconductor Inc. (Shenzhen Sales Office)
5F, Unit A, Productivity Building, No.5 Gaoxin M 2nd Road, Nanshan District, Shenzhen, China 518057
Tel: 86-755-8616-9908, 86-755-8616-9308
Fax: 86-755-8616-9722
Holtek Semiconductor (USA), Inc. (North America Sales Office)
46729 Fremont Blvd., Fremont, CA 94538, USA
Tel: 1-510-252-9880
Fax: 1-510-252-9885
http://www.holtek.com
Copyright 2011 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time of publication. However,
Holtek assumes no responsibility arising from the use of the specifications described. The applications
mentioned herein are used solely for the purpose of illustration and Holtek makes no warranty or
representation that such applications will be suitable without further modification, nor recommends the use
of its products for application that may present a risk to human life due to malfunction or otherwise. Holtek's
products are not authorized for use as critical components in life support devices or systems. Holtek reserves
the right to alter its products without prior notification. For the most up-to-date information, please visit our
web site at http://www.holtek.com.tw.

Rev. 1.00

23 of 23

November 30, 2011

Вам также может понравиться