3 Steps to Get RTOS Running on Dev Board.
Published: 2020-12-23 07:35:45

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5kbgyuj6igg0dhl6qhll.png)

This article introduces how to get RTOS running on a dev board. Here we take the example of running RT-Thread RTOS on the stm32f103RB.

## Preparation

[Install RT-Thread Studio](https://www.rt-thread.io/download.html?download=Studio)
RT-Thread Studio is a one-stop development tool that has an easy-to-use graphical configuration system and 270+ software packages and components resources, simplify the complexity of software development.

## Create Project

Open RT-Thread Studio, click[File]-[New]-[RT-Thread Project]:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qpvngz47lyuo268s31cc.png)



Configure this new project:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ei5cp43hert8qjerbh4f.png)


The configuration process can be summarized as the following steps:

- Define your own project name and storage path of project generated files.

- Select `Create project based on MCU`, here RT-Thread v4.0.2 is selected.

- Select the manufacturer and chip model.

- Configure serial port information.

- Configure debugger information.

After the project configuration is completed, click the `Finish` button below to create the RT-Thread Standard version project.



## Compile

Left-click to select the current project, and click the button `Build `.![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/57uoq31f8qn82pf6qjfz.png) to compile the project, `quick_start` is the project name. Or `right click -> build project` to compile the project.

The project compilation result is shown as follows:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/v7tmhyxrx5ij2chr3fhe.png)

## Download

After the project is successfully compiled, you can download the program to your own board.

The program can be downloaded via the `Download Program` button![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/tbicrsovfx81vg0gcfvq.png) in the menu bar. You can also download it through `Right-click -> Download Program`. The download method defaults when creating a new project. If you need to change it, click the inverted triangle next to the `Download Program` button in the menu bar to debug. Currently, RT-Thread Studio supports ST-Link, J-Link, and DAP-Link download methods. An example of selecting a debugger is as follows

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ecjp7l414uj9jxcwb07i.png)

After selecting the emulator, click the download button to download

The program download result is shown as follows:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/f1thfhrog6usl66b26b8.png)


## Verification

After the program is successfully downloaded, press the reset button of the development board, and use the `Open a Terminal` option in the Studio menu bar to open a serial terminal, as shown below;
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/162wgkyyxh1wf2n1hrcz.png)


The information printed in the terminal will be like this:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/sifghi9cl8bj5c2gy87d.png)

From the information printed on the terminal, you can see that RT-Thread is successfully running on the board.


**RT-Thread Contact Info:**

 [Website](https://www.rt-thread.io/)  |  [Github](https://github.com/RT-Thread)  | [Twitter](https://twitter.com/rt_thread) |  [Facebook](https://www.facebook.com/RT-Thread-IoT-OS-110395723808463)   |   [Youtube](https://www.youtube.com/channel/UCdDHtIfSYPq4002r27ffqPw
)