e-link32 quick start for holtek’s ht32 series …...figure 9. e-link32 keil plugin installation...

23
e-Link32 Quick Start for Holtek’s HT32 Series Microcontrollers Revision: V1.00 Date: �ove�e�0�011 �ove�e�0�011

Upload: others

Post on 29-Aug-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

e-Link32 Quick Start forHoltek’s HT32 Series Microcontrollers

Revision: V1.00 Date: �ove��e� �0� �011�ove��e� �0� �011

Page 2: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 � of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Table of Contents

Table of Contents1 Overview .................................................................................................................. 5

Int�oduction ............................................................................................................................ 5Ha�dwa�e Desc�iption ............................................................................................................ 6Flash Me�o�y P�og�a��ing ................................................................................................. 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

Page 3: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 � of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Table of Contents

List of Tables

List of TablesTable 1. e-Link32 Specifications .............................................................................................................. 6

Page 4: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 4 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

List of Figures

List of FiguresFigu�e 1. Holtek e-Link�� USB Inte�face Adapte� .................................................................................... 5Figu�e �. ARM SWD 10-Pin Connecto� ................................................................................................... 6Figu�e �. e-Link�� USB D�ive� Installation – Welco�e Page .................................................................. 7Figu�e 4. e-Link�� USB D�ive� Installation – Select Installation Path ...................................................... 8Figu�e 5. e-Link�� USB D�ive� Installation – Ready to Install Page ........................................................ 8Figu�e 6. e-Link�� USB D�ive� Installation – Co�pletion ........................................................................ 9Figu�e 7. e-Link�� Keil Plugin Installation – Welco�e Page ................................................................. 10Figu�e 8. e-Link�� Keil Plugin Installation – Select Installation Path ......................................................11Figu�e 9. e-Link�� Keil Plugin Installation – Ready to Install Page ........................................................11Figu�e 10. e-Link�� Keil Plugin Installation – Co�pletion ..................................................................... 1�Figu�e 11. Keil uVision4 – De�ug ........................................................................................................... 1�Figu�e 1�. Keil uVision4 – Utilities ......................................................................................................... 1�Figu�e 1�. Keil uVision4 – Flash Download Setup ................................................................................. 1�Figu�e 14. Keil uVision4 – e-Link�� Settings ......................................................................................... 14Figu�e 15. e-Link�� IAR Plugin Installation – Welco�e Page ............................................................... 15Figu�e 16. e-Link�� IAR Plugin Installation – Select Installation Path ................................................... 16Figu�e 17. e-Link�� IAR Plugin Installation – Ready to Install Page ..................................................... 17Figu�e 18. e-Link�� IAR Plugin Installation – Co�pletion ..................................................................... 18Figu�e 19. IAR EWARM – De�ugge� ..................................................................................................... 19Figu�e �0. IAR EWARM – RDI D�ive� .................................................................................................... �0Figu�e �1. IAR EWARM – RDI Menu ..................................................................................................... �0Figure 22. IAR EWARM – RDI Configuration ........................................................................................ �1Figu�e ��. Fi��wa�e Update Message .................................................................................................. ��Figu�e �4. Update Status fo� e-Link�� ................................................................................................... ��

Page 5: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 5 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Overview

List of Figures

1 OverviewThe 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.

IntroductionThe Holtek e-Link32 connects your target board (via Serial Wire) to PC’s 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

Page 6: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 6 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Overview

Hardware DescriptionThe 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.

42 6 8 10

31 5 7 9

Figure 2. ARM SWD 10-Pin Connector

Pin# Description Pin# Description1 �.�V � SWDIO

� G�D 4 SWCLK

5 G�D 6 TRACESWO

7 �C 8 �C

9 G�D 10 Reset

Flash Memory ProgrammingThe 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 SpecificationsPage Erase + Program + 31 KBytesSe�ial Wi�e Clock � MHz

Keil MDK-ARM

Flash P�og�a��ing 4 Sec

IAR EWARM

Flash P�og�a��ing 5 Sec

Page 7: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 7 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Overview

Installing the e-Link32 USB

Driver

2 Installing the e-Link32 USB DriverThe following steps show how to install the e-Link32 USB driver into the computer.

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.

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.

Page 8: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 8 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

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

Page 9: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 9 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Installing the e-Link32 USB

Driver

Installing the e-Link32 USB

Driver

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

Figure 6. e-Link32 USB Driver Installation – Completion

6. Connect the e-Link32 adapter to PC’s 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.

Page 10: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 10 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith Keil M

DK

-AR

M

3 Using e-Link32 with Keil MDK-ARMFor 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.

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.

Figure 7. e-Link32 Keil Plugin Installation – Welcome Page

Page 11: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 11 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith Keil M

DK

-AR

M

Using e-Link32 w

ith Keil M

DK

-AR

M

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.

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

Page 12: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 1� of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith Keil M

DK

-AR

M

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

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

Page 13: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 1� of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith Keil M

DK

-AR

M

Using e-Link32 w

ith Keil M

DK

-AR

M

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

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

Page 14: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 14 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith Keil M

DK

-AR

M

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

Figure 14. Keil uVision4 – e-Link32 Settings

Page 15: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 15 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith Keil M

DK

-AR

M

Using e-Link32 w

ith IAR

EWA

RM

4 Using e-Link32 with IAR EWARMFor 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.

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.

Figure 15. e-Link32 IAR Plugin Installation – Welcome Page

Page 16: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 16 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith IAR

EWA

RM

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.

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

Page 17: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 17 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith IAR

EWA

RM

Using e-Link32 w

ith IAR

EWA

RM

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

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

Page 18: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 18 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith IAR

EWA

RM

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

Figure 18. e-Link32 IAR Plugin Installation – Completion

Page 19: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 19 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith IAR

EWA

RM

Using e-Link32 w

ith IAR

EWA

RM

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

Figure 19. IAR EWARM – Debugger

Page 20: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 �0 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith IAR

EWA

RM

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

Figure 20. IAR EWARM – RDI Driver

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

Figure 21. IAR EWARM – RDI Menu

Page 21: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 �1 of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

Using e-Link32 w

ith IAR

EWA

RM

Using e-Link32 w

ith IAR

EWA

RM

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

Figure 22. IAR EWARM – RDI Configuration

Page 22: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 �� of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

e-Link32 Firmw

are Update

5 e-Link32 Firmware UpdateFor 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.

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.

Figure 23. Firmware Update Message

7. The window “Build Output” displays the update status.

Figure 24. Update Status for e-Link32

Page 23: e-Link32 Quick Start for Holtek’s HT32 Series …...Figure 9. e-Link32 Keil Plugin Installation – Ready to Install Page Rev. 1.00 1 of ove e 0 011 - it ARM Co tex -M MCU HT F1

Rev. 1.00 �� of �� �ove��e� �0� �011

��-�it ARM Co�tex™-M� MCUHT��F1�51/51B/5�/5�

e-Link32 Firmw

are Update

e-Link32 Firmw

are Update

Holtek Semiconductor Inc. (Headquarters)�o.�� C�eation Rd. II� Science Pa�k� Hsinchu� TaiwanTel: 886-�-56�-1999Fax: 886-�-56�-1189http://www.holtek.co�.tw

Holtek Semiconductor Inc. (Taipei Sales Office)4F-�� �o. �-�� YuanQu St.� �ankang Softwa�e Pa�k� Taipei 115� TaiwanTel: 886-�-�655-7070Fax: 886-�-�655-7�7�Fax: 886-�-�655-7�8� (Inte�national sales hotline)

Holtek Semiconductor Inc. (Shenzhen Sales Office)5F� Unit A� P�oductivity Building� �o.5 Gaoxin M �nd Road� �anshan Dist�ict� Shenzhen� China 518057Tel: 86-755-8616-9908� 86-755-8616-9�08Fax: 86-755-8616-97��

Holtek Semiconductor (USA), Inc. (North America Sales Office)467�9 F�e�ont Blvd.� F�e�ont� CA 945�8� USATel: 1-510-�5�-9880Fax: 1-510-�5�-9885http://www.holtek.co�

Copy�ight© �011 �y HOLTEK SEMICO�DUCTOR I�C.

The info��ation appea�ing in this Data Sheet is �elieved to �e accu�ate at the ti�e of pu�lication. Howeve�� Holtek assu�es no �esponsi�ility a�ising f�o� the use of the specifications desc�i�ed. The applications �entioned he�ein a�e used solely fo� the pu�pose of illust�ation and Holtek �akes no wa��anty o� representation that such applications will be suitable without further modification, nor recommends the use of its p�oducts fo� application that �ay p�esent a �isk to hu�an life due to �alfunction o� othe�wise. Holtek's p�oducts a�e not autho�ized fo� use as c�itical co�ponents in life suppo�t devices o� syste�s. Holtek �ese�ves the right to alter its products without prior notification. For the most up-to-date information, please visit our we� site at http://www.holtek.co�.tw.