Using HiTOP with the HOT16x Hands-On Training Materials



Similar documents
Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

Programming the On-Chip Flash on a phycore-xc161 phycore-xc167

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB

Using DAVE with MDK Version 5

An Introduction to MPLAB Integrated Development Environment

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

3. Programming the STM32F4-Discovery

STIM202 Evaluation Kit

Software Serial Port for ROM/RAM Monitor

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

EMBEDDED C USING CODEWARRIOR Getting Started Manual

Model 288B Charge Plate Graphing Software Operators Guide

Getting started with software and firmware environments for the STM32F0DISCOVERY kit

How To Develop A Toolstick

Lab Experiment 1: The LPC 2148 Education Board

Freescale Semiconductor, I

Korosi Monitoring System (KMS) Software Manual

Hitchhiker's Guide to CodeWarrior EE371, EE475 Fall 2005

Debugging Network Communications. 1 Check the Network Cabling

Nuvoton Nu-Link Debug Adapter User Manual

DRV8312-C2-KIT How to Run Guide

Using the HCS12 Serial Monitor on Wytec Dragon-12 boards. Using Motorola s HCS12 Serial Monitor on Wytec s Dragon-12 boards

Adapting the PowerPC 403 ROM Monitor Software for a 512Kb Flash Device

Ride7 for ARM. RAISONANCE Tools for the STRx and STM32 families. Overview and Getting Started

Current Cost Data Cable User Guide. Installing and configuring the data cable

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

ScanWin Installation and Windows 7-64 bit operating system

PMAfob Home Automation Demo

Animated Lighting Software Overview

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

How to setup a serial Bluetooth adapter Master Guide

Table of Contents. 1. Overview Materials Required System Requirements User Mode Installation Instructions..

MPLAB C18 C Compiler

Bootloader with AES Encryption

Getting Started with Embedded System Development using MicroBlaze processor & Spartan-3A FPGAs. MicroBlaze

Capacitive Touch Lab. Renesas Capacitive Touch Lab R8C/36T-A Family

5.4.8 Optional Lab: Managing System Files with Built-in Utilities in Windows 7

Config software for D2 systems USER S MANUAL

How To Add A Usb Secondary Ipo Bootloader To An Lpc23Xx Flash Device To A Flash Device

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

AN104 I NTEGRATING KEIL 8051 TOOLS INTO THE SILICON LABS IDE. 1. Introduction. 2. Key Points. 3. Create a Project in the Silicon Labs IDE

SLC 5/05 Processors Firmware/Operating System ControlFLASH Upgrade

Operating Instructions Serial Monitor ROBERT RIELE GmbH & Co KG

TestManager Administration Guide

Bluetooth HC-06 with serial port module Easy guide

Using the Communication Ports on the DG-700 and DG-500 Digital Pressure Gauges

CipherConnect is ready for purchase and downloadable via the Windows Marketplace for Mobile. Go on-line and browse the market for the applications:

Using Flow Control with the HEAD Recorder

TRACE32 Debugger Getting Started... ICD Tutorial About the Tutorial... 2

Mitsubishi Electric Q Series PLC Ladder Monitor. Operation Manual

DUKANE Intelligent Assembly Solutions

UM1969 User manual. Getting started with STM32F746G discovery software development tools. Introduction

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

ADDENDUM - Bluetooth interface Option Instructions for using Extech Printer with a Bluetooth device

Using Example Projects, Code and Scripts to Jump-Start Customers With Code Composer Studio 2.0

Newton Backup Utility User s Guide. for the Windows Operating System

EPIC 950 THERMAL TICKET PRINTER

ERIKA Enterprise pre-built Virtual Machine

DSO138 oscilloscope program upgrade method

FrontDesk Installation And Configuration

Tutorial for MPLAB Starter Kit for PIC18F

Assignment 09. Problem statement : Write a Embedded C program to switch-on/switch-off LED.

How to read this guide

BorderGuard Client. Version 4.4. November 2013

History of Revisions. Ordering Information

MaxQ Development Tools Guide

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

Migrating Application Code from ARM Cortex-M4 to Cortex-M7 Processors

PC Programming Manual KX-TA/TES/TEM824. Advanced Hybrid System. Model No.

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Creating a Project with PSoC Designer

Copyright 1999 by EPSON America, Inc. 3/99 Torrance, California, USA

Table of Contents. ARM Evaluation Board (AEB-1) Welcome Guide ARM DGI 0005D. Proprietary Notice

Connecting your Omega/BetaPAT PLUS to a PC via a USB

Project Manager Editor & Debugger

Programming Device Manual Booklet AVR Prog USB v2

ROYAL REGISTERLINK USER'S GUIDE

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

GE Sensing. SiCalPro. Monitor and control software. User manual - K0452

GIVE WINGS TO YOUR IDEAS TOOLS MANUAL

AVR Butterfly Training. Atmel Norway, AVR Applications Group

E-Blocks Easy Internet Bundle

CB-OLP425 DEVELOPMENT KIT GETTING STARTED

Maxtor OneTouch User's Guide

Lab 2-2: Exploring Threads

Installing PowerLink on Windows 7 64-bit

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers 1.0 For the Keil MCB2300

DIRECT INTERNET DATA. User s Guide

HTML Code Generator V 1.0 For Simatic IT Modules CP IT, IT, IT

drive atapi User s Guide Operating Your Zip Drive Zip Tips Iomega Tools Software Special Information for Windows NT, Windows 95, and Windows/DOS

IMPORTANT! CPD 8424R1

VCI - Virtual CAN Interface VCI-V2 Installation Manual

Installing Your POS Hardware

Colorfly Tablet Upgrade Guide

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

Guide to Installing BBL Crystal MIND on Windows 7

Getting Started Guide with WIZ550web

Creating a Webserver on the Nios development kit Stratix Edition board Enoch Hwang

Transcription:

HOT16x-4 An Add-On to the HOT16x Hands-On Training Materials for the C166 Family using the HiTOP Debugger (from Hitex; plus DAvE, the kitcon-16x Starter Kit, the Keil or Tasking C-Compiler, and an oscilloscope) This version is based on DAvE Version 1.0, Keil µvision2 V2.0, Keil C166 tool chain V4.0, Tasking EDE V2.1, Tasking C166 tool chain V6.0, 16-bit Starter Kit CD ROM V4.1. Please report any errors to axel.wolf@infineon.com 1

Contents (I) Introduction Introduction to HOT16x-4 Introduction to HOT16x HOT Overview HOT Add-On Overview Short Introduction to DAvE Short Introduction to Keil µvision2 Short Introduction to the Tasking Embedded Development Environment EDE 2

Contents (II) Using HiTOP with the HOT16x Hands-On Training Materials How to set up the used Hard- and Software Hints regarding DAvE and the Exercises How to use HiTOP with the Exercises from HOT16x-1 (using the Keil Compiler) How to use HiTOP with the Exercises from HOT16x-2* (using the Tasking Compiler) * in preparation 3

Introduction to HOT16x-4 HOT16x-4 is an add-on to the HOT16x-1 and HOT16x-2 training materials for the Infineon C166 family of 16-bit microcontrollers. While HOT16x-1 is using the integrated Keil debugger and HOT16x-2 is using the Tasking debugger CrossView Pro, HOT16x- 4 is using the HiTOP debugger from Hitex. HOT16x-4 will show you how to run the exercises that are described in HOT16x-1 and HOT16x-2* with HiTOP * in preparation 4

Introduction to HOT16x HOT16x is a Hands-On Training material created for the C166 microcontrollers, using the kitcon-16x Starter Kits the Keil µvision2 integrated development environment (IDE) including the C166 compiler, A166 Assembler, L166 Linker/Locator and Debugger (see HOT16x-1) or the Tasking Embedded Development Environment (EDE) including the C166 compiler, A166 Assembler, L166 Linker/Locator and the Tasking CrossView Pro Pro Debugger (see HOT16x-2) DAvE, the Digital Application Engineer from Infineon Microcontrollers an oscilloscope (for visualization purposes). A Windows95 or Windows NT PC (to be able to run DAvE) 5

Introduction to HOT16x (cont.) HOT16x shows the user from the scratch how to generate software for the C167CR with DAvE and the Keil or Tasking tool chain: There are several exercises included, small tasks to be solved using every peripheral of the microcontroller. The user creates a new project in DAvE and configures the device, following the detailed instructions. After having generated the code, the user - switches to Keil µvision2, or Tasking EDE, - creates a new project (or uses a pre-configured project), - includes the C files created by DAvE and the assembler startup file, - adds some User Code, - compiles, assembles, links and locates the project. 6

Introduction to HOT16x (cont.) After compilation with µvision2 or EDE, the user - switches to the integrated Keil debugger or CrossView Pro Debugger - connects to the kitcon-16x via bootstrap loader (loading the monitor), - loads, starts and debugs his example, - confirms his working program with a scope (screen shots are included in for most of the examples). 7

Introduction to HOT16x (cont.) HOT16x is made of two parts: An architectural overview introducing the C166 architecture and the one specific derivative in particular. The hands-on training part. In this part, the peripherals of the used microcontroller are described in detail followed by a dedicated example using this peripheral or a combination of already introduced peripherals. The first HOT16x example shows the user from the scratch how to generate software with the used tool chain, including the setup of the µvision2 or EDE project. The following examples in HOT16x-1 are based on an already prepared µvision2 project. The following examples in HOT16x-2 include the generation of a new EDE project for each exercise. 8

HOT Overview C166 Tools used Compiler, Assembler, Linker, Locator Debugger Keil µvision2 (Keil C166, A166, L166) Tasking EDE (Tasking C166, A166, L166) Keil Debugger in µvision2 Tasking CrossView Pro HOT161-1 (C161O) X - X - Name of Hands-On-Training HOT161RI-1 X HOT161CI-1 X - X - HOT163-1 X - X - HOT164-1 X - X - HOT165-1 X - X - - X - HOT167-1 (C167CR/CS) X - X - 9

HOT Overview (cont.) C166 Tools used Compiler, Assembler, Linker, Locator Debugger Keil µvision2 (Keil C166, A166, L166) Tasking EDE (Tasking C166, A166, L166) Keil Debugger in µvision2 Tasking CrossView Pro HOT161-2 (C161O) - X - X Name of Hands-On-Training HOT161RI-2 HOT161CI-2 HOT163-2 HOT164-2 HOT165-2 - - - - - X - X - X - X - X - X X X X X HOT167-2 (C167CR/CS) - X - X 10

HOT Add-On Overview C166 Tools used Compiler, Assembler, Linker, Locator Debugger Keil µvision2 (Keil C166, A166, L166) Tasking EDE (Tasking C166, A166, L166) Fast-view66 (PLS) Hitop (Hitex) HOT16x-3 X X X - Name of Add-On HOT16x-4 X (X)* - X HOT16x-5 (kitcon CAN/LCD) X X - (Flash Tools used) - (integrated Debugger) * in preparation 11

Short Introduction to DAvE DAvE is your Digital Application Engineer from Infineon Microcontrollers. DAvE can help you compare and evaluate the different members of the Infineon C500 (8-Bit) and C166 (16-Bit) families of microcontrollers and help you find the right chip for your embedded control application. DAvE can be your one-stop access point to all standard knowledge associated with Infineon embedded technology expertise by offering you context sensitive access to user's manuals, data sheets, application notes etc. directly in your development environment. DAvE can help you program the Infineon microcontroller you want to use in your project, by offering you intelligent wizards that help you configure the chip to work the way you need it and automatically generate C-level templates with appropriate access functions for all of the on chip peripherals and interrupt controls. More DAvE info at www.infineon.com/dave.html 12

Short Introduction to the Keil µvision2 Integrated Development Environment Keil µvision2: µvision2, the IDE from Keil Software, combines Project Management, Source Code Editing, and Program Debugging in one powerful environment. The Quick Start guide on the starter Kit CD ROM gives you the information necessary to use µvision2 for your own projects. It provides a step-by-step introduction of the most commonly used µvision2 features including: - Project Setup for the Make and Build Process - Editor facilities for Modifying and Correcting Source Code - Program Debugging and Additional Test Utilities More information is available on the Starter Kit CD ROM or at www.keil.com. 13

Short Introduction to the Tasking Embedded Development Environment (EDE) EDE: TASKING's Embedded Development Environment is a package of program building, editing, code generation and debugging tools that provides: - Accessible push-button control over a variety of development tasks spread over many tools - Tight integration of tools enabling a rapid edit-compile-debug process that leads to higher productivity by automating repetitive tasks C Compiler: The C 166 compiler is designed and built specifically for the 80C166 microcontroller family. This means you get a very efficient compiler that takes full advantage of the microcontroller's architecture without violating the ANSI standard. 14

Short Introduction to the Tasking Embedded Development Environment (EDE) (cont Assembler: The TASKING assembler is an integral part of the tool set but delivers features that enable it to be used on its own. It is supplied complete with linker/locator, librarian and object format utilities. Linker/Locator: The linker and locator is an essential part of the software building process that enables you to link and locate modules in target memory. More information is available on the Starter Kit CD ROM or at www.tasking.com. 15

Using HiTOP with the HOT16x Hands-On Training Materials How to set up your system: kitcon-16x HW setup see respective HOT16x material. How to set up your system: DAvE installation see respective HOT16x material. How to set up your system: Keil µvision2 installation see respective HOT16x material. How to set up your system: Tasking EDE installation see respective HOT16x material. How to set up your system: Exercise directory structure see respective HOT16x material. Hints regarding DAvE and the Exercises see respective HOT16x material. 16

How to set up your system: Hitex HiTOP installation Insert the Starter Kit CD into your CD ROM drive. If you d like to work with the C167 Starter Kit (kitcon-167) Run d:\cdrom\3rdtools\hitex\c166tool.s\sk167\install.exe If you d like to work with the C164 Starter Kit (kitcon-164): Run d:\cdrom\3rdtools\hitex\c166tool.s\sk164\install.exe If you d like to work with the C163 / C165 Starter Kit (kitcon- 163/165): Run d:\cdrom\3rdtools\hitex\c166tool.s\sk163\install.exe If you d like to work with the C161 Starter Kit: Run d:\cdrom\3rdtools\hitex\c166tool.s\sk161\install.exe Follow the instructions on the screen. The following text will assume that the HiTOP debugger is installed in the default directory c:\hitopwin\ Choose your COM port you intend to use During the installation process a program group named "Hitex C16x will be created, containing an icon named "HiTOP/win 17

How to set up your system: Hitex HiTOP installation (cont). Starting TELEMON Firmware: To make it possible for HiTOP to communicate with the board, it is necessary to load the corresponding monitor software into the flash memory of the KitCON board Please perform the procedure on the following pages (according to the type of kitcon board you would like to use) using the Phytec Flash Programming Tools 18

Hitex HiTOP installation (Programming the monitor into the Flash of kitcon-167) If you intend to use kitcon-167: Connect your evaluation board to a power supply and the PC In order to put the board in Flash programming mode, make sure that switch #1 of the blue DIP switches is switched to ON (older boards without DIP switches: close pins 1+2 of Jumper 2 (red)) press reset button S1 on kitcon-167 For COM1: Run flasht_1.bat in d:\cdrom\startkit\sk_167\flash\ For COM2: Run flasht_2.bat in d:\cdrom\startkit\sk_167\flash\ Press (2) to erase entire Flash-Area and (Y) for yes Press (4) - Load INTEL-Hexfile to prepare to download the Hexcode to the evaluation board Press F2 and enter the complete path of the hex-file: d:\cdrom\3rdtools\hitex\c166tool.s\sk167\telemon\standard.hex The Flash is being programmed. This may take several minutes. Press F1 and (Y) to exit Flashtool Put switch #1 of the blue DIP switches to the OFF position (older boards: remove the red jumper (Jumper 2, pins 1+2)) Push the reset button S1. 19

Hitex HiTOP installation (Programming the monitor into the Flash of kitcon-164) If you intend to use kitcon-164: Connect your evaluation board to a power supply and the PC In order to put the board in Flash programming mode: open blue Jumper 4, close pins 1+2 of Jumper 8 (red) press reset button S1 on kitcon-164 For COM1: Run flasht_1.bat in d:\cdrom\startkit\sk_164\flash\ For COM2: Run flasht_2.bat in d:\cdrom\startkit\sk_164\flash\ Press (2) to erase entire Flash-Area and (Y) for yes Press (4) - Load INTEL-Hexfile to prepare to download the Hexcode to the evaluation board Press F2 and enter the complete path of the hex-file: d:\cdrom\3rdtools\hitex\c166tool.s\sk164\telemon\standard.hex The Flash is being programmed. This may take several minutes. Press F1 and (Y) to exit Flashtool Remove the red jumper (Jumper 8, pins 1+2) Push the reset button S1. 20

Hitex HiTOP installation (Programming the monitor into the Flash of kitcon-163/165) If you intend to use kitcon-163/165: Use the Flash programming routines from Phytec by running the Hitex batch file Connect your evaluation board to a power supply and to PC In order to put the board in Flash programming mode: Open Jumper 2 at pins 1+2, close red boot Jumper 3 at 2+3 Press reset button S1 on kitcon-163/165 Open a DOS Window Switch to directory d:\cdrom\3rdtools\hitex\c166tool.s\sk163\telemon\ For COMx: Run monitor x (x=1..4) Press any key to continue Press (2) to erase entire Flash-Area and (Y) for yes Press (4) - Load INTEL-Hexfile to prepare to download the Hexcode to the evaluation board 21

Hitex HiTOP installation (Programming the monitor into the Flash of kitcon-163/165) (cont.) Press F2 and enter standard.hex The Flash is being programmed. This may take several minutes. Press F1 and (Y) to exit Flashtool Program ends with text please start HiTOP/win Debugger Move the red jumper (Jumper 3) to pins 1+2 and push the reset button S1 or disconnect and then reconnect the power supply. 22

Hitex HiTOP installation (Programming the monitor into the Flash of kitcon-161) If you intend to use kitcon-161: Use the Flash programming routines from Phytec by running the Hitex batch file Connect your evaluation board to a power supply and to PC (choose the right D-SUB connector!! (P1)) In order to put the board in Flash programming mode: Open Jumper 4, close Jumper 9 at 1+2 Press reset button S1 on kitcon-161 Open a DOS Window Switch to the directory d:\cdrom\3rdtools\hitex\c166tool.s\sk161\telemon\ For COMx: Run monitor x (x=1..4) Press any key to continue Press (2) to erase entire Flash-Area and (Y) for yes Press (4) - Load INTEL-Hexfile to prepare to download the Hexcode to the evaluation board 23

Hitex HiTOP installation (Programming the monitor into the Flash of kitcon-161) (cont.) Press F2 and enter kit161.hex The Flash is being programmed. This may take several minutes. Press F1 and (Y) to exit Flashtool Program ends with text please start HiTOP/win Debugger Move Jumper 9 to pins 2+3 and push the reset button S1 or disconnect and then reconnect the power supply. 24

Let s get started now! 25

How to use the HiTOP debugger with Keil µvision2 and kitcon-167 Select one of the exercises for the C167CR described in HOT167-1, for example Exercise 7GPT1_1 Start DAvE and perform the DAvE configurations described in the exercise, generate the code Start µvision2 and perform the µvision2 configurations described in the exercise. NOTE: BE SURE TO INCLUDE THE ASSEMBLER STARTUP FILE START.ASM Tell µvision2 to run the Hitex symbol preprocessor after make to create the appropriate symbol data base for HiTOP: Go to Project Options for Target Target 1 Go to Output tab After Make: Check box Run User Program 1 Enter the command to run the preprocessor for KEIL (sp166kl). Our Example: d:\cdrom\3rdtools\hitex\c166tool.s\sk167\splite\ sp166kl 7gpt1_1 -v -sc:\hot167_1\7gpt1_1\ (adjust the italic terms if you run another example) Click OK 26

How to use the HiTOP debugger with Keil µvision2 and kitcon-167 (cont.) Adjust Target Options in µvision2: Select Target Options: Go to Project Options for Target Target 1 Select External Memory configuration - Go to Target tab - External Memory #1: RAM: Start 0x6000, Size 0x1FFF - External Memory #2: ROM: Start 0x4000, Size 0x1FFF Click OK 27

How to use the HiTOP debugger with Keil µvision2 and kitcon-167 (cont.) Build the example (the Hitex symbol preprocessor will create a file called 7gpt1_1.htx) Start HiTOP by double clicking the HiTOP icon in the program group (or run it using the Programs menu when using Windows95 or Windows/NT 4.0). If you start HiTOP, the processor derivative support window will open up. If you want to use HiTOP s CAN Monitor, select C167CAN.SFR, then click Load If not, select C167.sfr in the window SFR-Files, then click Load After starting HiTOP, a script file is executed (this is only because of the demo version). A demo example is loaded. Execute File Unload. Go to File Load to download the program example.htx Select the correct directory first by clicking Filename (Our example: c:\hot167_1\7gpt1_1\...) 28

How to use the HiTOP debugger with Keil µvision2 and kitcon-167 (cont.) The program will be loaded and displayed in the program window. Make your oscilloscope connections Execute Setup Target Reset or press the TR -button to perform a Target Reset. Execute Go Go Until and enter main. Press Go Until button. The program will stop right before main(). Execute GO Run or press the button with the green light. Press the button with the red light to stop program execution The program will halt in the endless loop in main() 29

How to use the HiTOP debugger with Keil µvision2 and kitcon-164 Select one of the exercises for the C164CI described in HOT164-1, for example Exercise 4GPT1_1 Start DAvE and perform the DAvE configurations described in the exercise, generate the code Start µvision2 and perform the µvision2 configurations described in the exercise. NOTE: BE SURE TO INCLUDE THE ASSEMBLER STARTUP FILE START. Tell µvision2 to run the Hitex symbol preprocessor after make to create the appropriate symbol data base for HiTOP: Go to Project Options for Target Target 1 Go to Output tab After Make: Check box Run User Program 1 Enter the command to run the preprocessor for KEIL (sp166kl). Our Example: d:\cdrom\3rdtools\hitex\c166tool.s\sk164\splite\ sp166kl 4gpt1_1 -v -sc:\hot164_1\4gpt1_1\ (adjust the italic terms if you run another example) Click OK 30

How to use the HiTOP debugger with Keil µvision2 and kitcon-164 (cont.) Adjust Target Options in µvision2: Select Target Options: Go to Project Options for Target Target 1 Select External Memory configuration - Go to Target tab - External Memory #1: RAM: Start 0x84000, Size 0x1FFF - External Memory #2: ROM: Start 0x82000, Size 0x1FFF Select Linker Options: - Go to L166 Misc tab - Interrupt Vector Table Address: Enter 0x80000 (Put interrupt vector table to 0x80000) - Enter 080008h-08000Bh, 0800ACh-0800AFh in Reserve 1 box to reserve interrupt vector locations for Non Maskable Interrupt and Serial Interface Receive Interrupt for monitor use Click OK 31

How to use the HiTOP debugger with Keil µvision2 and kitcon-164 (cont.) Build the example (the Hitex symbol preprocessor will create a file called 4gpt1_1.htx) Start HiTOP by double clicking the HiTOP icon in the program group (or run it using the Programs menu when using Windows95 or Windows/NT 4.0). If you start HiTOP, the processor derivative support window will open up. If you want to use HiTOP s CAN Monitor, select C164CAN.SFR, then click Load If not, select C164.sfr in the window SFR-Files, then click Load After starting HiTOP, a script file is executed (this is only because of the demo version). A demo example is loaded. Execute File Unload. Go to File Load to download the program example.htx Select the correct directory first by clicking Filename (Our example: c:\hot164_1\4gpt1_1\...) 32

How to use the HiTOP debugger with Keil µvision2 and kitcon-164 (cont.) The program will be loaded and displayed in the program window. Make your oscilloscope connections Execute Setup Target Reset or press the TR -button to perform a Target Reset. Execute Go Go Until and enter main. Press Go Until button. The program will stop right before main(). Execute GO Run or press the button with the green light. Press the button with the red light to stop program execution The program will halt in the endless loop in main() 33

How to use the HiTOP debugger with Keil µvision2 and kitcon-163/165 Select one of the exercises for the C164/165 described in HOT163-1 or HOT165-1, for example Exercise 3GPT1_1 Start DAvE and perform the DAvE configurations described in the exercise, generate the code Start µvision2 and perform the µvision2 configurations described in the exercise. NOTE: BE SURE TO INCLUDE THE ASSEMBLER STARTUP FILE START.ASM Tell µvision2 to run the Hitex symbol preprocessor after make to create the appropriate symbol data base for HiTOP: Go to Project Options for Target Target 1 Go to Output tab After Make: Check box Run User Program 1 Enter the command to run the preprocessor for KEIL (sp166kl). Our Example: d:\cdrom\3rdtools\hitex\c166tool.s\sk163\splite\ sp166kl 3gpt1_1 -v -sc:\hot163_1\3gpt1_1\ (adjust the italic terms if you run another example) Click OK 34

How to use the HiTOP debugger with Keil µvision2 and kitcon-163/165 (cont.) Adjust Target Options in µvision2: Select Target Options: Go to Project Options for Target Target 1 Select External Memory configuration - Go to Target tab - External Memory #1: RAM: Start 0x44000, Size 0x1FFF - External Memory #2: ROM: Start 0x42000, Size 0x1FFF Select Linker Options: - Go to L166 Misc tab - Interrupt Vector Table Address: Enter 0x40000 (Put interrupt vector table to 0x40000) - Enter 040008h-04000Bh, 0400ACh-0400AFh in Reserve 1 box to reserve interrupt vector locations for Non Maskable Interrupt and Serial Interface Receive Interrupt for monitor use Click OK 35

How to use the HiTOP debugger with Keil µvision2 and kitcon-163/165 (cont.) Build the example (the Hitex symbol preprocessor will create a file called 3gpt1_1.htx) Start HiTOP by double clicking the HiTOP icon in the program group (or run it using the Programs menu when using Windows95 or Windows/NT 4.0). If you start HiTOP, the processor derivative support window will open up. Click Load. After starting HiTOP, a script file is executed (this is only because of the demo version). A demo example is loaded. Execute File Unload. Go to File Load to download the program example.htx Select the correct directory first by clicking Filename (Our example: c:\hot163_1\3gpt1_1\...) 36

How to use the HiTOP debugger with Keil µvision2 and kitcon-163/165 (cont.) The program will be loaded and displayed in the program window. Make your oscilloscope connections Execute Setup Target Reset or press the TR -button to perform a Target Reset. Execute Go Go Until and enter main. Press Go Until button. The program will stop right before main(). Execute GO Run or press the button with the green light. Press the button with the red light to stop program execution The program will halt in the endless loop in main() 37

How to use the HiTOP debugger with Keil µvision2 and kitcon-161 Select one of the exercises for the C161 described in HOT161-1, for example Exercise 1GPT1_1 Start DAvE and perform the DAvE configurations described in the exercise, generate the code Start µvision2 and perform the µvision2 configurations described in the exercise. NOTE: BE SURE TO INCLUDE THE ASSEMBLER STARTUP FILE START.ASM Tell µvision2 to run the Hitex symbol preprocessor after make to create the appropriate symbol data base for HiTOP: Go to Project Options for Target Target 1 Go to Output tab After Make: Check box Run User Program 1 Enter the command to run the preprocessor for KEIL (sp166kl). Our Example: d:\cdrom\3rdtools\hitex\c166tool.s\sk161\splite\ sp166kl 1gpt1_1 -v -sc:\hot161_1\1gpt1_1\ (adjust the italic terms if you run another example) Click OK 38

How to use the HiTOP debugger with Keil µvision2 and kitcon-161 (cont.) Adjust Target Options in µvision2: Select Target Options: Go to Project Options for Target Target 1 Select External Memory configuration - Go to Target tab - External Memory #1: RAM: Start 0x104000, Size 0x1FFF - External Memory #2: ROM: Start 0x102000, Size 0x1FFF Select Linker Options: - Go to L166 Misc tab - Interrupt Vector Table Address: Enter 0x100000 (Put interrupt vector table to 0x100000) - Enter 0100008h-010000Bh, 01000ACh-01000AFh in Reserve 1 box to reserve interrupt vector locations for Non Maskable Interrupt and Serial Interface Receive Interrupt for monitor use Click OK 39

How to use the HiTOP debugger with Keil µvision2 and kitcon-161 (cont.) Build the example (the Hitex symbol preprocessor will create a file called 1gpt1_1.htx) Start HiTOP by double clicking the HiTOP icon in the program group (or run it using the Programs menu when using Windows95 or Windows/NT 4.0). If you start HiTOP, the processor derivative support window will open up. Click Load. After starting HiTOP, a script file is executed (this is only because of the demo version). A demo example is loaded. Execute File Unload. Go to File Load to download the program example.htx Select the correct directory first by clicking Filename (Our example: c:\hot161_1\1gpt1_1\...) 40

How to use the HiTOP debugger with Keil µvision2 and kitcon-161 (cont.) The program will be loaded and displayed in the program window. Make your oscilloscope connections Execute Setup Target Reset or press the TR -button to perform a Target Reset. Execute Go Go Until and enter main. Press Go Until button. The program will stop right before main(). Execute GO Run or press the button with the green light. Press the button with the red light to stop program execution The program will halt in the endless loop in main() 41

How to use the HiTOP debugger with Tasking EDE and kitcon-16x Sorry, this section is still in preparation 42