ARM VERSION 1.2 Fiche technique

Naviguer en ligne ou télécharger Fiche technique pour Logiciel ARM VERSION 1.2. ARM VERSION 1.2 Datasheet Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 176
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Developer Suite

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

Page 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

Page 3 - Contents

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

Page 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

Page 5 - • Feedback on page x

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

Page 6 - About this book

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

Page 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

Page 8

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

Page 9

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

Page 10 - Feedback

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

Page 11 - Introduction

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

Page 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

Page 13

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

Page 14

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

Page 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

Page 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

Page 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

Page 18

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

Page 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

Page 20

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

Page 21

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

Page 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

Page 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

Page 24

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

Page 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

Page 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

Page 27

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

Page 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

Page 29

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

Page 30

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

Page 31

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

Page 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

Page 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

Page 34

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

Page 35

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

Page 36

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

Page 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

Page 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

Page 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

Page 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

Page 41 - $memstats

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

Page 42

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

Page 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

Page 44

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

Page 45 - 2.9 Semihosting

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

Page 46 - 2.10 Peripheral models

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

Page 47

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

Page 48

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

Page 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

Page 50

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

Page 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

Page 52

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

Page 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

Page 54

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

Page 55

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 68

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 78

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

Page 79

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

Page 80

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

Page 81

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

Page 82

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

Page 83

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

Page 84

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

Page 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

Page 86 - 4.5 Exceptions

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

Page 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

Page 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

Page 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

Page 90

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

Page 91

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

Page 92

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

Page 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

Page 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

Page 95

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

Page 96

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

Page 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

Page 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

Page 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

Page 100 - ARMulator Reference

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

Page 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

Page 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

Page 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

Page 104

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

Page 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

Page 106

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

Page 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

Page 108

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

Page 109

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

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

Page 111

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

Page 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

Page 113

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

Page 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

Page 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

Page 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

Page 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

Page 118

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

Page 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

Page 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

Page 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

Page 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

Page 123

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

Page 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

Page 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

Page 126

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

Page 127

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

Page 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

Page 129

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

Page 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

Page 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

Page 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

Page 133

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

Page 134

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

Page 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

Page 136

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

Page 137 - TimerBase

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

Page 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

Page 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

Page 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

Page 141

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

Page 142

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

Page 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

Page 144 - $semihosting_vector

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

Page 145

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

Page 146

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

Page 147

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

Page 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

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

Page 150

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

Page 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

Page 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

Page 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

Page 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

Page 155

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 162

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

Page 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

Page 164

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

Page 165

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

Page 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

Page 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

Page 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

Page 169 - Glossary

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

Page 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

Page 171

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

Page 172

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

Page 173

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

Page 174

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

Page 175

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

Page 176

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

Commentaires sur ces manuels

Pas de commentaire