SlideShare a Scribd company logo
Characteristics of Realtime and
Embedded Systems
Chapter 1
1/6/2023 1
Embedded Systems
• Embedded systems are computing systems with tightly
coupled hardware and software integration.
• Designed to perform dedicated function
• Embedded means that the system is a integral part of a
larger system
• Multiple embedded systems can co-exist in a single
system.
• General purpose processor are typically not aware of
the applications.
• An embedded processor is application-aware.
1/6/2023 2
Embedded Systems (contd.)
• Hardware and software co-design: hardware and
software for the embedded system are developed
in parallel.
• Cross-platform development: Both embedded
system and its application use the cross-platform
development method.
– Software is developed on one platform but runs on
another.
• Software storage will have to be chosen to allow
for upgradeability.
• Of course, the SoC, PoE, etc.
1/6/2023 3
Realtime Systems
1/6/2023 4
Real-time
systems
Timing constraints
Synchronous
& asynchronous
Events
Synchronous &
Asynchronous
Outputs
Real-time Systems
• Real-time systems are those systems in which
the overall correctness of the system depends
on both the functional correctness and the
timing correctness.
• Realtime systems also have a substantial
knowledge of the system it controls and the
applications running on it.
• Deadline dependent.
• Predictability is important.
1/6/2023 5
Hard and soft Real-time Systems
• A hard real-time systems is a real-time system
that must meet its deadlines with a near zero
degree of flexibility. Deadlines must be met,
otherwise catastrophes occur.
• A soft-time system is a real-time system that
must its deadlines but with a degree of flexibility.
The deadlines contains various levels of
tolerance, even statistical distribution of response
times with different degrees of acceptability.
• An important requirement: scheduling
algorithms
1/6/2023 6
Real-time Embedded Systems
1/6/2023 7
RTS EMB
RTEMB
Railway monitoring and scheduling : RTS
Cell phone: EMB
Heart pacemaker: RTSEMB
Chapter 2: Basics of Development for
Embedded Systems
• Typical cross-platform development environment
• Host system: essential tools are cross compiler,
linker, source level debugger
• Executable image contains RTOS, Kernel,
application program: compiled and linked
• Target system: where to store the executable
image, and how?
• Connections: ethernet and serial
• See figure 2.1
1/6/2023 8
Making of an Executable
• Makefile
• Demo
1/6/2023 9
Compile and Link
• Compiler converts the high level language code into
native machine code or object code
• Linker does symbol resolution and symbol relocation to
generate the executable code:
• See Figure 2.3
• Symbol resolution is the process by which the linked
goes through each object file and determines where
the external symbols in it are located. Then it copies
the required file into the final image.
• Symbol relocation is the process in which the linker
maps symbol reference to its definition.
1/6/2023 10
ELF (Executable Linker Format)
• An object file contains:
– file size, binary code, data size, source file name
and other general information
– Machine architecture specific binary instructions
and data
– Symbol table and relocation table
– Debug information, which the debugger uses
• There are standards for organizing object file
formats. ELF is very commonly used format.
1/6/2023 11
ELF (contd.)
• Compiler organizes the compiled code into system-defined
as well as user-defined content groupings called sections.
• Example sections: binary code, symbol table
• Each section also has important information about load
address and run address.
• Section header and program header: Listing 2.1
• A section header table is an array of section header
sections of an object file.
• A program header table is array of program header
structures describing a loadable segment of an image.
`
1/6/2023 12
Section Types (sh_types)
1/6/2023 13
• PROGBITS code or initialized data
• SYMTAB etc.
• Some common system created default sections
are: .text, .data, .sdata
• Section attributes (sh_flags) : WRITE, ALLOC,
EXECINSTR
• sh_addr is the section address and p_addr is the
program address on the target machine
User defined sections
• You could add user-defined sections:
.section mysection
If you were to create the embedded program
from scratch you will define it in terms of
sections as defined above.
Remember the .data and .text sections from
your MIPS code (of cse341).
1/6/2023 14
Mapping Executable Images into
Target Embedded Systems
• Multiple source files (C/C++, assemble) have been
compiled and assembled into object files, a linker
must combine these object files and merge sections
from different object files into program segments.
• The process creates a single executable image for the
target embedded system.
• Embedded system developer uses linker directives to
control how the linker combines sections and
allocates segments into target system.
• Common directives are MEMORY and SECTION (see
examples Listing 2.2 and 2.3)
1/6/2023 15
Memory Map of the Target System
• See fig 2.5 and compare it with MEMORY
directive listing 2.2
• Also check out the memory map of XINU
• Section .text can be mapped to ROM, Flash or
Ram where the section .data has to be
mapped to RAM.
1/6/2023 16
Generating Executable Image
• Combining multiple sections into executable
image: fig. 2.6
• Mapping executable image into target
memory fig 2.7
• Module upgradability through flash memory.
• Use SDRAM for code /data that require fast
access and DRAM for the rest of the
code/data.
• See Listing 2.5 and Figure 2.8 for examples.
1/6/2023 17

More Related Content

Similar to Ch1Ch2Sept10.pdf

Embedded
EmbeddedEmbedded
embeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfembeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdf
Ashwin180668
 
Windows internals
Windows internalsWindows internals
Windows internals
Piyush Jain
 
Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)
Rajkumar Pawar
 
Mba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareMba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer software
Rai University
 
Module 1 embedded software essentials
Module 1 embedded software essentialsModule 1 embedded software essentials
Module 1 embedded software essentials
Saad Elkheety
 
Bsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareBsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system software
Rai University
 
Chromium os architecture report
Chromium os  architecture reportChromium os  architecture report
Chromium os architecture report
Amr Abd El Latief
 
Bca i-fundamental of computer-u-2- application and system software
Bca  i-fundamental of  computer-u-2- application and system softwareBca  i-fundamental of  computer-u-2- application and system software
Bca i-fundamental of computer-u-2- application and system software
Rai University
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system software
Rai University
 
System software and its types
System software and its typesSystem software and its types
System software and its types
samina khan
 
Bba i-introduction to computer-u-2- application and system software
Bba  i-introduction to computer-u-2- application and system softwareBba  i-introduction to computer-u-2- application and system software
Bba i-introduction to computer-u-2- application and system software
Rai University
 
Multimedia authoring and user interface
Multimedia authoring and user interface Multimedia authoring and user interface
Multimedia authoring and user interface
nirmalbj
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
devika g
 
.net Based Component Technologies
.net Based Component Technologies.net Based Component Technologies
.net Based Component Technologies
prakashk453625
 
Windows 2000
Windows 2000Windows 2000
Windows 2000
Agnas Jasmine
 
Tech presentation (part 1)
Tech presentation (part 1)Tech presentation (part 1)
Tech presentation (part 1)
Abhijit Roy
 
Unit 2 computer software
Unit 2 computer softwareUnit 2 computer software
Unit 2 computer software
Hardik Patel
 
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
Gerke Max Preussner
 
Distributive operating system
Distributive operating systemDistributive operating system
Distributive operating system
Muhammad Adeel Rajput
 

Similar to Ch1Ch2Sept10.pdf (20)

Embedded
EmbeddedEmbedded
Embedded
 
embeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfembeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdf
 
Windows internals
Windows internalsWindows internals
Windows internals
 
Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)Initial Architectural Design (Game Architecture)
Initial Architectural Design (Game Architecture)
 
Mba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer softwareMba i-ifm-u-2-computer software
Mba i-ifm-u-2-computer software
 
Module 1 embedded software essentials
Module 1 embedded software essentialsModule 1 embedded software essentials
Module 1 embedded software essentials
 
Bsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system softwareBsc cs 1 fit u-2 application and system software
Bsc cs 1 fit u-2 application and system software
 
Chromium os architecture report
Chromium os  architecture reportChromium os  architecture report
Chromium os architecture report
 
Bca i-fundamental of computer-u-2- application and system software
Bca  i-fundamental of  computer-u-2- application and system softwareBca  i-fundamental of  computer-u-2- application and system software
Bca i-fundamental of computer-u-2- application and system software
 
Mca i-fundamental of computer-u-2- application and system software
Mca  i-fundamental of  computer-u-2- application and system softwareMca  i-fundamental of  computer-u-2- application and system software
Mca i-fundamental of computer-u-2- application and system software
 
System software and its types
System software and its typesSystem software and its types
System software and its types
 
Bba i-introduction to computer-u-2- application and system software
Bba  i-introduction to computer-u-2- application and system softwareBba  i-introduction to computer-u-2- application and system software
Bba i-introduction to computer-u-2- application and system software
 
Multimedia authoring and user interface
Multimedia authoring and user interface Multimedia authoring and user interface
Multimedia authoring and user interface
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
 
.net Based Component Technologies
.net Based Component Technologies.net Based Component Technologies
.net Based Component Technologies
 
Windows 2000
Windows 2000Windows 2000
Windows 2000
 
Tech presentation (part 1)
Tech presentation (part 1)Tech presentation (part 1)
Tech presentation (part 1)
 
Unit 2 computer software
Unit 2 computer softwareUnit 2 computer software
Unit 2 computer software
 
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
West Coast DevCon 2014: Engine Overview - A Programmers Glimpse at UE4
 
Distributive operating system
Distributive operating systemDistributive operating system
Distributive operating system
 

Recently uploaded

RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 

Ch1Ch2Sept10.pdf

  • 1. Characteristics of Realtime and Embedded Systems Chapter 1 1/6/2023 1
  • 2. Embedded Systems • Embedded systems are computing systems with tightly coupled hardware and software integration. • Designed to perform dedicated function • Embedded means that the system is a integral part of a larger system • Multiple embedded systems can co-exist in a single system. • General purpose processor are typically not aware of the applications. • An embedded processor is application-aware. 1/6/2023 2
  • 3. Embedded Systems (contd.) • Hardware and software co-design: hardware and software for the embedded system are developed in parallel. • Cross-platform development: Both embedded system and its application use the cross-platform development method. – Software is developed on one platform but runs on another. • Software storage will have to be chosen to allow for upgradeability. • Of course, the SoC, PoE, etc. 1/6/2023 3
  • 4. Realtime Systems 1/6/2023 4 Real-time systems Timing constraints Synchronous & asynchronous Events Synchronous & Asynchronous Outputs
  • 5. Real-time Systems • Real-time systems are those systems in which the overall correctness of the system depends on both the functional correctness and the timing correctness. • Realtime systems also have a substantial knowledge of the system it controls and the applications running on it. • Deadline dependent. • Predictability is important. 1/6/2023 5
  • 6. Hard and soft Real-time Systems • A hard real-time systems is a real-time system that must meet its deadlines with a near zero degree of flexibility. Deadlines must be met, otherwise catastrophes occur. • A soft-time system is a real-time system that must its deadlines but with a degree of flexibility. The deadlines contains various levels of tolerance, even statistical distribution of response times with different degrees of acceptability. • An important requirement: scheduling algorithms 1/6/2023 6
  • 7. Real-time Embedded Systems 1/6/2023 7 RTS EMB RTEMB Railway monitoring and scheduling : RTS Cell phone: EMB Heart pacemaker: RTSEMB
  • 8. Chapter 2: Basics of Development for Embedded Systems • Typical cross-platform development environment • Host system: essential tools are cross compiler, linker, source level debugger • Executable image contains RTOS, Kernel, application program: compiled and linked • Target system: where to store the executable image, and how? • Connections: ethernet and serial • See figure 2.1 1/6/2023 8
  • 9. Making of an Executable • Makefile • Demo 1/6/2023 9
  • 10. Compile and Link • Compiler converts the high level language code into native machine code or object code • Linker does symbol resolution and symbol relocation to generate the executable code: • See Figure 2.3 • Symbol resolution is the process by which the linked goes through each object file and determines where the external symbols in it are located. Then it copies the required file into the final image. • Symbol relocation is the process in which the linker maps symbol reference to its definition. 1/6/2023 10
  • 11. ELF (Executable Linker Format) • An object file contains: – file size, binary code, data size, source file name and other general information – Machine architecture specific binary instructions and data – Symbol table and relocation table – Debug information, which the debugger uses • There are standards for organizing object file formats. ELF is very commonly used format. 1/6/2023 11
  • 12. ELF (contd.) • Compiler organizes the compiled code into system-defined as well as user-defined content groupings called sections. • Example sections: binary code, symbol table • Each section also has important information about load address and run address. • Section header and program header: Listing 2.1 • A section header table is an array of section header sections of an object file. • A program header table is array of program header structures describing a loadable segment of an image. ` 1/6/2023 12
  • 13. Section Types (sh_types) 1/6/2023 13 • PROGBITS code or initialized data • SYMTAB etc. • Some common system created default sections are: .text, .data, .sdata • Section attributes (sh_flags) : WRITE, ALLOC, EXECINSTR • sh_addr is the section address and p_addr is the program address on the target machine
  • 14. User defined sections • You could add user-defined sections: .section mysection If you were to create the embedded program from scratch you will define it in terms of sections as defined above. Remember the .data and .text sections from your MIPS code (of cse341). 1/6/2023 14
  • 15. Mapping Executable Images into Target Embedded Systems • Multiple source files (C/C++, assemble) have been compiled and assembled into object files, a linker must combine these object files and merge sections from different object files into program segments. • The process creates a single executable image for the target embedded system. • Embedded system developer uses linker directives to control how the linker combines sections and allocates segments into target system. • Common directives are MEMORY and SECTION (see examples Listing 2.2 and 2.3) 1/6/2023 15
  • 16. Memory Map of the Target System • See fig 2.5 and compare it with MEMORY directive listing 2.2 • Also check out the memory map of XINU • Section .text can be mapped to ROM, Flash or Ram where the section .data has to be mapped to RAM. 1/6/2023 16
  • 17. Generating Executable Image • Combining multiple sections into executable image: fig. 2.6 • Mapping executable image into target memory fig 2.7 • Module upgradability through flash memory. • Use SDRAM for code /data that require fast access and DRAM for the rest of the code/data. • See Listing 2.5 and Figure 2.8 for examples. 1/6/2023 17