README.md 11.2 KB
Newer Older
mysterywolf's avatar
mysterywolf 已提交
1 2 3
<p align="center">
<img src="documentation/figures/logo.png" width="60%" >
</p>
B
Bernard Xiong 已提交
4

5
**English** | [中文](README_zh.md) | [Español](README_es.md) | [Deutsch](README_de.md)
C
Cathy-lulu 已提交
6

mysterywolf's avatar
mysterywolf 已提交
7 8
[![GitHubStars](https://img.shields.io/github/stars/RT-Thread/rt-thread?style=flat-square&logo=GitHub)](https://github.com/RT-Thread/rt-thread/stargazers)
[![GiteeStars](https://gitee.com/rtthread/rt-thread/badge/star.svg?theme=gvp)](https://gitee.com/rtthread/rt-thread/stargazers)
C
Cathy-lulu 已提交
9 10 11 12 13
[![GitHub](https://img.shields.io/github/license/RT-Thread/rt-thread.svg)](https://github.com/RT-Thread/rt-thread/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RT-Thread/rt-thread.svg)](https://github.com/RT-Thread/rt-thread/releases)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/RT-Thread/rt-thread?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![GitHub pull-requests](https://img.shields.io/github/issues-pr/RT-Thread/rt-thread.svg)](https://github.com/RT-Thread/rt-thread/pulls)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://github.com/RT-Thread/rt-thread/pulls)
B
Bernard Xiong 已提交
14

mysterywolf's avatar
mysterywolf 已提交
15
# RT-Thread
R
Rogerz Zhang 已提交
16

mysterywolf's avatar
mysterywolf 已提交
17
RT-Thread was born in 2006, it is an open source, neutral, and community-based real-time operating system (RTOS).
B
Bernard Xiong 已提交
18

mysterywolf's avatar
mysterywolf 已提交
19
RT-Thread is mainly written in C language, easy to understand and easy to port(can be quickly port to a wide range of mainstream MCUs and module chips). It applies object-oriented programming methods to real-time system design, making the code elegant, structured, modular, and very tailorable.
B
Bernard Xiong 已提交
20

mysterywolf's avatar
mysterywolf 已提交
21
RT-Thread has Standard version and Nano version. For resource-constrained microcontroller (MCU) systems, the Nano version that requires only 3KB Flash and 1.2KB RAM memory resources can be tailored with easy-to-use tools. For resource-rich IoT devices, RT-Thread can use the on-line software package management tool, together with system configuration tools, to achieve intuitive and rapid modular cutting, seamlessly import rich software packages; thus, achieving complex functions like Android's graphical interface and touch sliding effects, smart voice interaction effects, and so on.
B
Bernard Xiong 已提交
22

C
Cathy Li 已提交
23
## RT-Thread Architecture
B
Bernard Xiong 已提交
24

C
Cathy Li 已提交
25
RT-Thread has not only a real-time kernel, but also rich components. Its architecture is as follows:
B
Bernard Xiong 已提交
26 27


C
Cathy Li 已提交
28
![architecture](./documentation/figures/architecture.png)
B
Bernard Xiong 已提交
29 30


C
Cathy Li 已提交
31
It includes:
B
Bernard Xiong 已提交
32

C
Cathy Li 已提交
33
- Kernel layer: RT-Thread kernel, the core part of RT-Thread, includes the implementation of objects in the kernel system, such as multi-threading and its scheduling, semaphore, mailbox, message queue, memory management, timer, etc.; libcpu/BSP (Chip Migration Related Files/Board Support Package) is closely related to hardware and consists of peripheral drivers and CPU porting.
B
Bernard Xiong 已提交
34

mysterywolf's avatar
mysterywolf 已提交
35 36
- Components and Service Layer: Components are based on upper-level software on top of the RT-Thread kernel, such as virtual file systems, FinSH command-line interfaces, network frameworks, device frameworks, and more. Its modular design allows for high internal cohesion inside the components and low coupling between components.

37
- [RT-Thread software package](https://packages.rt-thread.org/en/index.html): A general-purpose software component running on the RT-Thread IoT operating system platform for different application areas, consisting of description information, source code or library files. RT-Thread provides an open package platform with officially available or developer-supplied packages that provide developers with a choice of reusable packages that are an important part of the RT-Thread ecosystem. The package ecosystem is critical to the choice of an operating system because these packages are highly reusable and modular, making it easy for application developers to build the system they want in the shortest amount of time. RT-Thread supports 450+ software packages.
B
Bernard Xiong 已提交
38

C
Cathy Li 已提交
39
## RT-Thread Features
B
Bernard Xiong 已提交
40

mysterywolf's avatar
mysterywolf 已提交
41
- Designed for resource-constrained devices, the minimum kernel requires only 1.2KB of RAM and 3 KB of Flash.
mysterywolf's avatar
mysterywolf 已提交
42
- A variety of standard interfaces, such as POSIX, CMSIS, C++ application environment.
mysterywolf's avatar
mysterywolf 已提交
43 44 45 46
- Has rich components and a prosperous and fast growing package ecosystem.
- Elegant code style, easy to use, read and master.
- High Scalability. RT-Thread has high-quality scalable software architecture, loose coupling, modularity, is easy to tailor and expand.
- Supports high-performance applications.
mysterywolf's avatar
mysterywolf 已提交
47 48
- Supports all mainstream compiling tools such as GCC, Keil and IAR.
- Supports a wide range of <a href="https://www.rt-thread.io/board.html">architectures and chips</a>.
B
Bernard Xiong 已提交
49

C
Cathy Li 已提交
50
## Code Catalogue
B
Bernard Xiong 已提交
51

C
Cathy Li 已提交
52
   RT-Thread source code catalog is shown as follow:
B
Bernard Xiong 已提交
53

C
Cathy Li 已提交
54 55 56
| Name          | Description                                             |
| ------------- | ------------------------------------------------------- |
| BSP          | Board Support Package based on the porting of various development boards |
B
Bernard Xiong 已提交
57 58
| components    | Components, such as finsh shell, file system, protocol stack etc. |
| documentation | Related documents, like coding style, doxygen etc.        |
C
Cathy Li 已提交
59
| examples      | Related sample code                                     |
B
Bernard Xiong 已提交
60 61 62 63
| include       | Head files of RT-Thread kernel                           |
| libcpu        | CPU porting code such as ARM/MIPS/RISC-V etc. |
| src           | The source files for the RT-Thread kernel. |
| tools         | The script files for the RT-Thread command build tool. |
B
Bernard Xiong 已提交
64

mysterywolf's avatar
mysterywolf 已提交
65
RT-Thread has now been ported for nearly 200 development boards, most BSPs support MDK, IAR development environment and GCC compiler, and have provided default MDK and IAR project, which allows users to add their own application code directly based on the project. Each BSP has a similar directory structure, and most BSPs provide a README.md file, which is a markdown-format file that contains the basic introduction of BSP, and introduces how to simply start using BSP.
C
Cathy Li 已提交
66 67 68 69 70

# Resources

## Supported Architectures

B
Bernard Xiong 已提交
71
RT-Thread supports many architectures, and has covered the major architectures in current applications. Architecture and chip manufacturer involved:
C
Cathy Li 已提交
72 73 74

- **ARM Cortex-M0/M0+**:manufacturers like ST
- **ARM Cortex-M3**:manufacturers like ST、Winner Micro、MindMotion, ect.
R
Rbb666 已提交
75
- **ARM Cortex-M4**:manufacturers like ST、Infineon、Nuvoton、NXP、[Nordic](https://github.com/RT-Thread/rt-thread/tree/master/bsp/nrf5x)、GigaDevice、Realtek、Ambiq Micro, ect.
C
Cathy Li 已提交
76 77
- **ARM Cortex-M7**:manufacturers like ST、NXP
- **ARM Cortex-M23**:manufacturers like GigaDevice
L
liukangcc 已提交
78
- **ARM Cortex-M33**:manufacturers like ST
C
Cathy Li 已提交
79 80 81 82 83 84
- **ARM Cortex-R4**
- **ARM Cortex-A8/A9**:manufacturers like NXP
- **ARM7**:manufacturers like Samsung
- **ARM9**:manufacturers like Allwinner、Xilinx 、GOKE
- **ARM11**:manufacturers like Fullhan
- **MIPS32**:manufacturers like loongson、Ingenic
85
- **RISC-V RV32E/RV32I[F]/RV64[D]**:manufacturers like sifive、[Canaan Kendryte](https://github.com/RT-Thread/rt-thread/tree/master/bsp/k210)[bouffalo_lab](https://github.com/RT-Thread/rt-thread/tree/master/bsp/bouffalo_lab)[Nuclei](https://nucleisys.com/)[T-Head](https://www.t-head.cn/)[HPMicro](https://github.com/RT-Thread/rt-thread/tree/master/bsp/hpmicro)
C
Cathy Li 已提交
86 87 88 89 90 91 92 93 94
- **ARC**:manufacturers like SYNOPSYS
- **DSP**:manufacturers like TI
- **C-Sky**
- **x86**

## Supported IDE and Compiler

The main IDE/compilers supported by RT-Thread are:

mysterywolf's avatar
mysterywolf 已提交
95
- RT-Thread Studio IDE
C
Cathy Li 已提交
96 97 98 99
- MDK KEIL
- IAR
- GCC

mysterywolf's avatar
mysterywolf 已提交
100
## RT-Thread Studio IDE
C
Cathy Li 已提交
101

mysterywolf's avatar
mysterywolf 已提交
102
[User Manual](https://www.rt-thread.io/document/site/rtthread-studio/um/studio-user-manual/) | [Tutorial Videos](https://youtu.be/ucq5eJgZIQg)
C
Cathy Li 已提交
103

mysterywolf's avatar
mysterywolf 已提交
104
RT-Thread Studio IDE (a.k.a. RT-Studio) is a one-stop intergrated development environment built by RT-Thread team. It has a easy-to-use graphical configuration system and a wealth of software packages and components resources. RT-Studio has the features of project creation, configuration and management,as well as code editing, SDK management, build configuration, debugging configuration, program download and debug. We're looking to make the use of RT-Studio as intuitive as possible, reducing the duplication of work and improving the development efficiency.
C
Cathy Li 已提交
105

mysterywolf's avatar
mysterywolf 已提交
106
![studio](./documentation/figures/studio.gif)
C
Cathy Li 已提交
107

mysterywolf's avatar
mysterywolf 已提交
108 109
## Env Tool

110
[User Manual](documentation/env/env.md) | [Tutorial Videos](https://www.youtube.com/watch?v=dEK94o_YoSo)
C
Cathy Li 已提交
111

mysterywolf's avatar
mysterywolf 已提交
112
In the early stage, RT-Thread team also created an auxiliary tool called Env. It is an auxiliary tool with a TUI (Text-based user interface). Developers can use Env tool to configure and generate the GCC, Keil MDK, and IAR projects.
C
Cathy Li 已提交
113

mysterywolf's avatar
mysterywolf 已提交
114
![env](./documentation/figures/env.png)
C
Cathy Li 已提交
115

mysterywolf's avatar
mysterywolf 已提交
116
# Getting Started
C
Cathy Li 已提交
117

mysterywolf's avatar
mysterywolf 已提交
118
[RT-Thread Programming Guide](https://www.rt-thread.io/document/site/tutorial/quick-start/introduction/introduction/) | [RT-Thread Studio IDE](https://www.rt-thread.io/studio.html) | [Kernel Sample](https://github.com/RT-Thread-packages/kernel-sample) | [RT-Thread Beginners Guide](https://www.youtube.com/watch?v=ZMi1O-Rr7yc&list=PLXUV89C_M3G5KVw2IerI-pqApdSM_IaZo)
C
Cathy Li 已提交
119

mysterywolf's avatar
mysterywolf 已提交
120
Based on [STM32F103 BluePill](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f103-blue-pill) | [Raspberry Pi Pico](https://github.com/RT-Thread/rt-thread/tree/master/bsp/raspberry-pico)
C
Cathy Li 已提交
121

mysterywolf's avatar
mysterywolf 已提交
122
## Simulator
C
Cathy Li 已提交
123

mysterywolf's avatar
mysterywolf 已提交
124 125
RT-Thread BSP can be compiled directly and downloaded to the corresponding development board for use. In addition, RT-Thread also provides qemu-vexpress-a9 BSP, which can be used without hardware platform. See the getting started guide below for details. Getting Started of QEMU with Env:
[Windows](documentation/quick-start/quick_start_qemu/quick_start_qemu.md) | [Linux Ubuntu](documentation/quick-start/quick_start_qemu/quick_start_qemu_linux.md) | [Mac OS](documentation/quick-start/quick_start_qemu/quick_start_qemu_macos.md)
C
Cathy Li 已提交
126 127 128

# License

C
CaiYiming0503 已提交
129
RT-Thread follows the Apache License 2.0 free software license. It's completely open-source, can be used in commercial applications for free, does not require the disclosure of code, and has no potential commercial risk. License information and copyright information can generally be seen at the beginning of the code:
C
Cathy Li 已提交
130

B
Bernard Xiong 已提交
131 132 133 134 135 136
```c
/* Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 * ...
 */
C
Cathy Li 已提交
137 138 139 140
```

# Community

mysterywolf's avatar
mysterywolf 已提交
141
RT-Thread is very grateful for the support from all community developers, and if you have any ideas, suggestions or questions in the process of using RT-Thread, RT-Thread can be reached by the following means, and we are also updating RT-Thread in real time on these channels. At the same time, any questions can be asked in the [issue section of RT-Thread repository](https://github.com/RT-Thread/rt-thread/issues) or [RT-Thread forum](https://club.rt-thread.io/), and community members will answer them.
C
Cathy Li 已提交
142

mysterywolf's avatar
mysterywolf 已提交
143
[Website](https://www.rt-thread.io) | [Github](https://github.com/RT-Thread/rt-thread) | [Twitter](https://twitter.com/rt_thread) | [LinkedIn](https://www.linkedin.com/company/rt-thread-iot-os/posts/?feedView=all) | [Youtube](https://www.youtube.com/channel/UCdDHtIfSYPq4002r27ffqPw) | [Facebook](https://www.facebook.com/RT-Thread-IoT-OS-110395723808463/?modal=admin_todo_tour) | [Medium](https://rt-thread.medium.com/)
C
Cathy Li 已提交
144 145 146

# Contribution

mysterywolf's avatar
mysterywolf 已提交
147
If you are interested in RT-Thread and want to join in the development of RT-Thread and become a code contributor,please refer to the [Code Contribution Guide](documentation/contribution_guide/contribution_guide.md).
mysterywolf's avatar
mysterywolf 已提交
148

mysterywolf's avatar
mysterywolf 已提交
149
## Thanks for the following contributors!
mysterywolf's avatar
mysterywolf 已提交
150 151 152 153

<a href="https://github.com/RT-Thread/rt-thread/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=RT-Thread/rt-thread" />
</a>