ARM VERSION 1.2 Datenblatt

Stöbern Sie online oder laden Sie Datenblatt nach Software ARM VERSION 1.2 herunter. ARM VERSION 1.2 Datasheet Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 176
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Developer Suite

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058DARM® Developer SuiteVersion 1.2Debug Target Guide

Seite 2 - ARM Developer Suite

Preface x Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DFeedbackARM Limited welcomes feedback on both the ARM Developer Suite, a

Seite 3 - Contents

ARMulator Reference 4-40 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.9 Event scheduling functionsThe following functions ena

Seite 4 - Chapter 5 Semihosting

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-414.10 General purpose functionsThe following are general p

Seite 5 - • Feedback on page x

ARMulator Reference 4-42 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DARMul_BusPeripAccessRegistrationThis structure and type a

Seite 6 - About this book

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-43PeripAccessCapabilityThis parameter defines the capabilit

Seite 7 - Preface

ARMulator Reference 4-44 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.10.2 ARMulif_ReadBusRangeYou must supply a breg structu

Seite 8

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-454.10.3 Hostif_RaiseErrorSeveral initialization and instal

Seite 9

ARMulator Reference 4-46 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.10.5 ARMul_AddCounterDescThe ARMul_AddCounterDesc() fun

Seite 10 - Feedback

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-474.10.6 ARMul_AddCounterValueThis function provides the fa

Seite 11 - Introduction

ARMulator Reference 4-48 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.10.7 ARMul_AddCounterValue64This function provides the

Seite 12 - 1.1 Debug target overview

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-494.10.8 ARMulif_StopExecutionThis function stops simulator

Seite 13

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 1-1Chapter 1 IntroductionThis chapter introduces the debug support facilities pro

Seite 14

ARMulator Reference 4-50 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.10.10 ARMulif_GetCoreClockFreqThis function returns the

Seite 15 - ARMulator Basics

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-514.10.11 ARMulif_InstallHourglassUse this function to inst

Seite 16 - 2.1 About ARMulator

ARMulator Reference 4-52 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.11 Accessing the debuggerThis section describes the inp

Seite 17 - 2.2 ARMulator components

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-534.11.2 Hostif_ConsolePrintThis function prints the text s

Seite 18

ARMulator Reference 4-54 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.11.4 Hostif_ConsoleReadCThis function reads a character

Seite 19 - 2.3 Tracer

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-554.11.6 Hostif_ConsoleReadThis function reads a string fro

Seite 20

ARMulator Reference 4-56 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.11.8 Hostif_DebugPauseThis function waits for the user

Seite 21

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-574.12 TracerThis section describes the functions provided

Seite 22

ARMulator Reference 4-58 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.12.3 Tracer_CloseThis function is called at the end of

Seite 23 - <newvalue>

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-594.13 Map filesThe type and speed of memory in a simulated

Seite 24

Introduction 1-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D1.1 Debug target overviewYou can debug your prototype software us

Seite 25

ARMulator Reference 4-60 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058Dwidthis the width of the data bus in bytes (that is, 1 fo

Seite 26 - 2.4 Profiler

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-61Example 2This example describes a typical embedded system

Seite 27

ARMulator Reference 4-62 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DReading the memory statisticsTo read the memory statistic

Seite 28 - 2.5 ARMulator cycle types

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-634.14 ARMulator configuration filesThis section contains t

Seite 29

ARMulator Reference 4-64 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.14.1 Predefined tagsBefore reading .ami files, ARMulato

Seite 30

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-65Example 4-2 Processors in a toolconf file{Processors {TR

Seite 31

ARMulator Reference 4-66 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DFinding the configuration for a selected processorARMulat

Seite 32 - $statistics

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-67If you want to change the cache or TCM size of a processo

Seite 33 - 2.6 Pagetable module

ARMulator Reference 4-68 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.15 ToolConfThis section contains the following subsecti

Seite 34

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-694.15.2 File formatThe following are typical ToolConf data

Seite 35

Introduction ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 1-3Execution halts at breakpoints, or when watchpoints are accessed.

Seite 36

ARMulator Reference 4-70 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DSpecifying childrenThere are two ways of specifying child

Seite 37 - 0x00000001

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-71A condition is evaluated from left to right, on the conte

Seite 38 - AccessPermissions

ARMulator Reference 4-72 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.15.4 SI units in a ToolConf databaseSome values can be

Seite 39 - 0x00030003

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-734.15.5 ToolConf_LookupThis function performs a lookup on

Seite 40 - 2.7 Default memory model

ARMulator Reference 4-74 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.15.6 ToolConf_CmpThis function performs a case-insensit

Seite 41 - $memstats

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-754.16 Reference peripheralsTwo reference peripherals are d

Seite 42

ARMulator Reference 4-76 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DInterrupt controller defined bitsThe FIQ interrupt contro

Seite 43

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-774.16.2 TimerThe base address of the timer, TimerBase, is

Seite 44

ARMulator Reference 4-78 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DTimer clear registersTimer clear registers are write-only

Seite 45 - 2.9 Semihosting

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-1Chapter 5 SemihostingThis chapter describes the semihosting mechanism. Semihos

Seite 46 - 2.10 Peripheral models

Introduction 1-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D

Seite 47

Semihosting 5-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.1 SemihostingSemihosting is a mechanism for ARM targets to commu

Seite 48

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-3The semihosting SWI interface is common across all debug agents pr

Seite 49

Semihosting 5-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DIf you are calling SWIs from assembly language code it is best to

Seite 50

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-55.2 Semihosting implementationThe functionality provided by semiho

Seite 51 - Writing ARMulator models

Semihosting 5-6 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.2.4 Multi-ICEWhen using Multi-ICE in default configuration, semi

Seite 52

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-7Multi-ICE handles the semihosted SWI and then examines the content

Seite 53

Semihosting 5-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.3 Adding an application SWI handlerIt can be useful to have both

Seite 54

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-9Caution It is essential that the actual position $semihosting_vect

Seite 55

Semihosting 5-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DFigure 5-2 Semihosting with breakpointThe error occurs because th

Seite 56

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-115.4 Semihosting SWIsThe SWIs listed in Table 5-1 implement the se

Seite 57 - 3.3 Building a new model

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-1Chapter 2 ARMulator BasicsThis chapter describes ARMulator, a collection of pr

Seite 58

Semihosting 5-12 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DNote When used with Angel, these SWIs use the serializer and the

Seite 59

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-13ReturnOn exit, r0 contains:• a nonzero handle if the call is succ

Seite 60

Semihosting 5-14 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.2 SYS_CLOSE (0x02)Closes a file on the host system. The handl

Seite 61 - Chapter 4

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-155.4.5 SYS_WRITE (0x05)Writes the contents of a buffer to a specif

Seite 62 - 4.1 ARMulator models

Semihosting 5-16 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.6 SYS_READ (0x06)Reads the contents of a file into a buffer.

Seite 63 - RDI_ModuleDesc *

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-175.4.7 SYS_READC (0x07)Reads a byte from the console.EntryRegister

Seite 64

Semihosting 5-18 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.9 SYS_ISTTY (0x09)Checks whether a file is connected to an in

Seite 65

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-195.4.11 SYS_FLEN (0x0C)Returns the length of a specified file.Entr

Seite 66

Semihosting 5-20 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.13 SYS_REMOVE (0x0E)Caution Deletes a specified file on the h

Seite 67

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-215.4.15 SYS_CLOCK (0x10)Returns the number of centiseconds since t

Seite 68

ARMulator Basics 2-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.1 About ARMulatorARMulator is an instruction set simulator.

Seite 69

Semihosting 5-22 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.17 SYS_SYSTEM (0x12)Passes a command to the host command-line

Seite 70

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-235.4.18 SYS_ERRNO (0x13)Returns the value of the C library errno v

Seite 71

Semihosting 5-24 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.19 SYS_GET_CMDLINE (0x15)Returns the command line used to cal

Seite 72 - 4.3 Basic model interface

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-255.4.20 SYS_HEAPINFO (0x16)Returns the system stack and heap param

Seite 73

Semihosting 5-26 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D5.4.21 SYS_ELAPSED (0x30)Returns the number of elapsed target tic

Seite 74

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-275.5 Debug agent interaction SWIsIn addition to the C library semi

Seite 75 - ARMul_CPInterface

Semihosting 5-28 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DAfter executing the SWI, the current link register will be r14_SV

Seite 76

Semihosting ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-295.5.2 angel_SWIreason_ReportException (0x18)This SWI can be calle

Seite 77

Semihosting 5-30 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D* next to values in Table 5-4 on page 5-29 indicates that the val

Seite 78

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. Glossary-1GlossaryThe items in this glossary are listed in alphabetical order, wi

Seite 79

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-32.2 ARMulator componentsARMulator consists of a series of mod

Seite 80

Glossary Glossary-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DARM eXtended Debugger The ARM eXtended Debugger (AXD) is the l

Seite 81

Glossary ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. Glossary-3Memory management unit Hardware that controls caches and acces

Seite 82

Glossary Glossary-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058Da debug agent controlling an ARM processor through hardware de

Seite 83

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. Index-1IndexThe items in this index are listed in alphabetical order, with symbol

Seite 84

IndexIndex-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DCounters, ARMulator 4-35CPRead, ARMulator function 4-10CPWrite, A

Seite 85

IndexARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. Index-3profiler.c ARMulator model 2-12, 3-3Protection unit 2-24, 2-25PU

Seite 86 - 4.5 Exceptions

IndexIndex-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DWriteWord, ARMulator function 4-39write, ARMulator function 4-25Z

Seite 87

ARMulator Basics 2-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.2.1 Configuring ARMulatorYou can configure some of the deta

Seite 88

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-52.3 TracerYou can use Tracer to trace instructions, memory ac

Seite 89 - 4.6 Events

ii Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DARM Developer SuiteDebug Target GuideCopyright © 1999-2001 ARM Limited. All ri

Seite 90

ARMulator Basics 2-6 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.3.2 Interpreting trace file outputThis section describes ho

Seite 91

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-7Trace memory (M lines)M lines indicate:• memory accesses, for

Seite 92

ARMulator Basics 2-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DTrace instructions (I lines)The format of the trace instructi

Seite 93 - 4.7 Handlers

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-9Trace registers (R lines)The format of the event (R) lines is

Seite 94

ARMulator Basics 2-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.3.3 Configuring TracerTracer has its own section in the AR

Seite 95

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-11TraceNonAccounted traces unaccounted RDI accesses to memory

Seite 96

ARMulator Basics 2-12 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.4 ProfilerProfiler is controlled by the debugger. For deta

Seite 97

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-132.4.1 Configuring ProfilerProfiler has its own section in pe

Seite 98 - 4.8 Memory access functions

ARMulator Basics 2-14 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.5 ARMulator cycle typesIn addition to simulating instructi

Seite 99

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-152.5.1 Uncached von Neumann coresTable 2-1 shows the meanings

Seite 100 - ARMulator Reference

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. iiiContentsARM Developer Suite Debug Target GuidePrefaceAbout this book ...

Seite 101

ARMulator Basics 2-16 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.5.2 Uncached Harvard coresTable 2-2 shows the meanings of

Seite 102

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-172.5.4 Cached cores with MMUs or PUs and AMBA AHB interfacesT

Seite 103 - PeripAccessCapability_Typical

ARMulator Basics 2-18 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.5.6 strongARM1Table 2-6 shows the meaning of cycle types r

Seite 104

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-192.6 Pagetable moduleThis section contains the following subs

Seite 105

ARMulator Basics 2-20 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.6.2 Controlling the MMU or PU and cacheThe first set of fl

Seite 106

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-212.6.4 Memory regionsThe rest of the Pagetables configuration

Seite 107

ARMulator Basics 2-22 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DCacheable specifies whether the region is to be marked as c

Seite 108

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-232.6.5 Pagetable module and memory management unitsProcessors

Seite 109

ARMulator Basics 2-24 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.6.6 Pagetable module and protection unitsProcessors such a

Seite 110 - CPUSPEED

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-25ARM940T PUFor an ARM940T, the PU is initialized as follows:•

Seite 111

Contentsiv Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D3.3 Building a new model ...

Seite 112 - 4.11 Accessing the debugger

ARMulator Basics 2-26 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.7 Default memory modelThe default memory model, flatmem, i

Seite 113

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-272.8 Memory modelling with mapfilesThis section contains the

Seite 114

ARMulator Basics 2-28 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.8.3 Selecting the mapfile memory modelUnder armsd, the map

Seite 115

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-292.8.5 Configuring the map memory modelYou can configure the

Seite 116 - 4.11.8 Hostif_DebugPause

ARMulator Basics 2-30 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DLate This does not start the decode until the S-cycle. In e

Seite 117 - 4.12 Tracer

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-312.9 SemihostingSemihosting provides code running on an ARM t

Seite 118

ARMulator Basics 2-32 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.10 Peripheral modelsARMulator includes several peripheral

Seite 119 - 4.13 Map files

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-332.10.3 Interrupt controllerThe interrupt controller is an im

Seite 120

ARMulator Basics 2-34 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.10.4 TimerThe timer is an implementation of the reference

Seite 121

ARMulator Basics ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-352.10.5 WatchdogUse Watchdog to prevent a failure in your pro

Seite 122 - Example 4-1

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. vPrefaceThis preface introduces the ARM debug targets and their reference documen

Seite 123

ARMulator Basics 2-36 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D2.10.6 Stack trackerThe stack tracker examines the contents

Seite 124

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-1Chapter 3 Writing ARMulator modelsThis chapter is intended to assist you in wr

Seite 125

Writing ARMulator models 3-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D3.1 The ARMulator extension kitYou can add extra mode

Seite 126

Writing ARMulator models ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-33.1.2 Supplied modelsARMulator is supplied with sourc

Seite 127

Writing ARMulator models 3-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DPeripheral modelsintc.c See Interrupt controller on

Seite 128 - 4.15 ToolConf

Writing ARMulator models ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-53.2 Writing a new peripheral modelThis section contai

Seite 129

Writing ARMulator models 3-6 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D3.2.3 Initialization, finalization, and state macrosT

Seite 130

Writing ARMulator models ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-73.3 Building a new modelTo build your new model:1. Ch

Seite 131 - #include

Writing ARMulator models 3-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D3.4 Configuring ARMulator to use a new modelARMulator

Seite 132 - MemorySize=2Gb

Writing ARMulator models ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-93.4.2 Editing default.ami and peripherals.amiThis des

Seite 133

Preface vi Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DAbout this bookThis book provides reference information for the ARM Dev

Seite 134

Writing ARMulator models 3-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D3.5 Configuring ARMulator to disable a modelYou can

Seite 135 - 4.16 Reference peripherals

ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-1Chapter 4 ARMulator ReferenceThis chapter gives reference information about AR

Seite 136

ARMulator Reference 4-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.1 ARMulator modelsARMulator comprises a collection of mo

Seite 137 - TimerBase

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-34.2 Communicating with the coreDuring initialization, all

Seite 138

ARMulator Reference 4-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.2.1 Mode numbersA number of the following functions take

Seite 139 - Semihosting

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-54.2.2 ARMulif_GetRegThis function reads a register for a s

Seite 140 - 5.1 Semihosting

ARMulator Reference 4-6 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.2.4 ARMulif_GetPC and ARMulif_GetR15This function reads

Seite 141

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-74.2.6 ARMulif_GetCPSRThis function reads the CPSR.SyntaxAR

Seite 142

ARMulator Reference 4-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.2.8 ARMulif_GetSPSRThis function returns the current con

Seite 143 - No_Semihost

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-94.2.10 ARMulif_ThumbBitThis function returns 1 if the core

Seite 144 - $semihosting_vector

Preface ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. viiTypographical conventionsThe following typographical conventions are u

Seite 145

ARMulator Reference 4-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.2.12 ARMulif_CPReadThis function calls the read method

Seite 146

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-114.2.13 ARMulif_CPWriteThis function calls the write metho

Seite 147

ARMulator Reference 4-12 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.3 Basic model interfaceThis section has the following s

Seite 148

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-134.3.1 Declaration of a private state data structureEach m

Seite 149 - 5.4 Semihosting SWIs

ARMulator Reference 4-14 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.3.2 Model initializationThe BEGIN_INIT() and END_INIT()

Seite 150

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-154.4 Coprocessor model interfaceThe coprocessor model inte

Seite 151 - On exit, r0 contains:

ARMulator Reference 4-16 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.4.1 ARMulif_InstallCoprocessorV5Use this function to re

Seite 152

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-174.4.2 LDCThis function is called when an LDC instruction

Seite 153

ARMulator Reference 4-18 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.4.3 STCThis function is called when an STC instruction

Seite 154

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-194.4.4 MRCThis function is called when an MRC instruction

Seite 155

Preface viii Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DFurther readingThis section lists publications from both ARM Limited

Seite 156

ARMulator Reference 4-20 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.4.5 MCRThis function is called when an MCR instruction

Seite 157 - L_tmpnam

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-214.4.6 MCRRThis function is called when an MCRR instructio

Seite 158

ARMulator Reference 4-22 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.4.7 MRRCThis function is called when an MRRC instructio

Seite 159

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-234.4.8 CDPThis function is called when a CDP instruction i

Seite 160

ARMulator Reference 4-24 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.4.9 readThis function enables a debugger to read a copr

Seite 161

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-254.4.10 writeThis function enables a debugger to write to

Seite 162

ARMulator Reference 4-26 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.5 ExceptionsThe following functions enable a model to s

Seite 163 - Example 5-1

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-27RDIPropID_ARMulProp_CycleDeltaWait the core for a specifi

Seite 164

ARMulator Reference 4-28 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DRDIPropID_ARMSignal_HighExceptionTRUE if the vector table

Seite 165

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-294.6 EventsARMulator has a mechanism for broadcasting and

Seite 166 - function call

Preface ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. ix• ARM/Thumb® Procedure Call Specification (SWS ESPC 0002). This is supp

Seite 167 - ADP_Stopped_ApplicationExit

ARMulator Reference 4-30 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DTable 4-2 Events from the ARM processor coreEvent name Wo

Seite 168

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-31Table 4-4 Debug eventsEvent name Word 1 Word 2 Event numb

Seite 169 - Glossary

ARMulator Reference 4-32 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.6.1 ARMulif_RaiseEventThis function invokes events. The

Seite 170

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-334.7 HandlersARMulator can be made to call back your model

Seite 171

ARMulator Reference 4-34 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.7.1 Exception handlerThis event handler is called whene

Seite 172

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-354.7.2 Unknown RDI information handlerThe unknown RDI info

Seite 173

ARMulator Reference 4-36 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058DRDICyclesModels that have declared a statistics counter b

Seite 174

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-374.7.3 Event handlerThis handler catches ARMulator events

Seite 175

ARMulator Reference 4-38 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D4.8 Memory access functionsThe memory system can be probe

Seite 176

ARMulator Reference ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-394.8.2 Writing to a specified addressThe following functio

Kommentare zu diesen Handbüchern

Keine Kommentare