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

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

H8S and H8/300H Monitor

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

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

x386 and x486 Monitor

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

Simulator for HC08/MSC08

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

Integration for CodeWright

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

ICE Emulator for 68000

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

Simulator for TriCore

EPROM/FLASH Simulator

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

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

ICE/FIRE Analyzer Programming Dialog

M32R Debugger and Trace

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

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

RTOS Debugger for RTX51 tiny

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

RTOS Debugger for OS-9

ICE Emulator for 68HC05 and 68HC08

OS Awareness Manual Sciopta

Training Simulator and Demo Software

RTOS Debugger for RTX-ARM

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

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

RTOS Debugger for ChibiOS/RT

Programming in the MAXQ environment

NEW CEIBO DEBUGGER. Menus and Commands

NEC 78K0- Family On-Chip Emulation

RTOS Debugger for CMX

ARM-ETM Programming Dialog

DS-XA In-Circuit Emulator

USER MANUAL NATHANIEL THWAITES-MCGOWAN

Simulator for 68K/ColdFire

Simulator for PowerPC

RTOS Debugger for MicroC/OS-III

RTOS Debugger for ThreadX

OS Awareness Manual OSE Epsilon

CodeWarrior U-Boot Debugging

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

_ V Renesas R8C In-Circuit Emulation. Contents. Technical Notes

OS Awareness Manual OSEK/ORTI

Embedded Systems Programming

RTOS Debugger for FreeRTOS

DS-251 In-Circuit Emulator

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

UMBC. contain new IP while 4th and 5th bytes contain CS. CALL BX and CALL [BX] versions also exist. contain displacement added to IP.

Experiment N o 1. 1 Introduction to Assembly Language Programming

Converter from GEL to PRACTICE

IN-CIRCUIT DEBUG (ICD) USER GUIDE

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

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

Course Introduction. Purpose: Objectives: Content: 27 pages 4 questions. Learning Time: 20 minutes

Megawin 8051 OCD ICE

1. Attempt any three of the following: 15

RTOS Debugger for MicroC/OS-II

EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University

KIT-VR4120-TP. User's Manual (Rev.1.01) RealTimeEvaluator

Integration for Visual Basic Interface

486DX Network Computer with TTL I/O, A/D, D/A, Ethernet, PC/104 SBC2486DX

Basic Concepts COE 205. Computer Organization and Assembly Language Dr. Aiman El-Maleh

Support for RISC-V. Lauterbach GmbH. Bob Kupyn Lauterbach Markus Goehrle - Lauterbach GmbH

EB-51 Low-Cost Emulator

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

C86 80C88 DS-186

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Embedded Software Development Tools Module No: CS/ES/36 Quadrant 1 e-text

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

An Introduction to Komodo

Hypervisor Awareness for Wind River Hypervisor

Digital Signal Processor

1 Do not confuse the MPU with the Nios II memory management unit (MMU). The MPU does not provide memory mapping or management.

HCS12 BDM Getting Started V4.3

Chapter 7 Central Processor Unit (S08CPUV2)

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP21

Microcontrollers. Microcontroller

Application Note 112 version 1.1 Installing a User program in EPROM on the Intel 8x930 4 Port USB Evaluation Board

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

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

Celeron EPIC Computer with GUI and Dual Ethernet SBC4685

RTOS Debugger for MQX

RTOS Debugger for RTXC Quadros

Renesas 78K/78K0R/RL78 Family In-Circuit Emulation

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

EE4380 Microprocessor Design Project

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

EUROScope lite 16FX Reference Manual

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

Computer Organization and Assembly Language. Lab Session 01

Computer Organization (II) IA-32 Processor Architecture. Pu-Jen Cheng

PART B UNIT II PART A

Microprocessor Architecture. mywbut.com 1

386EX PC/104 Computer with CompactFlash and PCMCIA SBC1390

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

ECE3120: Computer Systems Hardware & Software Development Tools

Transcription:

NS32000 Monitor TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... NS32000... NS32000 Monitor... 1 Brief Overview of Documents for New Users... 2 WARNING... 4 Quick Start of the 32000 ROM Monitor... 5 Troubleshooting... 7 Faq 7 Basics... 8 Monitor Features 8 Monitor Files 8 Address Layout 8 Vector Table 9 Configuration 9 General SYStem Settings and Restrictions... 10 General Restrictions 10 Memory Classes... 11 Support... 12 Available Tools 12 Compilers 12 Realtime Operation System 12 Debuggers 13 Products... 13 Product Information 13 Order Information 14 NS32000 Monitor 1

NS32000 Monitor Version 02-Apr-2014 E::w.d.l addr/line code label mnemonic comment { 514 if ( flags[ i ] ) SP:00096F 1C78C0000C80 cmpqb #0,0C80(r7) ; #0,3200(r7) SP:000975 0AC000002D beq 9A2 { 516 primz = i + i + 3; SP:00097A A7E17F03 addr 3(r7)[r7:b],r6 ; 3(r7)[r7:b], 517 k = i + primz; SP:00097E 67E13E addr r7[r6:b],r5 ; i[r6:b],k 518 while ( k <= SIZE ) E::w.v.f /l /c E::w.v.l %m %r %t while ( TRUE ) sieve() { (register int) i = 0 sieve(); (register int) primz = 0-000 sieve() (register int) k = 0 i = 0 (auto int) anzahl = 0 primz = 0 k = 0 anzahl = 0 Brief Overview of Documents for New Users Architecture-independent information: Debugger Basics - Training (training_debugger.pdf): Get familiar with the basic features of a TRACE32 debugger. T32Start (app_t32start.pdf): T32Start assists you in starting TRACE32 PowerView instances for different configurations of the debugger. T32Start is only available for Windows. General Commands (general_ref_<x>.pdf): Alphabetic list of debug commands. NS32000 Monitor 2 Brief Overview of Documents for New Users

Architecture-specific information: Processor Architecture Manuals : These manuals describe commands that are specific for the processor architecture supported by your debug cable. To access the manual for your processor architecture, proceed as follows: - Choose Help menu > Processor Architecture Manual. RTOS Debugger (rtos_<x>.pdf): TRACE32 PowerView can be extended for operating systemaware debugging. The appropriate RTOS manual informs you how to enable the OS-aware debugging. NS32000 Monitor 3 Brief Overview of Documents for New Users

WARNING NOTE: Do not connect or remove probe from target while target power is ON. Power up: Switch on emulator first, then target Power down: Switch off target first, then emulator NS32000 Monitor 4 WARNING

Quick Start of the 32000 ROM Monitor NOTE: Do not connect or remove probe from target while target power is ON Power up: Switch on emulator first, then target Power down: Switch off target first, then emulator Staringup the Rom Monitor is done as follows: 1. Select the device B: for the ROM Monitor. b: 2. Power the system down (optional). sys.d This instruction is necessary when the system is restarted. When the system is active while you try to reinitialize it, you get an error message. 3. Map the EPROM simulator. The mapping of the EPROM simulator is described in the section Mapping the EPROM simulator. 4. Load the monitor program. Usally the monitor program runs at address 0 in the ROM area. d.load.b rom32.bin /ny 5. Configure the Monitor program. d.s 0x402 0x1 ; 16bit EPROMs 6. Load the program. d.load.coff coff.x The format of the Data.LOAD command depends on the file format generated by the compiler. The corresponding options for all available compilers are listed in the compiler list. A detailed description of the Data.LOAD command is given in the Emulator Reference Manual. NS32000 Monitor 5 Quick Start of the 32000 ROM Monitor

7. Set the polarity of the Reset and NMI signal according to your target. The NMI signal is optional, it can be used to interrupt the program. x.respol - x.nmipol - x.nmibreak on 8. Start the ROM Monitor. If the RESET output of the ESI is not connected you must press the RESET button on your target after entering this command. sys.up A typical start sequence is shown below: ; for this example the 32016 is used ; the EPROM is in the addressrange 0x0--0x1ffff ; the RAM is in the addressrange 0x40000--0x5ffff b: sys.d winclear map.res map.rom 0x0--0x1ffff d.load.b rom32.bin /ny ; select the Debugger device ; switch the system down ; clear all windows ; map the EPROM simulator ; load the monitor program ; initialize the monitor configuration table d.s sp:0x402 %byte 1 d.load.coff test.x x.respol - x.nmipol - x.nmibreak on sys.up r.s pc main r.s sp 0x48000 ; set the EPROM bus width ; load the application program ; adapt the polarity of RES and NMI ; enables the connection of the NMI signal ; power the system up ; set the program counter The start up can be automated using the programming language PRACTICE. NS32000 Monitor 6 Quick Start of the 32000 ROM Monitor

Troubleshooting Faq EPROM Simulator Error on Data Modification Step or Breakpoint Fails Stepping Fails when Executing MOV SP,xxx Why crashes ROM monitor after modification of EPROM? Check that there is enough space left on the stack. See also "Restrictions for Stack Requirements". Why does single step or breakpoint not work? Check that there is enough space left on the stack before and after the execution of the instruction. See "Restrictions for Stack Requirements". Make sure that the single step and INT3 vector (1 + 3) are valid and point to the correct monitor entry. Why does stepping fail, when executing a MOV SP,xxx instruction? Check that there is enough space left on the stack before and after the execution of the instruction. See "Restrictions for Stack Requirements". Check that the value for the CP is within limits for the CPU and that the register space ist not beeing overwritten by the stack. See "Restrictions for Stack Requirements". No information available NS32000 Monitor 7 Troubleshooting

Basics Monitor Features The monitor requires no stack during startup and memory operations. A valid stack is only required for modifications in the EPROM while the monitor is running (Hot Patch) and for single step and go commands. This allows to use the monitor for testing not fully functional hardware, as only the EPROM access must work correctly to operate the monitor. The position independend code of the monitor allows to relocate the monitor during debugging. The NMI pin of the Eprom Simulator can be used to manually stop the target program. Monitor Files The 'rom32' monitor is for Eprom Simulator solutions, while the 'rom32e' monitor is used as foreground monitor for Emulators. By using a foreground monitor the target program can be single stepped without stopping the target processors interrupts or DMA transfers. Both monitors have the same source file 'rom68.asm'. This sourcefile should not be modified, it is only included for reference purposes. There are to possibilities to include the monitor in the application: loading the '.bin' by the Eprom Simulator or linking the '.src' file together with the application. The '.src' files contain only the monitor code, a corresponding configuration table must be included in the target program. Address Layout The Rom Monitor is freely relocatable in the whole address space. The communication area for the Eprom Simulator is located at the fixed address 1000 to 1FFF of the first EPROM. The CPU address depends on the bus width of the EPROMs. The following table shows the address ranges occupied by the communication port: bus width start address end address 8 bit EPROM_BASE+1000 EPROM_BASE+1FFF 16 bit EPROM_BASE+2000 EPROM_BASE+3FFF 32 bit EPROM_BASE+4000 EPROM_BASE+7FFF The monitor program consists of three parts: Vector Table Configuration Table Monitor Program Code NS32000 Monitor 8 Basics

The '.bin' and '.asm' files contain all three parts of the monitor. The address layout of the default monitor is as follows: 0x0000--0x03FF 0x0400--0x041F 0x0420--0x0FFF Vector Table Configurati on Table Monitor Code Vector Table For the first tests of a software, the '.bin' files can be loaded with vector and configuration table. When the vector table becomes part of the application, it is not loaded with the monitor. Instead the table is setup according to the application (the table may also reside in RAM). Some vectors must be setup to point into the monitor program code. The entry points are located at the beginning of the monitor. Configuration The configuration table of the monitor must always be located directly before the monitor code. The default location used in the binary files is 400 (hex). Processor core type (byte at offset 00H): 0 = default EPROM Bus Width (byte at offset 02H): 0 = 8 bit (default) 1 = 16 bit 2 = 32 bit Monitor Interrupt Level (byte at offset 04H) 0 = default NS32000 Monitor 9 Basics

General SYStem Settings and Restrictions tbd. General Restrictions Stack Memory All 32000-type ROM debuggers need memory in the supervisor stack area (SP1) to break correctly. If you get an invalid PC value after stopping the program, the SP1 register may be outside the memory area. This must be considered especially when debugging the startup code of an application. The ROM Monitor needs up to 48 bytes space on the stack for step, go and up to 256 bytes for EPROM modification (Hot Patch). The stack is not required for starting the Monitor and memory read or modify commands. NS32000 Monitor 10 General SYStem Settings and Restrictions

Memory Classes Memory Class Description UD UP SD SP USER-DATA USER-PROGRAM SUPERVISOR-DATA SUPERVISOR-PROGRAM U S D P User Supervisor Data Program C E Memory access by CPU Emulation memory access NS32000 Monitor 11 Memory Classes

Support Available Tools CPU ICE FIRE ICD DEBUG ICD MONITOR NS32CG16 YES YES NS32CG160 YES YES NS32FX16 YES YES ICD TRACE POWER INTEGRATOR INSTRUCTION SIMULATOR Compilers Language Compiler Company Option Comment C ICC32000 Introl Corporation ICOFF C GNX-C National Semiconductor Corporation COFF Realtime Operation System No RTOS supported. NS32000 Monitor 12 Support

Debuggers CPU Debugger Company Host ALL X-TOOLS / X32 blue river software GmbH Windows ALL CODEWRIGHT Borland Software Windows Corporation ALL CODE CONFIDENCE Code Confidence Ltd Windows TOOLS ALL CODE CONFIDENCE Code Confidence Ltd Linux TOOLS ALL EASYCODE EASYCODE GmbH Windows ALL ECLIPSE Eclipse Foundation, Inc Windows ALL RHAPSODY IN MICROC IBM Corp. Windows ALL RHAPSODY IN C++ IBM Corp. Windows ALL LDRA TOOL SUITE LDRA Technology, Inc. Windows ALL ATTOL TOOLS MicroMax Inc. Windows ALL VISUAL BASIC Microsoft Corporation Windows INTERFACE ALL LABVIEW NATIONAL Windows INSTRUMENTS Corporation ALL CODE::BLOCKS Open Source - ALL C++TEST Parasoft Windows ALL RAPITIME Rapita Systems Ltd. Windows ALL DA-C RistanCASE Windows ALL SIMULINK The MathWorks Inc. Windows ALL VECTORCAST/RSP Vector Software Windows ALL WINDOWS CE PLATF. BUILDER Windows Windows Products Product Information OrderNo Code LA-7522 MON-NS32000 Text ROM Monitor for NS32000 on ESI support NS32000 family includes HLL debugger, operation system, includes driver for WINDOWS NS32000 Monitor 13 Products

Order Information Order No. Code Text LA-7522 MON-NS32000 ROM Monitor for NS32000 on ESI NS32000 Monitor 14 Products