Introduction to HT-IDE3000 Micro-C development System Department.

Slides:



Advertisements
Similar presentations
Use of MPLab software Paul Cockshott. PIC KIT Get the kit Kits are locked in cupboard Get from lab supervisor Plug into the usb port on your computer.
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Getting started with MPLAB Launch MPLAB Set Toolbar as in the next slide by clicking the leftmost icon Open a new Source file by choosing [FILE][NEW] Type.
Creating a Dialog-Based Comet Windows Program Brian Levantine.
CS 450 MPX P ROJECT Introduction to Turbo C. W HY USE T URBO C? Many ANSI C compilers are available for free, however they lack certain features that.
Code Composer Department of Electrical and Computer Engineering
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Slide 1CPU Emulator Tutorial This program is part of the software suite that accompanies the book The Digital Core, by Noam Nisan and Shimon Schocken 2003,
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
Introduction Purpose Objectives Content Learning Time
WorkPad 4 Quick Start WorkPad 4 Quick Start  Business Optix brings the rigor and discipline of business modelling and design into.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Chapter 2 Software Tools and Assembly Language Syntax.
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
9000U Quick Guide Marketing & RMA Department XELTEK 8/28/2015.
Debugging applications, using properties Jim Warren – COMPSCI 280 S Enterprise Software Development.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
IT 211 Project Integration and Deployment Lab #11.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Creating a Web Site to Gather Data and Conduct Research.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training module provides an overview of optimization techniques used in.
ADAM2 Single Remocon MCU IDE User’s Manual S/W Integrated Development Environment - Assembler - Simulator - Code Wizard V1.0 Technical Sales Team, ETA.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Active-HDL Interfaces Debugging C Code Course 10.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Code Debugging Texas Instruments Incorporated University of Beira Interior.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Debugging Visual Basic.NET Programs ► ► Use debugging tools ► ► Set breakpoints and correct mistakes. ► ► Use a Watch and Local window to examine variables.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training module provides an overview of debugging features.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
CS320n –Visual Programming More LabVIEW Foundations.
1 Double Click to Edit. Installing Evernote 22 First, download the installation software. Open your favorite web browser and visit the Evernote Web site.
Using Simulator With Undertow Suite. Source environment variables For example, envsource has all the environment variables set up. You can change the.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
GDT Tips and Tricks. GDT Tips and Tricks Doug Evans GDT 2004 International User Conference – Evolving the Legacy July  Tucson, Arizona GDT Tips.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
Lab (6) Introduction to Assembly Language 1. Introduction Objectives : Learn EMU8086 installation EMU8086 environment Learn how to: Assemble instructions.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Programming and Debugging with the Dragon and JTAG
Lab 1: Using NIOS II processor for code execution on FPGA
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Computer Programming I
PRU-ICSS Programming with CCS
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
Using Visual Studio with C#
Important terms Black-box testing White-box testing Regression testing
Important terms Black-box testing White-box testing Regression testing
CIS16 Application Development Programming with Visual Basic
CPU Emulator Tutorial This program is part of the software suite
Software Setup & Validation
12th Computer Science – Unit 5
Workshop for Programming And Systems Management Teachers
How to install and manage exchange server 2010 OP Saklani.
Presentation transcript:

Introduction to HT-IDE3000 Micro-C development System Department

2003 Holtek MCU Product Seminar HT-ICE Features Real-time emulation Support data-sensitive breakpoint Support real-time conditional tracing External signals for breakpoints and tracing Allow internal/external oscillator Connect to PC via LPT or USB(coming soon)

2003 Holtek MCU Product Seminar HT-IDE3000 Features Section-based multiple sources programming Support mixed C & assembly(ASM) language Auto-relocation for code and data sections Comprehensive on-line help Support MCU Simulator & VPM LCD simulator (for both HT-ICE & simulator) Work for windows 95/98/2000/XP/ME

2003 Holtek MCU Product Seminar HT-IDE3000 installation(1) From CD click ‘ Setup HT-IDE3000 ’ button To install HT-IDE3000 V6.0 click ‘ HT-IDE3000 ’ button To install the latest Service Pack click ‘ Service Pack ’ button

2003 Holtek MCU Product Seminar

HT-IDE3000 installation(2) From Holtek’s web site Visit To install HT-IDE3000 V6.0 download ht-ide3000v6.exe & execute it To install the latest Service Pack download ht-ide3000spx.exe & execute it

Quick Start Step 0. Starting HT-IDE3000 Step 1. Creating a new project Step 2. Writing source programs Step 3. Adding source programs into the project Step 4. Building the project Step 5. Debugging the project Step 6. project Build OK

Step 0. Starting HT-IDE3000 Under windows platform, Select Start/Program Files/Holtek Development System/HT-IDE3000

Area code HT-IDE3000 System will ask you for some information when you start it first time.

HT-IDE3000 welcome Logo The welcome logo will be shown when you start HT-IDE3000 Click the mouse left button or wait 2 seconds to pass it

Welcome LOGO

Connection failure In the duration of running HT-IDE3000, the system will show this dialog while detecting a connection failure between the computer and the HT-ICE.

Connection success While starting HT-IDE3000, the system will show this dialog after the computer connect to the HT-ICE successfully.

Step 1. Creating a new project Select Project/New.

New Project Dialog To choose the position to save the project. To select the MCU item.

Project Option Dialog To setup options for Assembler and Linker

Mask Option Dialog To setup options for MCU.

Click OK, You have finished initializing the new project.

Step 2. Writing source programs HT-IDE3000 has a build-in text editor. To create a new source file Select File/New To save the source file Select File/Save As

2003 Holtek MCU Product Seminar Single program file All procedures and variables are defined in the same file. No external variables and procedures are allowed. Suits the simple program for the MCUs of small ROM size. Cannot be reused by another project.

2003 Holtek MCU Product Seminar Multiple program files Separate different modules into different files Use public/extern label for external procedure Use public/extern symbol for external variable A project consists of two or more files Advantages: Programs will be more readable. Program codes can be reusable. Reduce the build time for the project.

Step 3. Adding source programs into the project A project consists of one or more source program(s). Select Project/Edit command to add the files to the project.

Edit Project Dialog

2003 Holtek MCU Product Seminar Linking Library files Use Options/Project command to link library with the project

Step 4. Building the project Select Project/Build or Project/Rebuild All

Differences between Build and Rebuild All Rebuild All will compile all files in the project. Build will compile the dirty files only. A dirty file means that the file had been modified since the last build time. Select Project Assemble/Compile Assemble/Compile the.ASM/.C program in the active window.

The error messages will be shown in the output window while compiling/building the file/project. Double click on the message line, the system will automatically highlight the line of the program syntax error.

Step 5. Debugging the project If the project is free of syntax error, the system will download the program to the HT-ICE and show ‘Build OK’ You can use debug commands to debug the project.

Debug Commands(I) Go: Start running the program. Go to Cursor: Run the program and stop it if the cursor line is executed. Jump to Cursor: Set the program counter to the position of the cursor line. Stop: Stop the program. Stop Trace: Stop tracing. Reset: Execute a software Reset.

Debug Commands(II) Power-on Reset: Execute a software Power-on Reset. Reset Trace: Clear the trace buffer. Step Into: Execute an instruction. If a function call is meet, stop at the first instruction line of the function. Step Over: Execute an instruction. If a function call is meet, stop at the next line of the function call. Step Out: Execute the program and stop at the position indicated by the top stack level. Stepping: Stepping automatically.

Step 6. Project build OK The system will generate a.COD file if you select Mask type MCU (eg. HT48C10-1) The system will generate a.OTP file if you select OTP type MCU (eg. HT48R10A-1)

Windows of HT-IDE3000 RAM ROM Trace List Register Watch Stack Program Output

RAM window

ROM window

Trace List window

Register window Register window is dockable

Watch window Watch window is dockable

Stack window Stack window is dockable

Program window Program window is dockable

Output window Output window is dockable

Files and Building Process Source files (ASM/C) COD/OTP FileAssembler/CompilerLibrarian Listing F ile (LST) Object File (OBJ) Linker Map File (MAP) Task File (TSK) Library File (LIB) Option File (OPT) COD/OTP GeneratorOption Configurer Debug File (DBG)

Breakpoint(I) Code breakpoints Eg, To set the 21th line of program as breakpoint, Step1. Move the cursor to the 21th line. Step2. Select Debug\Breakpoints The location field shows.21 and the space selection is code, indicates the 21th line is to be set as breakpoint. Step 3. Click Add button, the new breakpoint will be added into the Breakpoint ListBox. Step 4. Be sure to click OK button before exit.

Breakpoint Dialog (code)

Breakpoint(II) Data breakpoints Step 1. Select Debug\Breakpoints Step 2. Enter the variable name in the location field, select the data space, enter 0FFh in the content field and check the write radio box. Indicate that the break condition is meet if the variable is written as 0FFh Step 3. Click Add button, the new breakpoint will be added into the Breakpoint ListBox Step 4. Be sure to click OK button before exit.

Breakpoint Dialog (data)

Trace Condition(I) Trace Mode Normal Trace Main Trace INT

Trace Condition(II) Trigger Mode No trigger Trigger at condition A Trigger at condition B Trigger at condition A or B Trigger at condition B after A Trigger when meets condition A k times Trigger at condition B after meet A k times

Start Forward 30%70% Stop Backward Trigger Logical View of Trace List

Trace Condition Dialog