ARM VERSION 1.2 Arkusz Danych

Przeglądaj online lub pobierz Arkusz Danych dla Oprogramowanie ARM VERSION 1.2. ARM VERSION 1.2 Datasheet Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 176
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - Developer Suite

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

Strona 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

Strona 3 - Contents

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

Strona 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

Strona 5 - • Feedback on page x

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

Strona 6 - About this book

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

Strona 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

Strona 8

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

Strona 9

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

Strona 10 - Feedback

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

Strona 11 - Introduction

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

Strona 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

Strona 13

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

Strona 14

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

Strona 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

Strona 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

Strona 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

Strona 18

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

Strona 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

Strona 20

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

Strona 21

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

Strona 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

Strona 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

Strona 24

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

Strona 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

Strona 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

Strona 27

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

Strona 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

Strona 29

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

Strona 30

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

Strona 31

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

Strona 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

Strona 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

Strona 34

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

Strona 35

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

Strona 36

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 41 - $memstats

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

Strona 42

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

Strona 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

Strona 44

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

Strona 45 - 2.9 Semihosting

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

Strona 46 - 2.10 Peripheral models

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

Strona 47

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

Strona 48

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

Strona 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

Strona 50

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

Strona 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

Strona 52

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

Strona 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

Strona 54

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

Strona 55

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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.

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 68

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 78

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

Strona 79

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

Strona 80

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

Strona 81

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

Strona 82

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

Strona 83

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

Strona 84

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

Strona 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

Strona 86 - 4.5 Exceptions

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

Strona 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

Strona 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

Strona 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

Strona 90

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

Strona 91

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

Strona 92

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

Strona 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

Strona 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

Strona 95

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

Strona 96

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

Strona 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

Strona 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

Strona 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

Strona 100 - ARMulator Reference

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

Strona 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

Strona 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

Strona 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

Strona 104

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

Strona 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

Strona 106

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

Strona 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

Strona 108

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

Strona 109

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

Strona 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:•

Strona 111

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

Strona 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

Strona 113

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 118

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 123

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

Strona 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

Strona 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

Strona 126

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

Strona 127

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

Strona 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

Strona 129

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

Strona 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

Strona 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

Strona 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

Strona 133

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

Strona 134

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

Strona 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

Strona 136

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

Strona 137 - TimerBase

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

Strona 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

Strona 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

Strona 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

Strona 141

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

Strona 142

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

Strona 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

Strona 144 - $semihosting_vector

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

Strona 145

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

Strona 146

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

Strona 147

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

Strona 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

Strona 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()

Strona 150

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 155

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 162

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

Strona 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

Strona 164

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

Strona 165

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

Strona 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

Strona 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

Strona 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

Strona 169 - Glossary

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

Strona 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

Strona 171

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

Strona 172

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

Strona 173

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

Strona 174

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

Strona 175

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

Strona 176

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

Komentarze do niniejszej Instrukcji

Brak uwag