Holtek e-Link32 User manual

e-Link32/e-Link32 Pro
User’s Guide
Revision: V1.30 Date: November 13, 2020

Rev. 1.30 2 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
Table of Contents
Table of Contents
1 Overview.................................................................................................................. 6
Introduction ............................................................................................................................ 6
Hardware Description ............................................................................................................ 7
Hardware Conguration......................................................................................................... 7
Dynamically Switching Power Conguration ......................................................................... 9
e-Link32/e-Link32 Pro Schematic Diagram ........................................................................... 9
2 MDK_ARM (KEIL) Setup and Use........................................................................ 13
e-Link32/e-Link32 Pro for Keil Installation ........................................................................... 13
e-Link32/e-Link32 Pro with Keil4 Setup and Use ................................................................ 20
e-Link32 Pro with Keil5 Setup and Use (No Support e-Link32)........................................... 22
3 IAR Setup and Use................................................................................................ 24
e-Link32/e-Link32 Pro for IAR Installation ........................................................................... 24
e-Link32/e-Link32 Pro with IAR EWARM Setup and Use.................................................... 30

Rev. 1.30 3 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
Table of Contents
List of Tables
List of Tables
Table 1. SWD 10-Pin Connector Pins....................................................................................................... 7
Table 2. Power Conguration – SWD/RESET/UART Interface Voltage determined by the Target Board
Power Supply.............................................................................................................................. 8
Table 3. Power Conguration – MCU with Independent IO Power Supply ............................................... 8
Table 4. Power Conguration – Target Board Power Supply Provided by e-Link32/e-Link32 Pro............ 8
Table 5. Power Supply Switch – J4........................................................................................................... 9

Rev. 1.30 4 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
List of Figures
List of Figures
Figure 1. e-Link32/e-Link32 Pro Debug Adapter Appearance .................................................................. 6
Figure 2. SWD 10-Pin Connector ............................................................................................................. 7
Figure 3. e-Link32 v1.0 (HT32F1654)..................................................................................................... 10
Figure 4. e-Link32 v1.0 (HT32F52341)....................................................................................................11
Figure 5. e-Link32 Pro v1.0 .................................................................................................................... 12
Figure 6. HT32_Setup_Keil_vxx.exe Installation Introduction ................................................................ 13
Figure 7. HT32_Setup_Keil_vxx.exe Installation Path............................................................................ 14
Figure 8. HT32_Setup_Keil_vxx.exe Installation Process ...................................................................... 14
Figure 9. Holtek e-Link32 USB Driver Installation Introduction............................................................... 15
Figure 10. Holtek e-Link32 USB Driver Installation Path ........................................................................ 15
Figure 11. Holtek e-Link32 USB Driver Installation Completion.............................................................. 16
Figure 12. Holtek e-Link32 Keil Plugin Old Version Uninstallation ......................................................... 16
Figure 13. Holtek e-Link32 Keil Plugin Installation Introduction.............................................................. 17
Figure 14. Holtek e-Link32 Keil Plugin Installation Path ......................................................................... 17
Figure 15. Holtek HT32 Keil Support Package Installation Introduction ................................................. 18
Figure 16. Holtek HT32 Keil Support Package Installation Path ............................................................ 18
Figure 17. Keil Installation Completion ................................................................................................... 19
Figure 18. e-Link32 Device Name .......................................................................................................... 19
Figure 19. e-Link32 Pro Device Name.................................................................................................... 20
Figure 20. Keil4 Debugger Selection ...................................................................................................... 20
Figure 21. Keil4 e-Link32 Setting Window.............................................................................................. 21
Figure 22. Keil4 e-Link32 Pro Setting Window ....................................................................................... 21
Figure 23. Keil4 - Flash Download Setup ............................................................................................... 22
Figure 24. Keil5 Debugger Selection ...................................................................................................... 22
Figure 25. Keil5 Debugger Setup ........................................................................................................... 23
Figure 26. Keil5 – Flash Download Setup .............................................................................................. 23
Figure 27. HT32_Setup_IAR_vxx.exe Installation Introduction .............................................................. 24
Figure 28. HT32_Setup_IAR_vxx.exe Installation Path.......................................................................... 25
Figure 29. HT32_Setup_IAR_vxx.exe Installation Process .................................................................... 25
Figure 30. Holtek e-Link32 USB Driver Installation Introduction............................................................. 26
Figure 31. Holtek e-Link32 USB Driver Installation Path ........................................................................ 26
Figure 32. Holtek e-Link32 USB Driver Installation Completion ............................................................. 27
Figure 33. Holtek e-Link32 IAR Plugin Old Version Uninstallation ......................................................... 27
Figure 34. Holtek e-Link32 IAR Plugin Installation Introduction.............................................................. 28
Figure 35. Holtek e-Link32 IAR Plugin Installation Path ......................................................................... 28
Figure 36. Holtek HT32 IAR Support Package Installation Introduction ................................................. 29
Figure 37. e-Link32 Device Name .......................................................................................................... 29
Figure 38. e-Link32 Pro Device Name.................................................................................................... 30
Figure 39. IAR Options ........................................................................................................................... 30

Rev. 1.30 5 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
List of Figures
List of Figures
Figure 40. IAR Debugger Selection ........................................................................................................ 31
Figure 41. IAR e-Link32 Debugger Setup............................................................................................... 32
Figure 42. IAR e-Link32 Pro Debugger Setup ........................................................................................ 33
Figure 43. IAR e-Link32 Debugger Function Table................................................................................. 33
Figure 44. IAR e-Link32 Pro Debugger Function Table .......................................................................... 33

Rev. 1.30 6 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
11 Overview
The purpose of this user’s guide is to familiarise users with the Holtek e-Link32/e-Link32 Pro
Debug Adapter. The guide includes information on how to setup and use the e-Link32/e-Link32
Pro with the Keil MDK-ARM and IAR EWARM.
Introduction
The Holtek e-Link32/e-Link32 Pro connects the target board (via Serial Wire) to the PC’s USB
port. Users can then program and debug their embedded programs on the target board.
The e-Link32/e-Link32 Pro 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 used to display the USB, ERROR and RUN status
▀ Single RESET button
▀ Serial communication with the target MCU (for e-Link32 Pro only)
Figure 1. e-Link32/e-Link32 Pro Debug Adapter Appearance

Rev. 1.30 7 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
1 Overview
Hardware Description
The e-Link32/e-Link32 Pro supports a Serial Wire Mode interface. There are only two pins,
SWCLK (Serial Wire Clock) and SWDIO (Serial Wire Debug Data Input/Output), which are used
for programming and debugging. However there are another two USB Virtual COM Ports for the
e-Link32 Pro Serial Communication (Note). The following illustration shows the debug connector.
2 84 6 10
1 7 9
35
Figure 2. SWD 10-Pin Connector
Table 1. SWD 10-Pin Connector Pins
Pin# Description Pin# Description
1 3.3V 2 SWDIO
3GND 4SWCLK
5 GND 6 Reserved
7NC (VCOM_RXD(Note))8NC (VCOM_TXD(Note))
9GND 10 Reset
Note: The serial communication function is only available for the e-Link32 Pro, Pin7 and Pin8 are NC
pins for the e-Link32.
Hardware Conguration
As the MCU has a wide operating voltage range, the SWD and other interface IO voltages of
the MCU may be different from the e-Link32/e-Link32 Pro which both operate at 3.3V. To
accommodate this problem a Level Shifter is integrated within the e-Link32/e-Link32 Pro to
handle dierent voltage level situations. However, users can also use dierent power supply modes
according to their various target board circuits and application purposes. For example:
▄SWD/RESET/UART interface voltage determined by the target board power supply (hardware
factory default value):
The VDD power supply on the SWD interface is supplied by the target board. The SWD, RESET
and UART interface IO voltages of the e-Link32/e-Link32 Pro will be processed by the Level
Shifter to ensure that their voltage level is the same as the target board.
▄MCU with independent IO power supply:
The SWD interface voltage is dierent from the RESET signal. For example, the SWD interface
operates at 1.8V while the RESET signal operates at 3.3V.

Rev. 1.30 8 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
▄Target board power supply provided by the e-Link32/e-Link32 Pro:
The VDD power supply on the SWD interface is supplied with 3.3V by the e-Link32/e-Link32
Pro. In this case, the e-Link32/e-Link32 Pro and the target board MCU will both operate at 3.3V.
Users must take care to ensure that the target board can operate at 3.3V and that the current
does not exceed the e-Link32/e-Link32 Pro allowed current. This conguration is usually used
to simplify the power supply mode during programming. Therefore, the target board does not
require an additional power supply.
The following content describes how to adjust the e-Link32 or e-Link32 Pro resistance jumper to
meet dierent power requirements.
▄SWD/RESET/UART interface voltage determined by target board power supply (hardware
factory default value):
The VDD (Pin 1) power supply on the SWD interface is supplied by the target board. The SWD,
RESET and serial communication (Note) logic voltages refer to the target board VDD voltage.
Table 2. Power Conguration – SWD/RESET/UART Interface Voltage determined by
the Target Board Power Supply
Resistor State Description
R19 Exist Factory default, 10kΩ resistor
R12 Non-exist Factory default
Note: The serial communication function is only available for the e-Link32 Pro.
▄MCU with independent IO power supply - for e-Link32 Pro only:
Similar to the previous conguration mode, the only dierence is that the RESET IO voltage
level is determined by the pull-high resistor of the target board nRST.
Table 3. Power Conguration – MCU with Independent IO Power Supply
Resistor State Description
R19 Non-exist Remove R19
R12 Non-exist Factory default
▄Target board power supply provided by the e-Link32/e-Link32 Pro:
The VDD (Pin 1) power supply on the SWD interface is provided with 3.3V by the e-Link32/
e-Link32 Pro. The SWD, RESET and serial interface (Note) communication logic voltages refer to
the e-Link32/e-Link32 Pro voltage.
Table 4. Power Configuration – Target Board Power Supply Provided by e-Link32/
e-Link32 Pro
Resistor State Description
R19 Exist Factory default, 10kΩ resistor
R12 Exist Add a 0Ω resistor
Note: The serial communication function is only available for the e-Link32 Pro.

Rev. 1.30 9 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
1 Overview
Dynamically Switching Power Conguration
Users can connect a switch on J4 to dynamically select the following power congurations.
Table 5. Power Supply Switch – J4
J4 Description
SWD/RESET/UART interface voltage determined by the target board power supply
Target board power supply provided by the e-Link32/e-Link32 Pro
e-Link32/e-Link32 Pro Schematic Diagram
This section shows the entire e-Link32 and e-Link32 Pro circuit diagrams.
▄e-Link32 v1.0
▄e-Link32 Pro v1.0 (HT32F1654)
▄e-Link32 Pro v1.0 (HT32F52341)

Rev. 1.30 10 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
USB Enum
Error
Busy
PA9
PA8
PA7
PA5
PA3
PA2
PB5
PB6
PB7
ICE_nRESET
ICE_nRESET
PB0
PB1
PA13
PA14
ICE_nRESET
SWDCLK
SWO
PA11
nRESET
PA0
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
PB0
PB1
PB2
PB3
PB4
PA6
PB5
SWDIO
PB15
PB14
PA12
PB13
PB12
PB2
PA1
PA15
PB6
PB7
PB15
PB14
PB13
PB12
+3V3
+3V3
+3V3
+3V3
+3V3
USB_5V
USB_5V+3V3
+3V3
+3V3
+3V3
+3V3 +3V3
+3V3
VCCB
ARM_VCC
+3V3
+3V3 VCCB
VCCB
ARM_VCC
+3V3
+3V3
C26 0.1uF
POWER
N.C.
C27
4.7uF
C9
0.1uF
+
C14
10uF
U4
SN74AVC1T45
1
5
3 4
6
2VCCA
DIR
A B
VCCB
GND
R2 33R
C12
4.7uF
C15
47pF
R27
10K
R22
10K
C5
0.1uF
R12 N.C.
5V D- D+ ID G
USB MINI B Connector
J1
1
2
3
4
7
5
6
8
9
U5
SN74AVC1T45
1
5
3 4
6
2VCCA
DIR
A B
VCCB
GND
R17 10K
R9
100K
R4
1.5K
R3 33R
C24 0.1uF
C18
0.1uF
C25 0.1uF
C16
47pF
C6
0.1uF
R1
1M
C4
0.1uF U2
HT45B0K
1
16
3
4
5
6
13
10
11
12
14
9
7
SDI
SDO
SCK
SCS
CLKI
INT
UDP
VDD
VDD
UDN
V33O
VSS
VSS
J3
1
2
3
4
5
D1
Blue-led
C2 20pF
R18
10K
R10 10K
C13
0.1uF
R23
10K
R14 0R
U3 HT1117-33
1
32
GND
INOUT
R5
N.C.
C3 20pF
R19
10K
D2
Red-led
C20
0.1uF
R16 0R
R13 100R
U6
SN74AVC1T45
1
5
3 4
6
2VCCA
DIR
A B
VCCB
GND
R6 470R
C1
4.7nF
R24 100R
C21
0.01uF
b
e
c
Q2
MMBT9012/MMBT8550
1
23
+
C19
10uF
R20 100R
Y1
12.000MHZ
R7 470R
D3
Green-led
R25 100R
J2
12
34
56
78
910
C22 0.1uF
C23 0.1uF
R28
1M
C11
0.1uF
R8 470R
R11 0R
R26 100R
R15 0R
S1 RESET
2 1
43
R21 1.5K
b
e
c
Q1
MMBT9013/MMBT8050
1
32
U1
HT32F1253
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
VSSA_2
PA0/ADC_IN0/GT1_ETI/GT0_CH3
PA1/ADC_IN1/GT0_CH2
PA2/ADC_IN2/UR_DCD/GT0_CH1
PA3/ADC_IN3/UR_DSR/GT0_CH0
PA4/ADC_IN4/UR_DTR/SPI_MOSI
PA5/ADC_IN5/UR_RI/SPI_MISO
PA6/ADC_IN6/UR_RTS/TXE/SPI_SCK
PA7/ADC_IN7/UR_CTS/SCK/SPI_SEL
PA8/UR_RX
PA9-BOOT0/UR_TX
PA10-BOOT1
VCPWR
VLDOOUT
VLDOIN
VSSLDO
nRST
VBAT
XTAL32KIN/PB8
XTAL32KOUT/PB9
RTCOUT/PB10-WAKEUP/GT0_ET1
PB11/CKOUT/GT0_CH3
PA11/I2C_SCL
PA12/I2C_SDA
SWDIO/PA13/GT0_CH2
SWCLK/PA14/GT0_CH1
TRACESWO/PA15/GT0_CH0
VDD33_2
VSS33_2
VSS33_3
PB12/SPI_SEL/UR_DCD/GT1_CH3
PB13/SPI_SCK/UR_DSR/GT1_CH2
PB14/SPI_MISO/UR_DTR/GT1_CH1
PB15/SPI_MOSI/UR_RI/GT1_CH0
XTALIN/PB0
XTALOUT/PB1
VDD18
VPLL
PB2/CN0/GT1_CH0
PB3/CP0/GT1_CH1
PB4/AOUT0/UR_RTS/TXE/GT1_CH2
PB5/CN1/GT1_CH3
PB6/CP1/GT1_ETI
PB7/AOUT1/UR_CTS/SCK/GT0_ETI
VDD33_1
VSS33_1
VDDA
VSSA
J4 N.C.
1
2
3
Figure 3. e-Link32 v1.0

Rev. 1.30 11 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
1 Overview
PA0
1
PA1
2
PA2
3
PA3
4
PA4
5
PA5
6
PA6
7
PA7
8
VDD33_1
9
VSS33_1
10
LDOOUT
13
LDOIN
14
VSSLDO
15
nRST
16
VBAT
17
PC13_XTAL32KIN
18
PC14_XTAL32KOUT
19
PC15_RTCOUT
20
PB14_XTALIN
21
PB15_XTALOUT
22
PD1/VDD33_2
23
PD2VSS33_2
24
PB12/USBDM
11
PB13/USBDP
12 PA8_BOOT0 25
PA9_BOOT1 26
PA10 27
TRACESWO_PA11 28
SWCLK_ PA12 29
SWDIO_PA13 30
PA14 31
PA15 32
VDD33_3 35
VSS33_3 36
PB0 33
PB1 34
PB2 37
PB3 38
PB4 39
PB5 40
PB6 41
PB7 42
PB8 43
PB9 44
PB10 45
PB11 46
VDDA 47
VSSA 48
HT32F165x
U1
HT32F1654_LQFP48
1
2
3
4
5
6
7
8
9
10
J2
SWD-10P
VDD_elink32
GND
W_RST
W_SWDIO
W_SWCLK
1
2
3
4
5
J3
ICE SWD
SWCLK
SWDIO
1R13
470
GND
GND
SWDIO
SWCLK
DC5V
5V D- D+ ID G
1
2
3
4
5
6
78
9
J1
USB MINI B
Earth_2 Earth_2
GND
GND
1
C1
0.1uF
1
C16
47pF
1
C15
47pF
GND
USBDM_elink
USBDP_elink
C8
10uF
XTALIN
XTALOUT
GND
LED1
LED2
LED3
W_RST
W_SWDIO
W_SWCLK
USBDM_elink
USBDP_elink
DIR1
DIR2
MOSI
MISO
SCK
DIR1
DIR2
MOSI
MISO
SCK
nRST_CTRL
GND
W_RST
Flash_CS
Flash_MISO
Flash_MOSI
Flash_SCK
VDD_elink32
VDD_elink32
VDD_elink32
VDD_elink32
VDD_TargetBoard
VDD_elink32
VDD_elink32
VDD_elink32
1
C14
10uF
1
C19
10uF
PA9_BOOT1
UR1_TX
UR1_RX
CS
1
SO
2
WP
3
GND
4SI 5
SCLK 6
HOLD 7
VCC 8
U8
MX25L8006E
FLASH
GND
GND
Flash_CS
Flash_MISO
Flash_MOSI
Flash_SCK
PA10_IAP
VDD_elink32
VDD_elink32
VDD_elink32
PA14
SWO
Short BOOT1 to
GND and Reset
MCU, can boot to
Bootloader
GND
The Level Shift VCCB
Default Use TargetBoard Power
Don' t configure P D1/PD2
as Output or Enable
Internal Pull Resistor
Blue
D1 Busy
Red
D2 Err
VDD_elink32
LED1
LED2
3
2
1
4
Vin Vout
GND
TAB
LM1117
U3 LM1117-33
DC5V
I/O1
1
GND
2
I/O2
3I/O3 4
VCC 5
I/O4 6
U2
TESDS5V0A
USBDP_elink USBDM_elink
Green
D3 USB
LED3
2
1 3
R22
100 (Fit 1-2)
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U4
SN74LVC1T45
VCCB
VCCB
VDD_elink32
VDD_elink32
VCCB
VDD_TargetBoard
VDD_elink32
1
R12
0 (NC)
1R11
0
DAP_TX
DAP_RX
GND
GND
VCCB
VCCB
VDD_elink32
VDD_elink32
VCCB
GND
12
S1
RESET/IAP
DAP_TX
DAP_RX
SWOPA14
UR1_RX
UR1_TX
DIR3
DIR3
1
R19
10k
VCCB
LED
Filter CAP.
Power
ESD Protector
VDD_elink32
VDD_elink32
VDD_elink32
SWD 10 Pin Connector
Level Sheft
Power Mode Option
Button Option
nRST_CTRL
Red
D4 (NC)
Power
GND
1
R23
10k
GND
1
C24
0.1uF
VDD_elink32
GND
GND
1
2
3
4
5
J4
Power SW
1
C13
0.1uF
1
C18
0.1uF
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U5
SN74LVC1T45
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U6
SN74LVC1T45
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U9
SN74LVC1T45
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U7
SN74LVC1T45
1
R27
10k
1
C23
0.1uF
1
C25
0.1uF
1
C26
0.1uF
1R16
10k
1
R15
10k
1
R10
10K
1
R9
100K
1
C22
0.1uF
1
C21
0.01uF
GND
GND
GND
GNDGND
GND
GND
GND
GND
GND
GND
GND
GND
1 2
C2 0.1uF
2 1
R14
10K
12
C3
0.1uF
12
C4
0.1uF
12
C5
0.1uF
12
C6
0.1uF
12
C7
0.1uF
2 1
R21
10K
1R28 1M
1
R2
27
1
R3
27
1R6
470
1R7
470
1R8
470
1
R5
470 (NC)
1R24 100
1R25 100
1R26 100
1R1 100
1R4 100
1R20 100
I/O1 1
I/O2 2
GND 3
Q1
TESDA5V0A_SOT23-3
GND
Use PB8 to identify H/W Type
Floating : Starter Kit
Gnd : e link32 Pro
Figure 4. e-Link32 v1.0 (HT32F1654)

Rev. 1.30 12 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
1
2
3
4
5
6
7
8
9
10
J2
SWD-10P
VDD_elink32
GND
W_RST
W_SWDIO
W_SWCLK
1
2
3
4
5
J3
ICE SWD
SWCLK
SWDIO
1R13
470
GND
GND
SWDIO
SWCLK
DC5V
5V D- D+ ID G
1
2
3
4
5
6
78
9
J1
USB MINI B
Earth_2 Earth_2
GND
GND
1
C1
0.1uF
1
C16
47pF
1
C15
47pF
GND
USBDM_elink
USBDP_elink
C8
10uF
XTAL IN
XTALOUT
GND
LED1
LED2
LED3
W_RST
W_SWDIO
W_SWCLK
USBDM_elink
USBDP_elink
DIR1
DIR2
MOSI
MISO
SCK
DIR1
DIR2
MOSI
MISO
SCK
nRST_CTRL
GND
W_RST
Flash_CS
Flash_MISO
Flash_MOSI
Flash_SCK
VDD_elink32
VDD_elink32
VDD_elink32
VDD_elink32
VDD_TargetBoard
VDD_elink32
VDD_elink32
VDD_elink32
1
C14
10uF
1
C19
10uF
PA9_BOOT1
UR1_TX
UR1_RX
CS
1
SO
2
WP
3
GND
4SI 5
SCLK 6
HOLD 7
VCC 8
U8
MX25L8006E
FLASH
GND
GND
Flash_CS
Flash_MISO
Flash_MOSI
Flash_SCK
PA10_IAP
VDD_elink32
VDD_elink32
VDD_
elink32
PA14
SWO
Short BOOT1 to
GND and Reset
MCU, can boot to
Bootloader
GND
The Level Shift VCCB
Default Use TargetBoard Power
Don't configure PD1/PD2
as Output or Enable
Internal Pull Resistor
Blue
D1 Busy
Red
D2 Err
VDD_elink32
LED1
LED2
3
2
1
4
Vin Vout
GND
TAB
LM1117
U3 LM1117-33
DC5V
I/O1
1
GND
2
I/O2
3I/O3 4
VCC 5
I/O4 6
U2
TESDS5V0A
USBDP_elink USBDM_elink
Green
D3 USB
LED3
2
1 3
R22
100 (Fit 1-2)
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U4
SN74LVC1T45
VCCB
VCCB
VDD_elink32
VDD_elink32
VCCB
VDD_TargetBoard
VDD_elink32
1
R12
0(NC)
1R11
0
DAP_TX
DAP_RX
GND
GND
VCCB
VCCB
VDD_elink32
VDD_elink32
VCCB
GND
12
S1
RESET/IAP
DAP_TX
DAP_RX
SWOPA14
UR1_RX
UR1_TX
DIR3
DIR3
1
R19
10k
VCCB
LED
Filter CAP.
Power
ESD Protector
VDD_elink32
VDD_elink32
VDD_elink32
SWD 10 Pin Connector
Level Sheft
Power Mode Option
Button Option
nRST_CTRL
Red
D4 (NC)
Power
GND
1
R23
10k
GND
1
C24
0.1uF
VDD_elink32
GND
GND
1
2
3
4
5
J4
Power SW
1
C13
0.1uF
1
C18
0.1uF
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U5
SN74LVC1T45
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U6
SN74LVC1T45
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U9
SN74LVC1T45
VCCA
1
GND
2
A
3B4
DIR 5
VCCB 6
U7
SN74LVC1T45
1
R27
10k
1
C23
0.1uF
1
C25
0.1uF
1
C26
0.1uF
1R16
10k
1
R15
10k
1
R10
10K
1
R9
100K
1
C22
0.1uF
1
C21
0.01uF
GND
GND
GND
GNDGND
GND
GND
GND
GND
GND
GND
GND
GND
1 2
C2 0.1uF
2 1
R14
10K
12
C3
0.1uF
12
C4
0.1uF
12
C5
0.1uF
12
C6
0.1uF
12
C7
0.1uF
2 1
R21
10K
1R28 1M
1
R2
27
1
R3
27
1R6
470
1R7
470
1R8
470
1
R5
470 (NC)
1R24 100
1R25 100
1R26 100
1R1 100
1R4 100
1R20 100
I/O1 1
I/O2 2
GND 3
Q1
TESDA5V0A_SOT23-3
GND
Use PB8 to identify H/W Type
Floating : Starter Kit
Gnd : elink32 Pro
PA0
1
PA1
2
PA2
3
PA3
4
PA4
5
PA5
6
PA6
7
PA7
8
PC4
9
PC5
10
CLDO
13
VDD_1
14
VSS_1
15
nRST
16
PB9
17
PB10_XTAL32KIN
18
PB11_XTAL32KOUT
19
PB12_RTCOUT
20
PB13_XTALIN
21
PB14_XTALOUT
22
PB15
23
PC0
24
USBDM
11
USBDP
12 PA8 25
PA9_BOOT 26
PA10 27
PA11 28
SWCLK_PA12 29
SWDIO_PA13 30
PA14 31
PA15 32
VDD_2 35
VSS_2 36
PB0 33
PB1 34
PB2 37
PB3 38
PB4 39
PB5 40
PC1 41
PC2 42
PC3 43
PB6 44
PB7 45
PB8 46
VDDA 47
VSSA 48
HT32F52341
U1
Figure 5. e-Link32 Pro v1.0 (HT32F52341)

Rev. 1.30 13 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
1 Overview
2 MDK_ARM (KEIL) Setup and Use
22 MDK_ARM (KEIL) Setup and Use
e-Link32/e-Link32 Pro for Keil Installation
The following steps show how to install the e-Link32/e-Link32 Pro for Keil:
▀ Double-click “HT32_Setup_Keil_vxx.exe” to open the Keil Boot program and press the “Yes”
button to continue.
Figure 6. HT32_Setup_Keil_vxx.exe Installation Introduction

Rev. 1.30 14 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
▀ The default installation path of the Keil Boot program is “C:\Program Files (x86)\HT32_Setup_
Keil”. Select the desired installation path and press the “Next” button to continue.
Figure 7. HT32_Setup_Keil_vxx.exe Installation Path
▀ Press the “Install” button to start the installation.
Figure 8. HT32_Setup_Keil_vxx.exe Installation Process

Rev. 1.30 15 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
2 MDK_ARM (KEIL) Setup and Use
▀ Once the installation has nished, the following screen will appear. Press the “Next” button to
install the “Holtek e-Link32 USB Driver”.
Figure 9. Holtek e-Link32 USB Driver Installation Introduction
▀ The default installation path of the Holtek e-Link32 USB Driver is “C:\Program Files (x86)\
Holtek HT32 Series\e-Link32 USB Driver”. Select the desired installation path and press the
“Next” button to install.
Figure 10. Holtek e-Link32 USB Driver Installation Path

Rev. 1.30 16 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
▀ Once the installation has nished, the following screen will appear. Press the “Finish” button to
enter the next Keil Plugin installation process.
Figure 11. Holtek e-Link32 USB Driver Installation Completion
▀ If the Holtek e-Link32 Keil Plugin has already been installed, users will be prompted to uninstall
any older versions. Press the “Yes” button to continue.
Figure 12. Holtek e-Link32 Keil Plugin Old Version Uninstallation

Rev. 1.30 17 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
2 MDK_ARM (KEIL) Setup and Use
▀ Once the uninstallation has finished in the previous step, a Holtek e-Link32 Keil Plugin
installation window will appear. Press the “Next” button to continue.
Figure 13. Holtek e-Link32 Keil Plugin Installation Introduction
▀ The Keil Plugin installation path is subject according to that of Keil4/Keil5. The default
installation path of the Keil4/Keil5 is “C:\Keil_xx”. Select the desired installation path and press
the “Next” button to install.
Figure 14. Holtek e-Link32 Keil Plugin Installation Path

Rev. 1.30 18 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
▀ Once the installation has nished, press the “Finish” button to enter the next Holtek HT32 Keil
Support Package installation process, then press the “Next” button to continue.
Figure 15. Holtek HT32 Keil Support Package Installation Introduction
▀ The Keil Support Package installation path is subject to that of the Keil4/Keil5. The default
installation path of the Keil4/Keil5 is “C:\Keil_xx”. Select the desired installation path and press
the “Next” button to install.
Figure 16. Holtek HT32 Keil Support Package Installation Path

Rev. 1.30 19 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
2 MDK_ARM (KEIL) Setup and Use
▀ Once the installation has nished, press the “Finish” button to enter. The completed window will
be displayed after which the “Finish” button should be selected to restart the computer.
Figure 17. Keil Installation Completion
▀ Connect the e-Link32/e-Link32 Pro to the PC’s USB port.
▀ Open the PC’s “Device Manager” to check the connection status of the e-Link32/e-Link32 Pro.
▀ If the e-Link32 is connected, a connection device named “Holtek e-Link32 Debug Interface” will
appear on the “Device Manager” window. This will conrm that the installation has been suc-
cessful.
Figure 18. e-Link32 Device Name

Rev. 1.30 20 of 34 November 13, 2020
e-Link32/e-Link32 Pro User’s Guide
2 MDK_ARM (KEIL) Setup and Use
▀ If the e-Link32 Pro is connected, a connection device named “HID-compliant device” will ap-
pear on the “Device Manager” window, and the corresponding Virtual COM Port will also be
found, conrming that the installation was successful.
Figure 19. e-Link32 Pro Device Name
e-Link32/e-Link32 Pro with Keil4 Setup and Use
▀
Open the Keil uVision4 project, click “Options for Target”, then click the “Debug” option to select
“Holtek e-Link32 Debugger” for e-Link32 or select “CMSIS-DAP Debugger” for e-Link32 Pro.
Figure 20. Keil4 Debugger Selection
This manual suits for next models
1
Table of contents