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.
Install RT-Thread 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.
Open RT-Thread Studio, click[File]-[New]-[RT-Thread Project]:
The configuration process can be summarized as the following steps:
Define your own project name and storage path of project generated files.
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.
The project compilation result is shown as follows:
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 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
After selecting the emulator, click the download button to download
The information printed in the terminal will be like this:
From the information printed on the terminal, you can see that RT-Thread is successfully running on the board.
RT-Thread Contact Info: