The kernel of embedded real-time operating system FreeRTOS
- Author
- ZhangLongBiao
- Advisor
- ZhangGuo
- School
- Kunming University of Science and Technology
- Major
- Pattern Recognition and Intelligent Systems
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 1
- Citations
- 0
Abstract
With the development of electronic technology and introduce new embedded technology, embedded systems have been widely used in industrial, energy, transportation, information technology, defense and other fields. Thanks for the increasing of application areas and the powerful function and more intelligent, embedded software is getting much complex than ever. With the embedded real-time operating systems, the development for the embedded systems more reasonable, more efficient use of system resources, lower the development costs, shorten development cycles, simplifies the design of the system software, better meet real-time and reliability requirements of the system, it is the inevitable trend of development of embedded systems. So the research of real-time operating system has more practical application value.FreeRTOS, an open source free real-time operating system, with a small, cropping system kernel, and portability. This article was focussed on FreeRTOS operating system kernel and detail analysis of the real-time system kernel structure, task management, memory management and the communication and synchronization mechanism between tasks. Kernel structure, which is the core of the system, the task status, task scheduling, critical area processing and system time management focuses on several aspects of analysis.In order to better analyze FreeRTOS, we introduction of μC/OS-Ⅱ as a reference object, comparing to the operating system’s real-time performance and study the differences of the two operating systems the basic characteristics of the task of real-time systems, and through specific experiments switching time task preemption time, interrupt response time, semaphore acquisition and release time measuring real-time performance of the two operating systems. It using a variety of management system for memory management, but in the memory allocation time and memory fragmentation still exist certain problems. In order to improve the performance of the memory management, the analysis of several typical DSA algorithm based on introduce TLSF algorithm, analysis TLSF performance difference algorithm with the singly linked list structure, and on the basis of the algorithm is modified in the application in FreeRTOS operating system. As a general-purpose operating system, the system of transplant was the key to system research, the paper analyzes the FreeRTOS porting conditions required analysis versatility of transplantation and transplantation with STM32and S3C44B0two microcontroller platform operating system, given the key modules portable code, through a multi-tasking program carried out of the system after the transplanting to verify that the system transplant correctness.
Table of contents
Summary 3-4
Abstract 4-9
first chapter 9-17
1.1 Embedded System Overview 9 - 11
1.2 the basic characteristics of embedded real-time operating system 11-13
1.3 embedded systems introduced 13-15
1.4 select research subjects 15
1.5 of this thesis research 15-16
1.6 thesis structure 16-17
Chapter II FreeRTOS operating system kernel analysis 17 - 39
2.1 FreeRTOS operating system profile 17-18
2.2 FreeRTOS operating system source code structure analysis 18-19
2.3 FreeRTOS operating system kernel analysis 19 -27
2.3.1 task Status 20-22
2.3.2 task scheduling 22-25
2.3.3 critical area treatment 25 - 26
2.3.4 system time management 26-27
2.4 task Manager 27-29
nbsp 2.4.1 Creating and deleting tasks ; 27 - 29
2.4.2 task suspend and resume 29
2.5 FreeRTOS operating system memory management 29-32
2.6 FreeRTOS operating system communication and synchronization between tasks 32-37
2.6.1 queue 32-36
2.6.2 semaphore 36-37
2.7 Summary 37 -39
Chapter III real-time system performance comparison analysis 39-55
3.1 μC/OS- Ⅱ operating system introduced 39-40
3.2 both operating systems basic characteristics Analysis 40-46
3.2.1 Foundations contrast 40-41
3.2.2 task Manager comparative analysis 41-42
3.2.3 tasks and interrupt communication and synchronization mechanisms between the comparative analysis 42-44
3.2.4 memory Management comparative analysis 44-45
3.2.5 Comparative analysis interrupt management 45-46
3.3 real-time performance analysis of the two operating systems 46-53
3.3.1 real-time operating system for embedded real-time analysis of the elements 46-47
method 3.3.2 real-time performance testing 47-51
3.3.3 operating system real-time performance of two test results comparing 51-53
3.4 Summary 53-55
Chapter IV FreeRTOS memory management improvements 55-67
4.1 FreeRTOS memory management problems 55-56
4.2 several typical memory management algorithms 56-61
4.2.1 typical DSA algorithm introduced 56-59
4.2.2 summarizes typical DSA algorithm 59-61 <br / > improved memory management and implementation of 4.3 61-66
4.3.1 TLSF algorithm data structure and algorithm analysis 61-62
4.3.2 TLSF memory algorithms with a single linked list structure Comparative analysis algorithm performance 62-63
4.3.3 FreeRTOS memory management to achieve 63-66
4.4 Summary 66-67
fifth Chapter FreeRTOS operating system migration 67-83
5.1 operating system migration conditions 67
5.2 versatility transplant research 67-70
5.3 STM32 chip transplant concrete realization concrete realization 70-76
5.4 S3C44B0 chip transplant 76-79
5.5 transplantation test 79-80
5.6 of this chapter summary 80-83
Chapter VI summary and Outlook 83-85
6.1 summarizes 83
6.2 Prospect 83-85
Thanks 85-87
References 87-91
A Appendix: Master during the study authors published papers 91-93 <br / > Appendix B: participation during postgraduate research 93
Related dissertations
- Study on the transplantation of FreeRTOS real-time operating system based on Lwip protocol
- Kernel Analysis and Porting of RTOS μc/os-Ⅱ
- Design and Implementation of Video Intercom System Based on the Android Platform
- Research on the Scheduling Algorithms in Real-Time Multimedia Systems
- Porting and Optimization of G.723.1Algorithm for ARM Platform
- Design and Implementation of Vibration Spectrum Analyzer
- The Design and Research of Stand-alone Embedded Motion Controller Based on STM32and FreeRTOS
- The Study and Design of Vehicle Traveling Data Recorder Based on Embedded System
- Reseach on Intelligent Control of Elevator Gate Based on Image Recognition
- Research on the Context Switching Method in Preempitive Real-Time System
- Design and Implementation of Embedded Operating System WebitX for Internet of Things
- The Interrupt Mechanism of Real-time Operating System on ARM
- Research and Design of Embedded Operating System Based on Multi-Core Processors
- Kernel Construction Analysis of μC/OS-Ⅱ and Model Research of Device Driver
- A Tailoring and Research of Embedded Operating System in Intelligent Car Equipment
- The Transplant of Embedded Real-time Operating System FreeRTOS on x86Platform
- Design and implementation of S3C44B0 platform based on uCos- Ⅱ
- Memory Management of an ARM-based Embedded Real-Time Operating System
- Design and Implementation of an Automotive Embedded Real-Time Operating System Kernel Supporting Homogeneous Multicore
- The Research of Embedded Linux and the Design of Gui