当前位置:网站首页>rt-thread测试
rt-thread测试
2022-06-11 03:23:00 【ee230】
本文描述在ubuntu下编译stm32f10x的过程
1. 源码下载
从github下载rt-thread源码
2. 安装scons编译工具
具体请查看rt-thread源码下面的README文件
3. 下载arm-none-linux
网上自己搜索,这里下载linux版本的
4. 配置
设置编译配置文件 rtconfig.py,
软件模块配置文件 rtconfig.h
drivers/board.h
打开和关闭某些功能模块
5. 编译
进入bsp/stm32f10x目录,运行
scons
启动编译后,大概30秒编译完成,在当前目录下生成rt-thread.bin文件。下载到stm32f103的08000000地址进行测试。
打开finsh命令行终端:
在rtconfig.h中设置:
#define RT_USING_COMPONENTS_INIT
........................
/* SECTION: Console options */
#define RT_USING_CONSOLE
/* the buffer size of console*/
#define RT_CONSOLEBUF_SIZE 128
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart1" />
#define RT_CONSOLE_DEVICE_NAME "uart1"
/* SECTION: finsh, a C-Express shell */
#define RT_USING_FINSH
/* Using symbol table */
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
手上刚好有一块STM32的板子,编译完成后测试效果如下:
\ | /
- RT - Thread Operating System
/ | \ 3.0.1 build Dec 8 2017
2006 - 2017 Copyright by rt-thread team
finsh>>
finsh>>
边栏推荐
- Canvas+svg line particle animation web page background
- canvas交互式星星动画背景js特效
- HQChart实战教程55-欧易网K线面积图
- ROS Basics - use the launch file (I) - start multiple ROS nodes in batch
- 音乐正版率关键数据缺失,网易云音乐IPO胜算几何?
- sonarqube平台基础使用
- iQOO 8实测上手体验:王者归来,从不高调
- Artalk | how to build a domestic hyperfusion evolutionary base with minimum investment?
- Lombok use
- Basic use of sonarqube platform
猜你喜欢

多线程四部曲之NSThread

【安全科普】挖矿技术,从一个理工男的爱情故事讲起

【ELT.ZIP】OpenHarmony啃论文俱乐部——快速随机访问字符串压缩

OPPO K9试水“捆绑销售”,消费者“赚了”还是“亏了”?

MySQL learning notes: JSON nested array query

Azure Kubernates Service 更新|提升开发体验和效率

潮玩力真火力!年轻人第一台巨幕影院?酷开电视Max 86“庞然来袭

Instructor add function_ Enable auto fill_ Instructor modification function

postgresql源码学习(22)—— 故障恢复③-事务日志的注册

{dataSource-1} closing ... {dataSource-1} closed
随机推荐
WinDbg virtual machine dual machine debugging driver file debugging
C语言数组与指针练习题
cv. Houghcircles: Circular Hough transform opencv
postgresql copy语句
Canvas+svg line particle animation web page background
R生物信息学统计分析
B_ QuRT_ User_ Guide(18)
Disk quota exceeded
词汇表的构建——代码补全快餐教程(3)-分词
Mazhiqiang: research progress and application of speech recognition technology -- RTC dev Meetup
Integrated MP code generator
Mavros控制无人机在gazebo环境下进行双目SLAM
Tweenmax colorful ball bouncing animation
PostgreSQL source code learning (XX) -- fault recovery ① - transaction log format
ROS Basics - use the launch file (I) - start multiple ROS nodes in batch
一文搞懂单片机驱动8080LCD
Multi thread alternate output ab
Free flying animation of paper plane based on SVG
PostgreSQL source code learning (22) - fault recovery ③ - transaction log registration
R analysis visual practical data (flight \u education \u restaurant \u tenant \u change \u life \u safety)