Sign In
Upload
Manuals
Brands
ARM Manuals
Motherboard
Cortex-M3 DesignStart
ARM Cortex-M3 DesignStart Manuals
Manuals and User Guides for ARM Cortex-M3 DesignStart. We have
3
ARM Cortex-M3 DesignStart manuals available for free PDF download: Technical Reference Manual, User Manual
ARM Cortex-M3 DesignStart Technical Reference Manual (410 pages)
r2p0
Brand:
ARM
| Category:
Computer Hardware
| Size: 2 MB
Table of Contents
Table of Contents
5
Preface
20
About this Book
20
Key to Timing Diagram Conventions
23
Feedback
25
Chapter 1 Introduction
28
About the Processor
28
Components, Hierarchy, and Implementation
30
Figure 1-1 Cortex-M3 Block Diagram
31
Table
37
Execution Pipeline Stages
38
Figure 1-2 Cortex-M3 Pipeline Stages
38
Prefetch Unit
40
Branch Target Forwarding
41
Store Buffers
44
Product Revisions
45
About the DP
46
Chapter 2 Programmer's Model
50
About the Programmer's Model
50
Privileged Access and User Access
51
Registers
52
Figure 2-1 Processor Register Set
52
Table 2-1 Application Program Status Register Bit Assignments
54
Figure 2-2 Application Program Status Register Bit Assignments
54
Figure 2-3 Interrupt Program Status Register Bit Assignments
54
Table 2-2 Interrupt Program Status Register Bit Assignments
55
Table 2-3 Bit Functions of the EPSR
56
Figure 2-4 Execution Program Status Register
56
Data Types
58
Memory Formats
59
Figure 2-5 Little-Endian and Big-Endian Memory Formats
60
Instruction Set Summary
61
Table 2-4 16-Bit Cortex-M3 Instruction Summary
61
Table 2-5 32-Bit Cortex-M3 Instruction Summary
64
Chapter 3 System Control
73
Copyright © 2005-2008 ARM Limited. All Rights Reserved
73
Summary of Processor Registers
74
Table 3-1 NVIC Registers
74
Table 3-2 Core Debug Registers
74
Core Debug Registers
77
Table 3-3 Flash Patch Register Summary
78
Table 3-4 DWT Register Summary
79
Table 3-5 ITM Register Summary
81
Table 3-6 AHB-AP Register Summary
82
Table 3-7 Summary of Debug Interface Port Registers
82
Table 3-8 MPU Registers
83
Table 3-9 TPIU Registers
84
Table 3-10 ETM Registers
85
Chapter 4 Memory Map
89
About the Memory Map
90
Figure 4-1 Processor Memory Map
90
Table 4-1 Memory Interfaces
91
Table 4-2 Memory Region Permissions
92
Bit-Banding
93
Figure 4-2 Bit-Band Mapping
94
ROM Memory Table
95
Table 4-3 ROM Table
95
Chapter 5 Exceptions
98
About the Exception Model
98
Exception Types
100
Table 5-1 Exception Types
100
Exception Priority
102
Table 5-2 Priority-Based Actions of Exceptions
102
Table 5-3 Priority Grouping
104
Privilege and Stacks
105
Pre-Emption
107
Figure 5-1 Stack Contents after Pre-Emption
107
Table 5-4 Exception Entry Steps
108
Figure 5-2 Exception Entry Timing
109
Tail-Chaining
110
Figure 5-3 Tail-Chaining Timing
110
Late-Arriving
111
Figure 5-4 Late-Arriving Exception Timing
111
Exit
113
Table 5-5 Exception Exit Steps
113
Figure 5-5 Exception Exit Timing
114
Table 5-6 Exception Return Behavior
115
Resets
116
Table 5-7 Reset Actions
116
Table 5-8 Reset Boot-Up Behavior
117
Exception Control Transfer
120
Table 5-9 Transferring to Exception Processing
120
Setting up Multiple Stacks
121
Abort Model
123
Table 5-10 Faults
124
Table 5-11 Debug Faults
126
Table 5-12 Fault Status and Fault Address Registers
127
Activation Levels
128
Table 5-13 Privilege and Stack of Different Activation Levels
128
Table 5-14 Exception Transitions
128
Table 5-15 Exception Subtype Transitions
129
Flowcharts
130
Figure 5-6 Interrupt Handling Flowchart
130
Figure 5-7 Pre-Emption Flowchart
131
Figure 5-8 Return from Interrupt Flowchart
132
Chapter 6 Clocking and Resets
133
Clocking
134
Table 6-1 Cortex-M3 Processor Clocks
134
Table 6-2 Cortex-M3 Macrocell Clocks
134
Resets
136
Table 6-3 Reset Inputs
136
Cortex-M3 Reset Modes
137
Table 6-4 Reset Modes
137
Figure 6-1 Reset Signals
138
Figure 6-2 Power-On Reset
138
Figure 6-3 Internal Reset Synchronization
139
Chapter 7 Power Management
141
About Power Management
142
System Power Management
143
Table 7-1 Supported Sleep Modes
143
Figure 7-1 SLEEPING Power Control Example
144
Figure 7-2 SLEEPDEEP Power Control Example
145
Figure 7-3 WIC Mode Enable Sequence
147
Figure 7-4 Power down Timing Sequence
148
Figure 7-5 PMU, WIC, and Cortex-M3 Interconnect
149
Chapter 8 Nested Vectored Interrupt Controller
151
About the NVIC
152
NVIC Programmer's Model
153
Table 8-1 NVIC Registers
153
Figure 8-1 Interrupt Controller Type Register Bit Assignments
157
Table 8-2 Interrupt Controller Type Register Bit Assignments
158
Figure 8-2 Auxiliary Control Register Bit Assignments
158
Table 8-3 Auxiliary Control Register Bit Assignments
159
Figure 8-3 Systick Control and Status Register Bit Assignments
159
Table 8-4 Systick Control and Status Register Bit Assignments
160
Table 8-5 Systick Reload Value Register Bit Assignments
161
Figure 8-4 Systick Reload Value Register Bit Assignments
161
Figure 8-5 Systick Current Value Register Bit Assignments
161
Table 8-6 Systick Current Value Register Bit Assignments
162
Table 8-7 Systick Calibration Value Register Bit Assignments
162
Figure 8-6 Systick Calibration Value Register Bit Assignments
162
Table 8-8 Interrupt Set-Enable Register Bit Assignments
164
Table 8-9 Interrupt Clear-Enable Register Bit Assignments
164
Table 8-10 Interrupt Set-Pending Register Bit Assignments
165
Table 8-11 Interrupt Clear-Pending Registers Bit Assignments
166
Table 8-12 Active Bit Register Bit Assignments
166
Figure 8-7 Interrupt Priority Registers 0-31 Bit Assignments
167
Table 8-13 Interrupt Priority Registers 0-31 Bit Assignments
168
Table 8-14 CPUID Base Register Bit Assignments
168
Figure 8-8 CPUID Base Register Bit Assignments
168
Table 8-15 Interrupt Control State Register Bit Assignments
170
Figure 8-9 Interrupt Control State Register Bit Assignments
170
Table 8-16 Vector Table Offset Register Bit Assignments
172
Figure 8-10 Vector Table Offset Register Bit Assignments
172
Table 8-17 Application Interrupt and Reset Control Register Bit Assignments
173
Figure 8-11 Application Interrupt and Reset Control Register Bit Assignments
173
Figure 8-12 System Control Register Bit Assignments
175
Table 8-18 System Control Register Bit Assignments
176
Table 8-19 Configuration Control Register Bit Assignments
177
Figure 8-13 Configuration Control Register Bit Assignments
177
Table 8-20 System Handler Priority Registers Bit Assignments
179
Figure 8-14 System Handler Priority Registers Bit Assignments
179
Table 8-21 System Handler Control and State Register Bit Assignments
180
Figure 8-15 System Handler Control and State Register Bit Assignments
180
Figure 8-16 Configurable Fault Status Registers Bit Assignments
182
Table 8-22 Memory Manage Fault Status Register Bit Assignments
183
Figure 8-17 Memory Manage Fault Status Register Bit Assignments
183
Figure 8-18 Bus Fault Status Register Bit Assignments
184
Table 8-23 Bus Fault Status Register Bit Assignments
185
Table 8-24 Usage Fault Status Register Bit Assignments
186
Figure 8-19 Usage Fault Status Register Bit Assignments
186
Figure 8-20 Hard Fault Status Register Bit Assignments
187
Table 8-25 Hard Fault Status Register Bit Assignments
188
Table 8-26 Debug Fault Status Register Bit Assignments
189
Figure 8-21 Debug Fault Status Register Bit Assignments
189
Table 8-27 Memory Manage Fault Address Register Bit Assignments
190
Table 8-28 Bus Fault Address Register Bit Assignments
191
Table 8-29 Auxiliary Fault Status Register Bit Assignments
192
Table 8-30 Software Trigger Interrupt Register Bit Assignments
192
Figure 8-22 Software Trigger Interrupt Register Bit Assignments
192
Level Versus Pulse Interrupts
193
Chapter 9 Memory Protection Unit
196
About the MPU
196
MPU Programmer's Model
197
Table 9-1 MPU Registers
197
Table 9-2 MPU Type Register Bit Assignments
198
Figure 9-1 MPU Type Register Bit Assignments
198
Figure 9-2 MPU Control Register Bit Assignments
199
Table 9-3 MPU Control Register Bit Assignments
200
Table 9-4 MPU Region Number Register Bit Assignments
201
Figure 9-3 MPU Region Number Register Bit Assignments
201
Table 9-5 MPU Region Base Address Register Bit Assignments
202
Figure 9-4 MPU Region Base Address Register Bit Assignments
202
Table 9-6 MPU Region Attribute and Size Register Bit Assignments
203
Figure 9-5 MPU Region Attribute and Size Register Bit Assignments
203
Table 9-7 MPU Protection Region Size Field
204
MPU Access Permissions
207
Table 9-8 TEX, C, B Encoding
207
Table 9-9 Cache Policy for Memory Attribute Encoding
208
Table 9-10 AP Encoding
208
Table 9-11 XN Encoding
208
MPU Aborts
209
Updating an MPU Region
210
Interrupts and Updating the MPU
213
Chapter 10 Core Debug
216
About Core Debug
216
Table 10-1 Core Debug Registers
216
Core Debug Registers
217
Table 10-2 Debug Halting Control and Status Register
218
Figure 10-1 Debug Halting Control and Status Register Bit Assignments
218
Figure 10-2 Debug Core Register Selector Register Bit Assignments
220
Table 10-3 Debug Core Register Selector Register
221
Table 10-4 Debug Exception and Monitor Control Register
223
Figure 10-3 Debug Exception and Monitor Control Register Bit Assignments
223
Core Debug Access Example
226
Using Application Registers in Core Debug
227
Table 10-5 Application Registers for Use in Core Debug
227
Chapter 11 System Debug
230
About System Debug
230
System Debug Access
231
Figure 11-1 System Debug Access Block Diagram
232
System Debug Programmer's Model
233
Fpb
234
Table 11-1 FPB Register Summary
235
Table 11-2 Flash Patch Control Register Bit Assignments
236
Figure 11-2 Flash Patch Control Register Bit Assignments
236
Table 11-3 COMP Mapping
238
Figure 11-3 Flash Patch Remap Register Bit Assignments
238
Table 11-4 Flash Patch Remap Register Bit Assignments
239
Figure 11-4 Flash Patch Comparator Registers Bit Assignments
239
Table 11-5 Flash Patch Comparator Registers Bit Assignments
240
Dwt
241
Table 11-6 DWT Register Summary
242
Table 11-7 DWT Control Register Bit Assignments
244
Figure 11-5 DWT Control Register Bit Assignments
244
Table 11-8 DWT Current PC Sampler Cycle Count Register Bit Assignments
247
Table 11-9 DWT CPI Count Register Bit Assignments
248
Figure 11-6 DWT CPI Count Register Bit Assignments
248
Table 11-10 DWT Exception Overhead Count Register Bit Assignments
249
Figure 11-7 DWT Exception Overhead Count Register Bit Assignments
249
Figure 11-8 DWT Sleep Count Register Bit Assignments
249
Table 11-11 DWT Sleep Count Register Bit Assignments
250
Figure 11-9 DWT LSU Count Register Bit Assignments
250
Table 11-12 DWT LSU Count Register Bit Assignments
251
Table 11-13 DWT Fold Count Register Bit Assignments
251
Figure 11-10 DWT Fold Count Register Bit Assignments
251
Table 11-14 DWT Program Counter Sample Register Bit Assignments
252
Table 11-15 DWT Comparator Registers 0-3 Bit Assignments
252
Table 11-16 DWT Mask Registers 0-3 Bit Assignments
253
Figure 11-11 DWT Mask Registers 0-3 Bit Assignments
253
Table 11-17 Bit Functions of DWT Function Registers 0-3
254
Figure 11-12 DWT Function Registers 0-3 Bit Assignments
254
Table 11-18 Settings for DWT Function Registers
256
Itm
258
Table 11-19 ITM Register Summary
258
Table 11-20 ITM Trace Enable Register Bit Assignments
260
Table 11-21 ITM Trace Privilege Register Bit Assignments
261
Figure 11-13 ITM Trace Privilege Register Bit Assignments
261
Table 11-22 ITM Trace Control Register Bit Assignments
262
Figure 11-14 ITM Trace Control Register Bit Assignments
262
Figure 11-15 ITM Integration Write Register Bit Assignments
263
Table 11-23 ITM Integration Write Register Bit Assignments
264
Table 11-24 ITM Integration Read Register Bit Assignments
264
Figure 11-16 ITM Integration Read Register Bit Assignments
264
Table 11-25 ITM Integration Mode Control Register Bit Assignments
265
Table 11-26 ITM Lock Access Register Bit Assignments
265
Figure 11-17 ITM Integration Mode Control Bit Assignments
265
Table 11-27 ITM Lock Status Register Bit Assignments
266
Figure 11-18 ITM Lock Status Register Bit Assignments
266
Ahb-Ap
267
Table 11-28 AHB-AP Register Summary
268
Table 11-29 AHB-AP Control and Status Word Register Bit Assignments
269
Figure 11-19 AHB-AP Control and Status Word Register
269
Table 11-30 AHB-AP Transfer Address Register Bit Assignments
270
Table 11-31 AHB-AP Data Read/Write Register Bit Assignments
271
Table 11-32 AHB-AP Banked Data Register Bit Assignments
271
Table 11-33 AHB-AP Debug ROM Address Register Bit Assignments
272
Table 11-34 AHB-AP ID Register Bit Assignments
272
Figure 11-20 AHB-AP ID Register
272
Chapter 12 Bus Interface
274
About Bus Interfaces
274
AMBA 3 Compliance
275
Icode Bus Interface
276
Table 12-1 Instruction Fetches
276
Dcode Bus Interface
278
System Interface
279
Unifying the Code Buses
281
Figure 12-1 Icode/Dcode Multiplexer
281
External Private Peripheral Interface
282
Access Alignment
283
Table 12-2 Bus Mapper Unaligned Accesses
283
Unaligned Accesses that Cross Regions
284
12.10 Bit-Band Accesses
285
12.11 Write Buffer
286
12.12 Memory Attributes
287
Table 12-3 Memory Attributes
287
12.13 AHB Timing Characteristics
288
Table 12-4 Interface Timing Characteristics
288
Chapter 13 Debug Port
289
About the DP
290
Chapter 14 Embedded Trace Macrocell
292
About the ETM
292
Figure 14-1 ETM Block Diagram
293
Table 14-1 ETM Core Interface Inputs and Outputs
294
Table 14-2 Miscellaneous Configuration Inputs
294
Table 14-3 Trace Port Signals
295
Table 14-4 Other Signals
295
Table 14-5 Clocks and Resets
296
Table 14-6 APB Interface Signals
296
Data Tracing
297
ETM Resources
298
Table 14-7 Cortex-M3 Resources
298
Trace Output
301
ETM Architecture
302
Figure 14-2 Return from Exception Packet Encoding
302
Table 14-8 Exception Tracing Mapping
303
Figure 14-3 Exception Encoding for Branch Packet
304
ETM Programmer's Model
306
Table 14-9 ETM Registers
306
Table 14-10 Boolean Function Encoding for Events
312
Table 14-11 Resource Identification Encoding
313
Table 14-12 Input Connections
313
Table 14-13 Trigger Output Connections
313
Chapter 15 Embedded Trace Macrocell Interface
315
About the ETM Interface
316
CPU ETM Interface Port Descriptions
317
Table 15-1 ETM Interface Ports
317
Branch Status Interface
320
Table 15-2 Branch Status Signal Function
320
Table 15-3 Branches and Stages Evaluated by the Processor
321
Figure 15-1 Conditional Branch Backwards Not Taken
322
Figure 15-2 Conditional Branch Backwards Taken
323
Figure 15-3 Conditional Branch Forwards Not Taken
323
Figure 15-4 Conditional Branch Forwards Taken
323
Figure 15-5 Unconditional Branch Without Pipeline Stalls
324
Figure 15-6 Unconditional Branch with Pipeline Stalls
324
Table 15-4 Example of an Opcode Sequence
325
Figure 15-7 Unconditional Branch in Execute Aligned
325
Figure 15-8 Unconditional Branch in Execute Unaligned
325
Figure 15-9 Example of an Opcode Sequence
327
Chapter 16 AHB Trace Macrocell Interface
329
About the AHB Trace Macrocell Interface
330
CPU AHB Trace Macrocell Interface Port Descriptions
331
Table 16-1 AHB Interface Ports
331
Chapter 17 Trace Port Interface Unit
334
About the TPIU
334
Figure 17-1 TPIU Block Diagram (Non-ETM Version)
335
Figure 17-2 TPIU Block Diagram (ETM Version)
336
Table 17-1 Trace out Port Signals
337
Table 17-2 ATB Port Signals
338
Table 17-3 Miscellaneous Configuration Inputs
338
Table 17-4 APB Interface
339
TPIU Registers
340
Table 17-5 TPIU Registers
340
Table 17-6 Async Clock Prescaler Register Bit Assignments
342
Figure 17-3 Supported Sync Port Size Register Bit Assignments
342
Figure 17-4 Async Clock Prescaler Register Bit Assignments
342
Table 17-7 Selected Pin Protocol Register Bit Assignments
343
Figure 17-5 Selected Pin Protocol Register Bit Assignments
343
Table 17-8 Formatter and Flush Status Register Bit Assignments
344
Figure 17-6 Formatter and Flush Status Register Bit Assignments
344
Table 17-9 Formatter and Flush Control Register Bit Assignments
345
Figure 17-7 Formatter and Flush Control Register Bit Assignments
345
Table 17-10 Integration Test Register-ITATBCTR2 Bit Assignments
347
Figure 17-8 Integration Test Register-ITATBCTR2 Bit Assignments
347
Table 17-11 Integration Test Register-ITATBCTR0 Bit Assignments
348
Figure 17-9 Integration Test Register-ITATBCTR0 Bit Assignments
348
Figure 17-10 Integration Mode Control Register Bit Assignments
348
Table 17-12 Integration Mode Control Register Bit Assignments
349
Table 17-13 Integration Register : TRIGGER Bit Assignments
349
Figure 17-11 Integration Register : TRIGGER Bit Assignments
349
Table 17-14 Integration Register : FIFO Data 0 Bit Assignments
350
Figure 17-12 Integration Register : FIFO Data 0 Bit Assignments
350
Table 17-15 Integration Register : FIFO Data 1 Bit Assignments
351
Figure 17-13 Integration Register : FIFO Data 1 Bit Assignments
351
Serial Wire Output Connection
353
Figure 17-14 Dedicated Pin Used for TRACESWO
353
Figure 17-15 SWO Shared with TRACEPORT
354
Figure 17-16 SWO Shared with JTAG-TDO
354
Chapter 18 Instruction Timing
355
About Instruction Timing
356
Processor Instruction Timings
357
Table 18-1 Instruction Timings
357
Load-Store Timings
361
Chapter 19 AC Characteristics
363
Processor Timing Parameters
364
Table 19-1 Miscellaneous Input Ports Timing Parameters
364
Table 19-2 Low Power Input Ports Timing Parameters
364
Table 19-3 Interrupt Input Ports Timing Parameters
365
Table 19-4 AHB Input Ports Timing Parameters
365
Table 19-5 PPB Input Port Timing Parameters
366
Table 19-6 Debug Input Ports Timing Parameters
366
Table 19-7 Test Input Ports Timing Parameters
367
Table 19-8 ETM Input Port Timing Parameters
367
Table 19-9 Miscellaneous Output Ports Timing Parameters
367
Table 19-10 Low Power Output Ports Timing Parameters
368
Table 19-11 AHB Output Ports Timing Parameters
368
Table 19-12 PPB Output Ports Timing Parameters
370
Table 19-13 Debug Interface Output Ports Timing Parameters
370
Table 19-14 ETM Interface Output Ports Timing Parameters
371
Table 19-15 HTM Interface Output Ports Timing Parameters
371
Table 19-16 Test Output Ports Timing Parameters
372
Appendix A Signal Descriptions
374
Clocks
374
A.1 Clocks
374
Table A-1 Clock Signals
374
Resets
375
A.2 Resets
375
Table A-2 Reset Signals
375
Miscellaneous
376
A.3 Miscellaneous
376
Table A-3 Miscellaneous Signals
376
Interrupt Interface
378
A.4 Interrupt Interface
378
Table A-4 Interrupt Interface Signals
378
Low Power Interface
379
Table A-5 Low Power Interface Signals
379
Icode Interface
380
Table A-6 Icode Interface
380
Dcode Interface
381
Table A-7 Dcode Interface
381
System Bus Interface
382
Table A-8 System Bus Interface
382
Private Peripheral Bus Interface
383
Table A-9 Private Peripheral Bus Interface
383
ITM Interface
384
Table A-10 ITM Interface
384
AHB-AP Interface
385
Table A-11 AHB-AP Interface
385
ETM Interface
386
Table A-12 ETM Interface
386
AHB Trace Macrocell Interface
388
Table A-13 HTM Interface
388
Test Interface
389
Table A-14 Test Interface
389
WIC Interface
390
A.15 WIC Interface
390
Table A-15 WIC Interface Signals
390
Appendix B Revisions
391
Table B-1 Differences between Issue E and Issue F
391
Table B-2 Differences between Issue F and Issue G
395
Advertisement
ARM Cortex-M3 DesignStart Technical Reference Manual (400 pages)
Brand:
ARM
| Category:
Computer Hardware
| Size: 2 MB
Table of Contents
Table of Contents
3
Preface
18
About this Manual
18
Key to Timing Diagram Conventions
21
Feedback
23
Chapter 1 Introduction
26
About the Processor
26
Components of the Processor
28
Figure 1-1 Cortex-M3 Block Diagram
29
Configurable Options
36
Instruction Set Summary
37
Table 1-1 16-Bit Cortex-M3 Instruction Summary
37
Table 1-2 32-Bit Cortex-M3 Instruction Summary
40
Chapter 2 Programmer's Model
48
About the Programmer's Model
48
Privileged Access and User Access
49
Registers
50
Figure 2-1 Cortex-M3 Register Set
50
Figure 2-2 Application Program Status Register Bit Assignments
51
Table 2-1 Application Program Status Register Bit Assignments
52
Figure 2-3 Interrupt Program Status Register Bit Assignments
52
Table 2-2 Interrupt Program Status Register Bit Assignments
53
Table 2-3 Bit Functions of the Execution PSR
54
Figure 2-4 Execution Program Status Register
54
Data Types
56
Memory Formats
57
Figure 2-5 Little-Endian and Big-Endian Memory Formats
58
Instruction Set
59
Table 2-4 Nonsupported Thumb Instructions
59
Table 2-5 Supported Thumb-2 Instructions
59
Chapter 3 System Control
63
Summary of Processor Registers
64
Table 3-1 NVIC Registers
64
Table 3-2 Core Debug Registers
64
Table 3-3 Flash Patch Register Summary
68
Table 3-4 DWT Register Summary
69
Table 3-5 ITM Register Summary
71
Table 3-6 AHB-AP Register Summary
72
Table 3-7 Summary of Debug Port Registers
73
Table 3-8 MPU Registers
73
Table 3-9 TPIU Registers
74
Table 3-10 ETM Registers
75
Chapter 4 Memory Map
78
About the Memory Map
78
Figure 4-1 the Cortex-M3 Memory Map
78
Table 4-1 Memory Interfaces
79
Table 4-2 Memory Region Permissions
79
Bit-Banding
81
Figure 4-2 Bit-Band Mapping
82
ROM Memory Table
84
Table 4-3 Cortex-M3 ROM Table
84
Chapter 5 Exceptions
88
About the Exception Model
88
Exception Types
89
Table 5-1 Exception Types
89
Exception Priority
91
Table 5-2 Priority-Based Actions of Exceptions
91
Table 5-3 Priority Grouping
93
Privilege and Stacks
94
Pre-Emption
96
Figure 5-1 Stack Contents after a Pre-Emption
96
Table 5-4 Exception Entry Steps
97
Figure 5-2 Exception Entry Timing
98
Tail-Chaining
99
Figure 5-3 Tail-Chaining Timing
99
Late-Arriving
100
Figure 5-4 Late-Arriving Exception Timing
100
Exit
102
Table 5-5 Exception Exit Steps
102
Figure 5-5 Exception Exit Timing
103
Table 5-6 Exception Return Behavior
104
Resets
105
Table 5-7 Reset Actions
105
Table 5-8 Reset Boot-Up Behavior
106
Exception Control Transfer
109
Table 5-9 Transferring to Exception Processing
109
Setting up Multiple Stacks
110
Abort Model
112
Table 5-10 Faults
113
Table 5-11 Debug Faults
115
Table 5-12 Fault Status and Fault Address Registers
116
Activation Levels
117
Table 5-13 Privilege and Stack of Different Activation Levels
117
Table 5-14 Exception Transitions
117
Table 5-15 Exception Subtype Transitions
118
Flowcharts
119
Figure 5-6 Interrupt Handling Flowchart
119
Figure 5-7 Pre-Emption Flowchart
120
Figure 5-8 Return from Interrupt Flowchart
121
Chapter 6 Clocking and Resets
124
Cortex-M3 Clocking
124
Table 6-1 Cortex-M3 Processor Clocks
124
Table 6-2 Cortex-M3 Macrocell Clocks
124
Cortex-M3 Resets
126
Table 6-3 Reset Inputs
126
Cortex-M3 Reset Modes
127
Table 6-4 Reset Modes
127
Figure 6-1 Reset Signals
128
Figure 6-2 Power-On Reset
128
Figure 6-3 Internal Reset Synchronization
129
Chapter 7 Power Management
132
About Power Management
132
System Power Management
133
Table 7-1 Supported Sleep Modes
133
Figure 7-1 SLEEPING Power Control Example
134
Figure 7-2 SLEEPDEEP Power Control Example
135
Chapter 8 Nested Vectored Interrupt Controller
138
About the NVIC
138
NVIC Programmer's Model
139
Table 8-1 NVIC Registers
139
Figure 8-1 Interrupt Controller Type Register Bit Assignments
143
Table 8-2 Interrupt Controller Type Register Bit Assignments
144
Figure 8-2 Systick Control and Status Register Bit Assignments
144
Table 8-3 Systick Control and Status Register Bit Assignments
145
Table 8-4 Systick Reload Value Register Bit Assignments
146
Figure 8-3 Systick Reload Value Register Bit Assignments
146
Figure 8-4 Systick Current Value Register Bit Assignments
146
Table 8-5 Systick Current Value Register Bit Assignments
147
Figure 8-5 Systick Calibration Value Register Bit Assignments
147
Table 8-6 Systick Calibration Value Register Bit Assignments
148
Table 8-7 Bit Functions of the Interrupt Set-Enable Register
149
Table 8-8 Bit Functions of the Interrupt Clear-Enable Register
149
Table 8-9 Bit Functions of the Interrupt Set-Pending Register
150
Table 8-10 Bit Functions of the Interrupt Clear-Pending Registers
151
Table 8-11 Bit Functions of the Active Bit Register
151
Figure 8-6 Interrupt Priority Registers 0-31 Bit Assignments
152
Table 8-12 Interrupt Priority Registers 0-31 Bit Assignments
153
Table 8-13 CPUID Base Register Bit Assignments
153
Figure 8-7 CPUID Base Register Bit Assignments
153
Table 8-14 Interrupt Control State Register Bit Assignments
155
Figure 8-8 Interrupt Control State Register Bit Assignments
155
Table 8-15 Vector Table Offset Register Bit Assignments
157
Figure 8-9 Vector Table Offset Register Bit Assignments
157
Table 8-16 Application Interrupt and Reset Control Register Bit Assignments
158
Figure 8-10 Application Interrupt and Reset Control Register Bit Assignments
158
Table 8-17 System Control Register Bit Assignments
160
Figure 8-11 System Control Register Bit Assignments
160
Table 8-18 Configuration Control Register Bit Assignments
161
Figure 8-12 Configuration Control Register Bit Assignments
161
Table 8-19 System Handler Priority Registers Bit Assignments
163
Figure 8-13 System Handler Priority Registers Bit Assignments
163
Table 8-20 System Handler Control and State Register Bit Assignment
164
Figure 8-14 System Handler Control and State Register Bit Assignments
164
Figure 8-15 Local Fault Status Registers Bit Assignments
166
Table 8-21 Memory Manage Fault Status Register Bit Assignments
167
Figure 8-16 Memory Manage Fault Register Bit Assignments
167
Table 8-22 Bus Fault Status Register Bit Assignments
168
Figure 8-17 Bus Fault Status Register Bit Assignments
168
Table 8-23 Usage Fault Status Register Bit Assignments
170
Figure 8-18 Usage Fault Status Register Bit Assignments
170
Table 8-24 Hard Fault Status Register Bit Assignments
171
Figure 8-19 Hard Fault Status Register Bit Assignments
171
Figure 8-20 Debug Fault Status Register Bit Assignments
172
Table 8-25 Debug Fault Status Register Bit Assignments
173
Table 8-26 Bit Functions of the Memory Manage Fault Address Register
174
Table 8-27 Bit Functions of the Bus Fault Address Register
174
Table 8-28 Software Trigger Interrupt Register Bit Assignments
175
Figure 8-21 Software Trigger Interrupt Register Bit Assignments
175
Level Versus Pulse Interrupts
176
Chapter 9 Memory Protection Unit
178
About the MPU
178
MPU Programmer's Model
179
Table 9-1 MPU Registers
179
Table 9-2 MPU Type Register Bit Assignments
180
Figure 9-1 MPU Type Register Bit Assignments
180
Figure 9-2 MPU Control Register Bit Assignments
181
Table 9-3 MPU Control Register Bit Assignments
182
Table 9-4 MPU Region Number Register Bit Assignments
183
Figure 9-3 MPU Region Number Register Bit Assignments
183
Table 9-5 MPU Region Base Address Register Bit Assignments
184
Figure 9-4 MPU Region Base Address Register Bit Assignments
184
Table 9-6 MPU Region Attribute and Size Register Bit Assignments
185
Figure 9-5 MPU Region Attribute and Size Register Bit Assignments
185
Table 9-7 MPU Protection Region Size Field
186
MPU Access Permissions
189
Table 9-8 TEX, C, B Encoding
189
Table 9-9 Cache Policy for Memory Attribute Encoding
190
Table 9-10 AP Encoding
190
Table 9-11 XN Encoding
190
MPU Aborts
191
Updating an MPU Region
192
Interrupts and Updating the MPU
195
Chapter 10 Core Debug
198
About Core Debug
198
Core Debug Registers
199
Table 10-2 Debug Halting Control and Status Register
200
Figure 10-1 Debug Halting Control and Status Register Format
200
Figure 10-2 Debug Core Selector Register Format
202
Table 10-3 Debug Core Selector Register
203
Table 10-4 Debug Exception and Monitor Control Register
205
Figure 10-3 Debug Exception and Monitor Control Register Format
205
Core Debug Access Example
208
Table 10-5 Application Registers for Use in Core Debug
209
Chapter 11 System Debug
211
About System Debug
211
System Debug Access
213
Figure 11-1 System Debug Access Block Diagram
214
System Debug Programmer's Model
215
Table 11-1 Flash Patch Register Summary
217
Table 11-2 Flash Patch Control Register Bit Assignments
218
Figure 11-2 Flash Patch Control Register Bit Assignments
218
Table 11-3 COMP Mapping
219
Table 11-4 Flash Patch Remap Register Bit Assignments
220
Figure 11-3 Flash Patch Remap Register Bit Assignments
220
Figure 11-4 Flash Patch Comparator Registers Bit Assignments
220
Table 11-5 Flash Patch Comparator Registers Bit Assignments
221
Table 11-6 DWT Register Summary
222
Data Watchpoint and Trace
222
Figure 11-5 DWT Control Register Bit Assignments
224
Table 11-7 DWT Control Register Bit Assignments
225
Table 11-8 DWT Current PC Sampler Cycle Count Register Bit Assignments
228
Figure 11-6 DWT CPI Count Register Bit Assignments
228
Table 11-9 DWT CPI Count Register Bit Assignments
229
Table 11-10 DWT Exception Overhead Count Register Bit Assignments
229
Figure 11-7 DWT Exception Overhead Count Register Bit Assignments
229
Table 11-11 DWT Sleep Count Register Bit Assignments
230
Figure 11-8 DWT Sleep Count Register Bit Assignments
230
Table 11-12 DWT LSU Count Register Bit Assignments
231
Figure 11-9 DWT LSU Count Register Bit Assignments
231
Figure 11-10 DWT Fold Count Register Bit Assignments
231
Table 11-13 DWT Fold Count Register Bit Assignments
232
Table 11-14 DWT Comparator Registers 0-3 Bit Assignments
232
Table 11-15 DWT Mask Registers 0-3 Bit Assignments
233
Figure 11-11 DWT Mask Registers 0-3 Bit Assignments
233
Table 11-17 Settings for DWT Function Registers
234
Figure 11-12 DWT Function Registers 0-3 Bit Assignments
234
Table 11-16 Bit Functions of DWT Function Registers 0-3
234
Table 11-18 ITM Register Summary
236
Instrumentation Trace Macrocell
236
Table 11-19 Bit Functions of the ITM Trace Enable Register
238
Table 11-20 Bit Functions of the ITM Trace Privilege Register
239
Figure 11-13 ITM Trace Privilege Register Bit Assignments
239
Table 11-21 Bit Functions of the ITM Control Register
240
Figure 11-14 ITM Control Register Bit Assignments
240
Figure 11-15 ITM Integration Write Register Bit Assignments
241
Table 11-22 Bit Functions of the ITM Integration Write Register
242
Table 11-23 Bit Functions of the ITM Integration Read Register
242
Figure 11-16 ITM Integration Read Register Bit Assignments
242
Table 11-24 Bit Functions of the ITM Integration Mode Control Register
243
Table 11-25 Bit Functions of the ITM Lock Access Register
243
Figure 11-17 ITM Integration Mode Control Bit Assignments
243
Table 11-26 Bit Functions of the ITM Lock Status Register
244
Figure 11-18 ITM Lock Status Register Bit Assignments
244
Table 11-27 AHB-AP Register Summary
245
AHB Access Port
245
Figure 11-19 AHB-AP Control and Status Word Register
246
Table 11-28 Bit Functions of the AHB-AP Control and Status Word Register
247
Table 11-29 AHB-AP Transfer Address Register Bit Functions
248
Table 11-30 Bit Functions of the AHB-AP Data Read/Write Register
249
Table 11-31 Bit Functions of the AHB-AP Banked Data Register
249
Table 11-32 Bit Functions of the AHB-AP Debug ROM Address Register
250
Table 11-33 Bit Functions of the AHB-AP ID Register
250
Figure 11-20 AHB-AP ID Register
250
Chapter 12 Debug Port
252
About the Debug Port
252
Table 12-1 JTAG-DP Signal Connections
253
Figure 12-1 JTAG-DP Physical Connection
254
Figure 12-2 the DAP State Machine (JTAG)
255
Figure 12-3 JTAG Instruction Register Bit Order
257
Table 12-2 Standard IR Instructions
258
Table 12-3 Recommended Implementation-Defined IR Instructions for IEEE 1149.1-Compliance
259
Figure 12-4 JTAG Bypass Register Operation
260
Figure 12-5 JTAG Device ID Code Register Bit Order
261
Table 12-4 DPACC and APACC ACK Responses
262
Figure 12-6 Bit Order of JTAG DP and AP Access Registers
263
Table 12-5 JTAG Target Response Summary
267
Table 12-6 Summary of JTAG Host Responses
268
Figure 12-7 JTAG-DP ABORT Scan Chain Bit Order
269
Sw-Dp
270
Figure 12-8 Serial Wire Debug Successful Write Operation
275
Figure 12-9 Serial Wire Debug Successful Read Operation
275
Figure 12-10 Serial Wire Debug WAIT Response to a Packet Request
276
Figure 12-11 Serial Wire Debug FAULT Response to a Packet Request
276
Figure 12-12 Serial Wire Debug Protocol Error after a Packet Request
277
Figure 12-13 Serial Wire WAIT or FAULT Response to a Read Operation When Overrun Detection Is Enabled
281
Figure 12-14 Serial Wire WAIT or FAULT Response to a Write Operation When Overrun Detection Is Enabled
281
Table 12-7 Target Response Summary for DP Read Transaction Requests
283
Table 12-8 Target Response Summary for AP Read Transaction Requests
284
Table 12-9 Target Response Summary for DP Write Transaction Requests
285
Table 12-10 Target Response Summary for AP Write Transaction Requests
286
Table 12-11 Summary of Host (Debugger) Responses to the SW-DP Acknowledge
287
Table 12-12 Terms Used in SW-DP Timing
288
Figure 12-15 SW-DP Acknowledgement Timing
288
Figure 12-16 SW-DP to DAP Bus Timing for Writes
289
Figure 12-17 SW-DP to DAP Bus Timing for Reads
289
Figure 12-18 SW-DP Idle Timing
290
Common Debug Port (DP) Features
291
Figure 12-19 Pushed Operations Overview
294
Table 12-13 JTAG-DP Register Map
297
Debug Port Programmer's Model
297
Table 12-14 SW-DP Register Map
299
Table 12-15 Abort Register Bit Assignments
300
Figure 12-20 Abort Register Bit Assignments
300
Table 12-16 Identification Code Register Bit Assignments
302
Figure 12-21 Identification Code Register Bit Assignments
302
Table 12-17 JEDEC JEP-106 Manufacturer ID Code, with ARM Limited Values
303
Table 12-18 Control/Status Register Bit Assignments
304
Figure 12-22 Control/Status Register Bit Assignments
304
Table 12-19 Control of Pushed Operation Comparisons by MASKLANE
306
Table 12-20 Transfer Mode, TRNMODE, Bit Definitions
307
Table 12-21 Bit Assignments for the AP Select Register, SELECT
308
Figure 12-23 Bit Assignments for the AP Select Register, SELECT
308
Table 12-22 CTRLSEL Field Bit Definitions
309
Figure 12-24 Bit Assignments for the Wire Control Register (SW-DP Only)
310
Table 12-23 Bit Assignments for the Wire Control Register (SW-DP Only)
311
Table 12-24 Turnaround Tri-State Period Field, TURNROUND, Bit Definitions
311
Table 12-25 Wire Operating Mode, WIREMODE, Bit Definitions
312
Chapter 13 Trace Port Interface Unit
314
About the Trace Port Interface Unit
314
Figure 13-1 Block Diagram of the TPIU (Non-ETM Version)
315
Figure 13-2 Block Diagram of the TPIU (ETM Version)
316
Table 13-1 Trace out Port Signals
317
Table 13-2 ATB Port Signals
318
Table 13-3 Miscellaneous Configuration Inputs
319
Table 13-4 TPIU Registers
320
Table 13-5 Current Output Speed Divisors Register Bit Assignments
321
Figure 13-3 Supported Port Size Register Bit Assignments
321
Figure 13-4 Current Output Speed Divisors Register Bit Assignments
321
Table 13-6 Selected Pin Protocol Register Bit Assignments
322
Figure 13-5 Selected Pin Protocol Register Bit Assignments
322
Table 13-7 Formatter and Flush Status Register Bit Assignments
323
Figure 13-6 Formatter and Flush Status Register Bit Assignments
323
Table 13-8 Integration Test Register Bit Assignments
324
Figure 13-7 Integration Test Register Bit Assignments
324
Table 13-9 Integration Test Register Bit Assignments
325
Figure 13-8 Integration Test Register Bit Assignments
325
Chapter 14 Bus Interface
328
About Bus Interfaces
328
Table 14-1 Instruction Fetches
329
Icode Bus Interface
329
Dcode Bus Interface
331
System Interface
332
External Private Peripheral Interface
334
Table 14-2 Bus Mapper Unaligned Accesses
335
Access Alignment
335
Unaligned Accesses that Cross Regions
336
Bit-Band Accesses
337
Write Buffer
338
Table 14-3 Memory Attributes
339
Chapter 15 Embedded Trace Macrocell
342
About the ETM
342
Figure 15-1 ETM Block Diagram
343
Table 15-1 Cortex-M3 Resources
344
Data Tracing
346
ETM Resources
347
Trace Output
349
Figure 15-2 Exception Return Packet Encoding
350
ETM Architecture
350
Table 15-2 Exception Tracing Mapping
351
Figure 15-3 Exception Encoding for Branch Packet
352
Table 15-3 ETM Registers
354
ETM Programmer's Model
354
Chapter 16 Embedded Trace Macrocell Interface
360
About the Etm Interface
360
Table 16-1 ETM Interface Ports
361
CPU ETM Interface Port Descriptions
361
Figure 16-1 Conditional Branch Backwards Not Taken
363
Figure 16-2 Conditional Branch Backwards Taken
363
Branch Status Interface
363
Figure 16-3 Conditional Branch Forwards Not Taken
364
Figure 16-4 Conditional Branch Forwards Taken
364
Figure 16-5 Unconditional Branch Without Pipeline Stalls
364
Figure 16-6 Unconditional Branch with Pipeline Stalls
365
Figure 16-7 Unconditional Branch in Execute Aligned
365
Figure 16-8 Unconditional Branch in Execute Unaligned
365
Chapter 17 Instruction Timing
368
About Instruction Timing
368
Table 17-1 Instruction Timings
369
Processor Instruction Timings
369
Load-Store Timings
373
Table A-1 Clock Signals
376
A.1 Clocks
376
Table A-2 Reset Signals
377
A.2 Resets
377
Table A-3 Miscellaneous Signals
378
A.3 Miscellaneous
378
Table A-4 Interrupt Interface
379
Table A-5 Icode Interface
380
Table A-6 Dcode Interface
381
Table A-7 System Bus Interface
382
Table A-8 Private Peripheral Bus Interface
383
Table A-9 ITM Interface
384
Table A-10 AHB-AP Interface
385
Table A-11 ETM Interface
386
Table A-12 Test Interface
387
ARM Cortex-M3 DesignStart User Manual (59 pages)
Brand:
ARM
| Category:
Motherboard
| Size: 0 MB
Table of Contents
Document History
2
Table of Contents
4
Preface
6
About this Book
7
Feedback
10
Chapter 1 Introduction
11
About Cortex ® -M3 Designstart ™ Eval
12
About the ARM Versatile Express Cortex-M Prototyping System (V2M-MPS2+)
14
Using the Documentation
15
FPGA Evaluation Flow Directory Structure
17
Limitations
18
Chapter 2 Using the Prebuilt FPGA Image
19
Setting up the MPS2+ FPGA Platform
20
Running the Self-Test Program
21
Connecting to a Debugger
23
Chapter 3 FPGA Platform Overview
25
System Overview
25
Memory Map
26
Block RAM Instances
27
External Zero Bus Turnaround SSRAM
28
External PSRAM
29
Arduino Adapter Board
30
Embedded Trace Macrocell Interface
31
CMSDK APB Subsystem
32
Ahb Gpio
33
Serial Peripheral Interface
34
Color LCD Parallel Interface
35
Ethernet
36
Vga
37
Audio I 2 S
38
Audio Configuration
40
FPGA System Control and I/O
41
Chapter 4 Clocks
43
Source Clocks
43
Derived Clocks
44
Chapter 5 Serial Communication Controller
46
SCC Interface Overview
46
SCC Memory Map
47
Build Flow
50
Build Requirements
52
Chapter 6 FPGA Build
53
Chapter 7 Integrating with Mbed
53
Compatibility with Mbed ™ os
53
Performance and Clocks
56
Utilization of Default System
57
Chapter 8 Performance and Utilization
58
Appendix A Revisions
58
Revisions - Cortex -M3 Designstart Eval
59
Advertisement
Advertisement
Related Products
ARM Cortex-A8 MID
ARM Cortex-A53 MPCore
ARM Cortex-R4
ARM Cortex-R4F
ARM Cortex-M4
ARM Cortex-M0
ARM Cortex-A76 Core
ARM Cortex-A35
ARM Cortex-A9 MBIST
ARM Cortex -A9
ARM Categories
Computer Hardware
Motherboard
Controller
Processor
Computer Accessories
More ARM Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL