3 Steps to Get RTOS Running on Dev Board.
Abby
Posted on December 23, 2020
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
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]:
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
. 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:
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 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 program download result is shown as follows:
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;
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:
Posted on December 23, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024