The Design of Hard Real-time Kernel in Embedded System Based on ARM

Author
TanQiang
Advisor
LiuJin
School
Liaoning Normal University
Major
Applied Computer Technology
Classification
TP316.2 Real-time operating system
Degree
Master's thesis
Year
2008
Downloads
89
Citations
0

Request the full text

Abstract

With the rapid development of domestic industrialization and digitization, it is increasingly obvious that embedded development plays an important role in IT industry. Meanwhile, the requirement for product’s functionality, stability, real-time, etc. is becoming higher and higher in the field of embedded development.The reliability and real-time of the system as well as the flexibility of the software programming will be improved effectively by using embedded real-time operating system as developing platform and adopting high performance embedded processor as main controller in the industrial control field. Concerning embedded processor, ARM framework has already taken the lead in the embedded field for its high performance, low power consumption and low cost. In terms of embedded operating system, besides system infrastructure, solutions suitable for domestic developing trend are also not satisfactory. Firstly, mature embedded real-time operating systems abroad are mostly characteristic of high cost and complex structure, which are not fit for the application of hard real-time. Secondly, the source codes of most real-time operating systems are not accessible, which causes a safety hazard to the development products. Regardless of its characteristics of low cost, easy control, small scale and high performance, the weak foundation of small-sized hard real-time kernel in embedded system, similar toμC/OS—II, leaves a gap in product industrialization and commercialization.According to this case in combination with the theories of operating system kernel and special requirements of embedded hard real-time system, especially on the basis of analysis ofμC/OS—II, this paper designs and constructs a hard real-time application oriented kernel suitable for 32-bit ARM processor, the aim of which is to provide a reliable basic platform with a solid foundation.The research work of this paper focuses on the following aspects:To meet the demand for high efficiency, conciseness, easy extension and easy tailoring in the embedded environment, the kernel architecture is designed. Layered structure is chosen for the kernel, and relatively independent modules are used in each layer. Basic function modules are provided at the bottom layer using micro-kernel theories for reference.To fulfill the requirement for the quick and stable real-time response in the system, a unified interrupt entry is established for IRQ and a reasonable half nesting working mode is adopted. FIQ is kept unmasked and uninterrupted, to be employed in the rapid response situation. Segment handling interrupt mechanism is introduced to solve ITC and the recessive overuse of hardware protection mechanisms due to their mutual coordination.To satisfy the need for the predictability of the system behavior based on application, preemption threshold scheduling algorithm on the basis of priority bitmap is used, which has improved the utilization of the processor and the schedulability of a task set and reduced the kernel storage cost. In regard to shared resource access control, mutex event is used to solve priority inversion and deadlock in accordance with priority ceiling protocol. This paper also presents the design of clock management and memory management in the kernel to ascertain hard real-time performance of the system. At last, it has been proved by the real-time performance test that this kind of real-time kernel has an excellent hard real-time performance.

Table of contents

Abstract 3-4 Abstract 4-8 The first chapter outlines 8-14 1.1 embedded real-time systems Introduction 8-9 1.2 embedded real-time operating system, the main features 9 1.3 real-time operating system research status and development trends 9-11 1.4 research background and significance of 11-12 1.5 research 12-14 the second chapter of embedded real-time operating system kernel structure design 14-26 2.1 ARM processor features 14-16 2.1.1 Program Status Register and the processor mode 14-15 2.1.2 interruption priority resources 15 2.1.3 ARM processor exception interrupt handling 15 2.1.4 ARM microprocessor hard to protect algorithm logic 15-16 2.2 kernel structure 16-19 2.2.1 single-core structure 16-17 2.2.2 level kernel structure 17 2.2.3 micro-kernel structure 17-18 2.2.4 kernel structure design 18-19 2.3 interrupt and equipment 19-20 2.4 interrupt management 20-25 2.4.1 nested interrupt mechanism 20-21 2.4.2 non-maskable interrupt mechanism 21 2.4.3 Interrupt segment handling mechanism 21-23 2.4.4 IRQ interrupt entry logic and export processing 23-25 2.5 device driver model 25-26 task scheduling strategy and resource access control protocol 26-36 3.1 task scheduling strategy 26-28 3.1.1 static priority scheduling 26-27 3.1.2 round-robin scheduling 27-28 3.1.3 static scheduling priority tasks allocated 28 3.2 Preemption Threshold Scheduling based on the priority bitmap 28-31 3.2.1 priority level bit map algorithm principle 29 3.2.2 priority bitmap algorithm to increase support for the priority number of 29-30 3.2.3 priority bitmap algorithm to reduce the priority level to determine the table the required storage space 30-31 3.2.4 preemption threshold scheduling algorithm based on the priority bitmap 31 3.3 Resource Access Control 31-36 3.3.1 access to resources caused by design problems 31-32 3.3.2 Resource Access Control Protocol 32-34 3.3.3 mutually exclusive event to solve the priority inversion 34-36 Chapter kernel objects 36-46 4.1 Task Manager 36-37 4.2 inter-task synchronization, mutual exclusion and communication (ITC) 37-39 4.3 clock management 39-41 4.4 memory management 41-46 4.4.1 memory management features 42 4.4.2 memory allocation scheme 42-43 4.4.3 memory management program designed 43-46 Chapter kernel design and performance analysis 46-52 5.1 self-protection software the FIFO.; 46-47 5.2 Flow Control 47 5.3 critical sections and protect 47-49 5.4 real-time performance testing 49-52 5.4.1 test indicators 49-50 5.4.2 test platform 50 5.4.3 testing principle 50-51 5.4.4 test results 51-52 Summary 52-54 References 54-57 thank 57-58 a graduate student in the papers read during 58

Related dissertations

  1. Research on Inter Process Communication of Embedded Real-Time Operating System
  2. Implementation and Design of Multi-core Support for Micro-kernel Operating System
    YanJieJun ·Nanjing University ·2011 ·Master's thesis
  3. Research on Energy-oriented Cloud Computing Task Scheduling Strategy
    WuShiShan ·Harbin Institute of Technology ·2013 ·Master's thesis
  4. Optimizing Mechanism of Mass Video Transcoding System Based on Mapreduce
  5. The Software Design of Automatic Doffing System
    WangFei ·Donghua University ·2013 ·Master's thesis
  6. Research on Reliable Communication and Task Scheduling Based on Virtual Instrumentation and Digital Fountain
  7. Research and Design of Embedded Operating System Based on Multi-Core Processors
  8. Research and Improvement of a Micro-Kernel System MINIX3Disseetation
    WangHuiMin ·Shanghai Jiaotong University ·2013 ·Master's thesis
  9. Research on AUTOSAR OS Specification and Implementation in μC/OS-Ⅱ
    OuShiZuo ·Hefei University of Technology ·2012 ·Master's thesis
  10. The Research and Realization of Resources Management and Task Scheduling Sub-System in Couple Distribute System
    XiangPeng ·Southwest Jiaotong University ·2013 ·Master's thesis
  11. Design and Implementation of an Automotive Embedded Real-time Operating System Kernel
    ZhangRan ·Hunan University ·2012 ·Master's thesis
  12. Design and Implementation of Supporting Software of Launch Control Software Universal Testing Platform
    ZuoChengYi ·Harbin Institute of Technology ·2013 ·Master's thesis
  13. Design and Implementation of the Failure Recovery Mechanism in MapReduce
  14. Realization and Application of Vxworks System Based on Virtual Machine
    WangZuo ·Harbin Engineering University ·2012 ·Master's thesis
  15. Study on Rate Control and Parallel Process for H.264/AVC Video Coding
  16. Research on the Hardware/Software Codesign and OCB Design in Cable DTV SOC
    YiZhiQiang ·Zhejiang University ·2006 ·Doctoral dissertation
  17. Research and Practice of Communication Networks in Digital Substations Based on IEC 61850
    ZuoXiaoBo ·Southeast University ·2006 ·Doctoral dissertation
  18. Embedded real-time systems , task scheduling and resource sharing model and algorithm research
    WangBaoJin ·PLA Information Engineering University ·2005 ·Doctoral dissertation
  19. Research on the Open NC System Based on Architecture/Component Reuse
    LiBin ·Huazhong University of Science and Technology ·2004 ·Doctoral dissertation
  20. Design of Control System for Sight-seeing Fountain Base on CAN-Bus
    WuZhiWen ·East China Normal University ·2008 ·Master's thesis