Nuvoton 8051 Keil µVision Driver User Manual
2
Content OVERVIEW .............................................................................................................................................................. 3 System Requirement.................................................................................................................................................. 3 SUPPLIED FILES..................................................................................................................................................... 4 INSTALLATION...................................................................................................................................................... 4 DEBUGGING A NEW PROJECT............................................................................................................................ 7 Revision Histroy.......................................................................................................................................................11 Nuvoton License Agreement for Keil Add On-Component .....................................................................................11
Nuvoton 8051 Keil µVision Driver User Manual
3
OVERVIEW
The Nuvoton 8051 Keil µVision Driver allows the Keil µVision2, µVision3 and µVision4 IDEs to communicate
with Nuvoton on-chip debug logic.
In-system Flash memory programming integrated into the driver allows you to rapidly update target code. The
µVision2, µVision3, µVision4 IDEs can be used to start and stop program execution, set breakpoints, check
variables, inspect and modify memory contents, and single-step through programs running on your actual
target hardware.
This document describes how to install and use Nuvoton 8051 Keil µVision Driver with programs written using
Keil C/ASM tools.
System Requirement
Software: KEIL uVision2/uVision3/ uVision4
Hardware: Support NuLINK ICE bridge.
Supporting Chips:
ICE Chips Support Chips
W79E658 W79E658, W79E633, W79E632
W79E659 W79E659
W79E82J W79E825, W79E824, W79E823, W79E822, W79E804, W79E803,
W79E802, N79E825, N79E824
W79E83J W79E834, W79E833, W79E832
N79E35J N79E352
W79E21J W79E227, W79E226, W79E225, W79E217
N79E87J N79E875, N79E874
Nuvoton 8051 Keil µVision Driver User Manual
4
N79E23J
N79E855
SUPPLIED FILES
Delivered package contains a complete set of files, needed to run Nuvoton 8051 Keil µVision Driver inside
uVision2/uVision3/uVision4 interface. The following directories can be found after successful installation of
package:
.\C51\BIN\ : Contains Nuvoton 8051 Keil µVision Driver, the DLL Target driver file
INSTALLATION
Manual installation of Nuvoton 8051 Keil µVision Driver is no longer required, because package is delivered
as executable program, and all steps are performed automatically by setup program. The description
provided below is left for informational purposes.
In order to use Nuvoton 8051 Keil µVision Driver follow the steps:
� Install uVision2/uVision3/uVision4 and the C51 Compiler on your machine.
� Run Nuvoton 8051 Keil µVision Driver.exe program, then select the <Keil install path>. The new files
should appear inside <Keil install path>\C51\BIN, directories
PREPARING TO WORK WITH UVISION2/UVISION3/ UVISION4 INTERFACE
In order to run your application inside hardware using Nuvoton 8051 Keil µVision Driver follow the steps:
� Run �Vision2. Select ‘Project – New Project…’, the Create New Project dialog comes up. Input the new
project name and click the ‘OK’ button. The Select a CPU Data Base File dialog and Select Device for
Target ‘Target 1’ dialog should look like this:
Nuvoton 8051 Keil µVision Driver User Manual
5
� Select ‘Options for Target – Devices'. From the 'Database' list-box, select “Nuvoton 8051 Devices” which
is our devices database. Select required microcontroller type you actually have. If everything is right,
then the dialog should look like this:
� Select ‘Rebuild all target files’ to build the project.
� Select ‘Options for Target – Debug’. From the combo-box, select “Target ICE MCU” which is our USB
Nuvoton 8051 Keil µVision Driver. Make sure that the ‘Use:’ radio button is checked. If everything is
correct, then the dialog should look like this:
Select Target MCU
Nuvoton 8051 Keil µVision Driver User Manual
6
� Select ‘Options for Target – Utilities’. From the combo-box, select “Target ICE MCU”. Make sure that the
‘Use Target Driver for Flash Programming:’ radio button is checked. If everything is correct, then the
dialog should look like this:
2,Select it 3,Select Target MCU
4, Setup it
1
2, Select it 1
3, Select Target MCU
4
5, Select it
6
Nuvoton 8051 Keil µVision Driver User Manual
7
DEBUGGING A NEW PROJECT
This chapter describes how to use Nuvoton 8051 Keil µVision Driver with 8051 C/ASM application basing on
example project. It is assumed that the installation and configuration steps had been performed.
Please follow the steps below:
� Run �Vision2. Select ‘Project – New Project..’, the Create New Project dialog comes up. Input the
‘Test.uv2’ project and select Nuvoton ICE Chip devices, then add TEST.C into project to finish project
creating.
� Select ‘Build target’ to build the project. The build window shown above should report no warnings and
errors.
Nuvoton 8051 Keil µVision Driver User Manual
8
� Select ‘Download’ to download the program into flash.
� Start debugging by selecting 'Start/Stop Debug session', When hardware is properly configured, and
program successfully uploaded/downloaded, then the debugger window should look similarly to picture
below:
Rebuild All
Check it
Select it
Check Download pass
Nuvoton 8051 Keil µVision Driver User Manual
9
At this point debugging process is similar as in uVision2/uVision3 simulator. The program can be run, halted,
run step by step, breakpoints can be set/cleared. Variables can be watched, memory areas
read/written/modified.
NOTE:
Nuvoton’s ICE MCU support eight breakpoints, one reserve as temporary breakpoint for debugged command,
so user can utilize seven breakpoints.
Select debug mode
Nuvoton 8051 Keil µVision Driver User Manual
10
Update Config Bit
� In 'Target Option', Select Setup
� Set config bits and select “writer config”.(Note, it select your config and erase MCU, flash must
re-download flash).
Select Settings
Nuvoton 8051 Keil µVision Driver User Manual
11
Revision Histroy
Revision Description Date
V1.00 The first release for beta-site test. 2010/05/13
Nuvoton License Agreement for Keil Add On-Component
IMPORTANT-READ THIS AGREEMENT CAREFULLY
Nuvoton products are not designed, intended, authorized or warranted for use as components in equipment
or systems intended for surgical implantation, atomic energy control instruments, aircraft or spacecraft
instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for any
other applications intended to support or sustain life. Furthermore, Nuvoton products are not intended for
applications whereby failure could result or lead to personal injury, death or severe property or environmental
damage. Nuvoton customers using or selling these products for such applications do so at their own risk and
agree to fully indemnify Nuvoton for any damages resulting from their improper use or sales