UESTC 2004: Embedded Processor: Dr. Yao Sun University of Glasgow
UESTC 2004: Embedded Processor: Dr. Yao Sun University of Glasgow
Course Outline
Overview of Embedded System
Refresher of
Computer Architecture
Bus
Bitwise Operations
2
Course Schedule
3
Course Schedule
4
Course Assessments
5
Overview of Embedded System
6
Overview of Embedded System
• ARM processor
Aim • Mbed NUCLEO L432KC
Assumed
Previous • Microelectronics
Knowledge
8
Outline of Lecture 2
ARM Processor
Concept
History
Comparisons
Mbed NUCLEO L432KC
Internal structure
Memory mapping
9
Outline of Lecture 2
ARM Processor
Concept
History
Comparisons
Mbed NUCLEO L432KC
Internal structure
Memory mapping
10
ARM Processor - Concept
11
ARM Processor - Concept
12
ARM Processor - Concept
13
ARM Processor - Concept
14
ARM Processor - Concept
Comparison
RISC - Reduced Instruction Set Computer/Computing
A kind of ISA
CISC - Complex Instruction Set Computer/Computing
A kind of ISA
RISC:
Simpler
More suitable
for embedded
systems
15
ARM Processor - Concept
Conclusions
ARM architecture is a kind of ISA with the above features
ARM processor is a machine running such the ISA
18
Outline of Lecture 2
ARM Processor
Concept
History
Comparisons
Mbed NUCLEO L432KC
Internal structure
Memory mapping
19
ARM Processor - History
ARM company only sells licenses for core architecture design (no
manufacture but IP (Intellectual property) transfer)
Many ARM architecture versions have been proposed with the time
being
20
ARM Processor - History
ARM architecture versions
21
ARM Processor - History
ARM architecture versions cont’d
22
ARM Processor - History
ARM architecture versions cont’d
ARM v7
• Thumb-2 extension (with 32-bit instructions)
• Jazelle-RCT (Runtime Compiler Target) – provides support for
interpreted languages
• Architecture Profile ARM Cortex Processors
V7-A: Applications Cortex A
V7-M: Microcontroller Cortex M
Cortex R
V7-R: Real-time
23
ARM Processor - History
ARM architecture versions cont’d
ARM v8
24
ARM Processor - History
ARM architecture versions cont’d
ARM v8
25
ARM Processor - History
ARM architecture versions summary
26
ARM Processor - History
Our focus
27
Outline of Lecture 2
ARM Processor
Concept
History
Comparisons
Mbed NUCLEO L432KC
Internal structure
Memory mapping
28
ARM Processor - Comparisons
Conclusion:
MIPS is implemented primarily in embedded systems.
At present, ARM is more popular in the industry than MIPS
31
Outline of Lecture 2
ARM Processor
Concept
History
Comparisons
Mbed NUCLEO L432KC
Internal structure
Memory mapping
32
NUCLEO L432KC – Internal Structure
PC Connection Processor
User LED
Reset Button
Integrated Simulator:
ST-LINK/V2-1 User LED
34
NUCLEO L432KC – Internal Structure
35
NUCLEO L432KC – Internal Structure
PIN Diagram Arduino Connection
Interfaces
Interfaces 36
NUCLEO L432KC – Internal Structure
ST-Link COM LED State
1. Blinking Red
First USB enumeration with PC taking place
2. Red
Communication between PC and ST-LINK is
established (end of enumeration)
4. Green
Last communication has been successful
5. Orange
Last communication was failed
37
NUCLEO L432KC – Internal Structure
The Processor
38
NUCLEO L432KC – Internal Structure
39
Outline of Lecture 2
ARM Processor
Concept
History
Comparisons
Mbed NUCLEO L432KC
Internal structure
Memory mapping
40
Memory Mapping
Program Memory
Data Memory
• Constants
• Global Variables
• Temporary Variables, Run-time stack, Heap
I/O Memory
42
Memory Mapping
Conclusion:
Basically, there are 4 GB size with 6 memory regions/sections;
Code region – 0.5 GB
SRAM – 0.5 GB
Peripheral – 0.5 GB
External Devices – 1 GB
External RAM – 1 GB
System – 0.5 GB
The memory mapping can be different for the different
processor serials
43
Summary
ARM Processor
• Concept
• History
• Comparisons
Mbed NUCLEO L432KC
• Internal structure
• Memory mapping
44
In the Next Lesson:
Introduction to Interfacing
• Embedded Systems Programming
• Interfacing techniques
45