TRACE32 Documents... TRACE32 Instruction Set Simulators... Simulator for Z TRACE32 Simulator License Quick Start of the Simulator...

Similar documents
Simulator for H8/300, H8/300H and H8S

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... Z80... Z80 Monitor... 1

Simulator for HC08/MSC08

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... TriCore... TriCore Monitor... 1

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... NS NS32000 Monitor... 1

H8S and H8/300H Monitor

TRACE32 Documents... TRACE32 Instruction Set Simulators... Simulator for MIPS TRACE32 Simulator License Quick Start of the Simulator...

Simulator for TriCore

Simulator for PowerPC

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... MCS08... MCS08 Debugger... 1

Simulator for 68K/ColdFire

ICE Emulator for 68000

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... Blackfin... Blackfin Debugger General Note...

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... XC XC800 Debugger... 1

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... H8S... H8S/23x9 Debugger General Note... 3

Simulator for HC12/MCS12

x386 and x486 Monitor

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals XC... R8051XC Debugger General Note...

M32R Debugger and Trace

TRACE32 Documents... TRACE32 Instruction Set Simulators... Simulator for ARC... 1

ICE Emulator for Hitachi H8/300 and H8/500

ICE Emulator for 68HC05 and 68HC08

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... M8051EW... M8051EW Debugger General Note...

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... MMDSP... MMDSP Debugger General Note... 3

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... C166 Family... C166 Family Trace... 1

Simulator for Intel x86/x64

Training Simulator and Demo Software

ICE Emulator for 8051

NEW CEIBO DEBUGGER. Menus and Commands

Integration for CodeBlocks

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

EPROM/FLASH Simulator

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... MCS12... MCS12 Debugger... 1

RTOS Debugger for QNX - Run Mode

Native Process Debugger

Section 1 AVR Studio User Guide

Training Linux Debugging

Eclipse-Based CodeWarrior Debugger

Training Linux Debugging for Intel x86/x64

Run Mode Debugging Manual Symbian

OS Awareness Manual Sciopta

TRACE32 Getting Started... ICD In-Circuit Debugger Getting Started... ICD Introduction... 1

RTOS Debugger for RTX-ARM

ICE Emulator for Motorola 68360/349

TRACE32 Training...! Training ICD In-Circuit Debugger...! Training ICD Basics... 1

ICE Emulator for MC68020/30

RTOS Debugger for CMX

RTOS Debugger for Linux - Run Mode

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... ZSP... ZSP Debugger... 1

This chapter introduces how to use the emulator of TOPICE quickly.

MPLAB SIM. MPLAB IDE Software Simulation Engine Microchip Technology Incorporated MPLAB SIM Software Simulation Engine

Integration for CodeWright

CROSSWARE 7 V8051NT Virtual Workshop for Windows. q Significantly reduces software development timescales

ICE Emulator for 68HC11

The Road to CCSv4. Status Update

RTOS Debugger for ChibiOS/RT

Keil uvision development story (Adapted from (Valvano, 2014a))

Application Note Debug Cable XC800

Code Composer Studio v4. Introduction

USER MANUAL NATHANIEL THWAITES-MCGOWAN

TRACE32 Training... Training FIRE Emulator... Training FIRE Basics... 1

RTOS Debugger for MicroC/OS-III

Integration for exdi2 on Windows CE Platform Builder

Application Note Debug Cable C166

API for Auxiliary Processing Unit

ZAP Cross Debuggers for Motorola Microcontrollers

Programming in the MAXQ environment

OS Awareness Manual OSE Delta

H8 C-SPY. User Guide WINDOWS WORKBENCH VERSION

OS Awareness Manual OSEK/ORTI

Total Development Solution for the 8051

RTOS Debugger for ThreadX

M16C R8C PC7501 Emulator Debugger V Release Notes

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

Development Tools. 8-Bit Development Tools. Development Tools. AVR Development Tools

PICMICRO C-SPY. User Guide

Changing the Embedded World TM. Module 3: Getting Started Debugging

April 4, 2001: Debugging Your C24x DSP Design Using Code Composer Studio Real-Time Monitor

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Chapter 12. Microcontroller Application Development Tools

Hypervisor Awareness for Wind River Hypervisor

U-Boot and Linux Kernel Debug using CCSv5

NIOS II Instantiating the Off-chip Trace Logic

Exercise Session 6 Computer Architecture and Systems Programming

DoCD IP Core. DCD on Chip Debug System v. 6.02

As CCS starts up, a splash screen similar to one shown below will appear.

TRACE32 Training... Training ICE Emulator... Training ICE Basics... 1

Freescale Semiconductor, Inc.

ARM DS-5. Using the Debugger. Copyright 2010 ARM. All rights reserved. ARM DUI 0446A (ID070310)

EPM900 - Overview. Features. Technical Data

EUROScope lite 16FX Reference Manual

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... Andes... Andes Debugger... 1

RealTime-UnitTest On Object Code Level

Using a debugger. Segmentation fault? GDB to the rescue!

RTOS Debugger for FreeRTOS

Computer Organization and Assembly Language. Lab Session 01

Assembly Programming in Atmel Studio 7 Step by Step Tutorial

MPLAB X Debugging Techniques

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Resource 2 Embedded computer and development environment

Transcription:

Simulator for Z80+ TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents... TRACE32 Instruction Set Simulators... Simulator for Z80+... 1 TRACE32 Simulator License... 3 Quick Start of the Simulator... 4 Peripheral Simulation... 6 Troubleshooting... 7 FAQ... 7 Emulation Modes... 8 SYStem.Mode Establish the communication with the simulator 8 SYStem.CPU CPU type 8 General SYStem Settings and Restrictions... 9 SYStem.Option BASE Base address of internal registers 9 Using the MMU for Z180... 10 Memory Classes... 12 Support... 13 Available Tools 13 Compilers 14 Realtime Operation System 14 3rd Party Tool Integrations 15 Products... 16 Product Information 16 Order Information 16 Simulator for Z80+ 1

Simulator for Z80+ Version 06-Nov-2017 All general commands are described in the IDE Reference Guide (ide_ref.pdf) and General Commands Reference. Simulator for Z80+ 2

TRACE32 Simulator License [build 68859 - DVD 02/2016] The extensive use of the TRACE32 Instruction Set Simulator requires a TRACE32 Simulator License. For more information, see www.lauterbach.com/sim_license.html. Simulator for Z80+ 3

Quick Start of the Simulator To start the simulator, proceed as follows: 1. Select the device prompt for the ICD Debugger and reset the system. B:: RESet The device prompt B:: is normally already selected in the command line. If this is not the case, enter B:: to set the correct device prompt. The RESet command is only necessary if you do not start directly after booting TRACE32. 2. Specify the CPU specific settings. SYStem.CPU <cpu_name> The default values of all other options are set in such a way that it should be possible to work without modification. Please consider that this is probably not the best configuration for your target. Simulator for Z80+ 4

3. Enter debug mode. SYStem.Up This command resets the CPU and enters debug mode. After this command is executed it is possible to access memory and registers. 4. Load the program. Data.LOAD.format <filename> ; load program and symbols The format of the Data.LOAD command depends on the file format generated by the compiler. Refer to Supported Compilers to find the command that is necessary for your compiler. A detailed description of the Data.LOAD command and all available options is given in the reference guide. 5. Start-up example A typical start sequence is shown below. This sequence can be written to a PRACTICE script file (*.cmm, ASCII file format) and executed with the command DO <filename>. B:: WinCLEAR SYStem.CPU <cpu_name> SYStem.Up Data.LOAD.format <filename> Register.Set pc main PER.view ; Select the ICD device prompt ; Clear all windows ; Select CPU type ; Reset the target and enter ; debug mode ; Load the application ; Set the PC to function main ; Show clearly arranged peripherals ; in window *) Data.List ; Open source code window *) Register /SpotLight ; Open register window *) Frame.view /Locals /Caller Var.Watch %Spotlight flags ast ; Open the stack frame with ; local variables *) ; Open watch window for ; variables *) *) These commands open windows on the screen. The window position can be specified with the WinPOS command. Simulator for Z80+ 5

Peripheral Simulation For more information, see API for TRACE32 Instruction Set Simulator (simulator_api.pdf). Simulator for Z80+ 6

Troubleshooting No information available. FAQ No information available Simulator for Z80+ 7

Emulation Modes SYStem.Mode Establish the communication with the simulator Format: SYStem.Mode <mode> <mode>: Down NoDebug Go Up Default: Down. Selects the target operating mode. Down NoDebug Go Up The CPU is in reset. Debug mode is not active. Default state and state after fatal errors. The CPU is running. Debug mode is not active. Debug port is tristate. In this mode the target should behave as if the debugger is not connected. The CPU is running. Debug mode is active. After this command the CPU can be stopped with the break command or if any break condition occurs. The CPU is not in reset but halted. Debug mode is active. In this mode the CPU can be started and stopped. This is the most typical way to activate debugging. If the mode Go is selected, this mode will be entered, but the control button in the SYStem.state window jumps to the mode Up. SYStem.CPU CPU type Format: SYStem.CPU <mode> <mode>: Z80 Z180 Z181 Z182 Selects the processor type. The ROM debugger requires also a modification in the debug monitor for different processor types. Simulator for Z80+ 8

General SYStem Settings and Restrictions SYStem.Option BASE Base address of internal registers Format: SYStem.Option BASE <address> Defines the base address of the internal registers. Simulator for Z80+ 9

Using the MMU for Z180 This command and the commands MMU support the built-in MMU of the Z180 processors. The analyzer and all memory systems and breakpoints are based on the physical address. The display in the analyzer can be both physical or logical addresses. A logical address can have two formats: smaller than 64K or larger. Smaller addresses are assumed to be an logical address as seen by the CPU in the current MMU configuration. If an address is larger than 64K, the address bits A16 to A23 define the bank base address used for the BBR or CBR register. Logical above 64K addresses should only be used, if the MMU registers were already setup. The following schematic shows these relations for some examples: preset: CBAR=84, BBR=10, CBR=20 logical address: 5 0 4 5 6 7 (Hex) 16 bit CBR/BBR = 50 logical CPU address --> physical address: 54567 logical address: 0 0 1 5 6 7 (Hex) 16 bit current-mmu logical CPU address --> physical address: 1567 logical address: 0 0 4 5 6 7 (Hex) 16 bit current-mmu logical CPU address --> MMU Bank Area --> physical address: 04567 +BBR 10--- =14567 logical address: 0 0 c d e f (Hex) 16 bit current-mmu logical CPU address --> COMMON1 Area --> physical address: 0cdef +CBR +20--- =2cdef Simulator for Z80+ 10

To activate the correct address translation for breakpoints, the MMU command must be activated. The following example loads a banked application: mmu.off map.rom 0x0--0x7ffff mmu.on d.load.u iarz180.dbg The next example loads a banked application in two logical units: CBAR=84, CBR=0, BBR=10 or 20 mmu.reset symbol.reset map.rom 0x--0x7ffff mmu.create 0x104000--0x107fff mmu.create 0x204000--0x207fff mmu.on d.load.b bank1.cod 0x104000 /nosymbol d.load.b bank2.cod 0x204000 /nosymbol d.load.b common.cod 0x2000 /nosymbol d.load.sym bank1.sym /noclear symbol.reloc p:100000 0x4000--0x4fff d.load.sym bank2.sym /noclear symbol.reloc p:200000 0x4000--0x4fff d.load.sym common.sym /noclear Simulator for Z80+ 11

Memory Classes Memory Class D P C E A Description Data Program Memory access by CPU Emulation memory access Absolute (physical) memory access Simulator for Z80+ 12

Support Available Tools CPU ICE FIRE ICD DEBUG ICD MONITOR ICD TRACE POWER INTEGRATOR INSTRUCTION SIMULATOR HD64180R1 YES YES YES HD64180Z YES YES YES HD647180X0 YES YES HD648180W YES YES TMPZ84C00 YES YES YES TMPZ84C013 YES YES YES TMPZ84C015 YES YES YES Z80180 YES YES YES Z80181 YES YES YES Z80182 YES YES YES Z8400 YES YES YES Z84011 YES YES YES Z84013 YES YES YES Z84015 YES YES YES Z84C00 YES YES YES Z84C01 YES YES YES Z84C11 YES YES YES Z84C13 YES YES YES Z84C15 YES YES YES Z84C50 YES YES YES Z8S180 YES YES YES Simulator for Z80+ 13

Compilers Language Compiler Company Option Comment ASM HP-64000-ASM HP Source level debugging ASM MI-C SYM Source level debugging ASM AS SDSI SDS C MI-C SYM/LOC No type information C ICCZ80 IAR Systems AB UBROF Z180 and banking sup. C MCCZ80 Mentor Graphics IEEE no banking support Corporation C HT-Z80 Microchip Technology HITECH Inc. C UNIWARE-C SDSI SDS C CC Softools Inc. UBROF PLM ISIS-PL/M Intel Corporation SYM/LOC no type/local info Realtime Operation System Company Product Comment CMX Systems Inc. Mentor Graphics Corporation CMX-RTX VRTX80 Simulator for Z80+ 14

3rd Party Tool Integrations CPU Tool Company Host WINDOWS CE PLATF. - Windows BUILDER CODE::BLOCKS - - C++TEST - Windows ADENEO - X-TOOLS / X32 blue river software GmbH Windows CODEWRIGHT Borland Software Windows Corporation CODE CONFIDENCE Code Confidence Ltd Windows TOOLS CODE CONFIDENCE Code Confidence Ltd Linux TOOLS EASYCODE EASYCODE GmbH Windows ECLIPSE Eclipse Foundation, Inc Windows CHRONVIEW Inchron GmbH Windows LDRA TOOL SUITE LDRA Technology, Inc. Windows UML DEBUGGER LieberLieber Software Windows GmbH SIMULINK The MathWorks Inc. Windows ATTOL TOOLS MicroMax Inc. Windows VISUAL BASIC Microsoft Corporation Windows INTERFACE LABVIEW NATIONAL Windows INSTRUMENTS Corporation RAPITIME Rapita Systems Ltd. Windows RHAPSODY IN MICROC IBM Corp. Windows RHAPSODY IN C++ IBM Corp. Windows DA-C RistanCASE Windows TRACEANALYZER Symtavision GmbH Windows TA INSPECTOR Timing Architects GmbH Windows UNDODB Undo Software Linux VECTORCAST UNIT Vector Software Windows TESTING VECTORCAST CODE COVERAGE Vector Software Windows Simulator for Z80+ 15

Products Product Information OrderNo Code LA-8811 SIM-80 Text TRACE32 Instruction Set Simulator for Z80/Z18 TRACE32 Instruction Set Simulator Order Information Order No. Code Text LA-8811 SIM-80 TRACE32 Instruction Set Simulator for Z80/Z18 Simulator for Z80+ 16