User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:liteos:stm32f103

Run LiteOS On STM32F103RCT6


环境概述

开发环境:Keil LiteOS: CPU: STM32F103RCT6

LiteOS准备

下载LiteOS源码

方式1:在搜索引擎搜索打包好的LiteOS源码包 方式2:从gitee下载最新代码

本文使用方式2,直接git最新代码,命令如下:

git clone https://gitee.com/LiteOS/LiteOS.git

clone成功,结果如下

Cloning into 'LiteOS'...
remote: Enumerating objects: 35859, done.
remote: Counting objects: 100% (35859/35859), done.
remote: Compressing objects: 100% (15654/15654), done.
remote: Total 35859 (delta 19907), reused 35182 (delta 19285), pack-reused 0
Receiving objects: 100% (35859/35859), 321.67 MiB | 8.66 MiB/s, done.
Resolving deltas: 100% (19907/19907), done.
Checking out files: 100% (4131/4131), done.

本文基于LiteOS V200R001C50B032_20181023,因此取出V200R001C50B032_20181023版本,命令:

git.exe checkout -f tag_LiteOS_V200R001C50B032_20181023 --

Checkout成功

Checking out files: 100% (7081/7081), done.
Note: checking out 'v1.1.2'.

可见LiteOS代码目录如下图

建立实验工程

1.新建工程,选择合适的器件(STM32F103RC)

library/liteos/stm32f103.txt · Last modified: 2022/05/02 00:32 (external edit)