当前位置:网站首页>Introduction to RT thread env tool (learning notes)
Introduction to RT thread env tool (learning notes)
2022-07-01 15:44:00 【Xiaohui_ Super】
In this paper, the reference 《RT-Thread Document center ——Env User's Manual 》
List of articles
Env brief introduction
Env yes RT-Thread Development aids launched , For based on RT-Thread Project engineering of operating system , Provides a compilation build environment 、 Graphical system configuration and software package management function .
It's built in menuconfig Provides an easy-to-use configuration clipping tool , But for the kernel 、 Free tailoring of components and software packages , Make the system build in the way of building blocks .—— original text
download Env
Env The tool contains RT-Thread Source code development and compilation environment and software package management system . Download address :https://www.rt-thread.org/page/download.html
【 Be careful 】
- Env The software package management function of requires Git Support for ,Git Download address :https://git-scm.com/downloads, At the same time Git Add to environment variable .
- In the pathname in the tool environment , Chinese characters or spaces cannot appear .
Env Start of
There are two ways to start Env, One is to open it directly env.exe, If the opening fails, you can try to use env.bat( At this time, the working path is Env Software Directory ); The other is to open through the right-click menu , But you need to first Env Add to right-click menu , For specific operations, please refer to the following figure :

Use Env compile BSP
scons yes RT-Thread Compilation and construction tools used , have access to scons Relevant commands to compile RT-Thread .
Enter one at random RT-Thread BSP engineering , Input scons command , At this time Env The default... Will be used ARM_GCC Tool chain compilation bsp:

Compile successfully , The last step in compiling is to use arm-none-eabi-bojcopy take .elf The file is converted to .bin file ( Binary executable ).

If using mdk/iar project , You can compile with the following command .
scons --target=iar
scons --target=mdk4
scons --target=mdk5
The figure below shows the use of scons --target=mdk5 The result of compilation , After the project link is completed , Used fromeelf take .elf The file is converted to .bin file .

and fromelf It is Keil The format conversion tool used by the software :

Use Env To configure BSP
menuconfig It's a graphical configuration tool ,RT-Thread Use it to configure the whole system 、 tailoring .
stay bsp root directory ( Need to have Kconfig file ) Input menuconfig Command to open the graphical configuration tool :

The functions supported by the image menu include :RT-Thread Kernel configuration ( modify rtconfig.h)、RT-Thread Component management 、RT-Thread Online software package 、 Hardware driver configuration and external library .
Kernel configuration
One RT-Thread All kernel configurations of the project are placed in rtconfig.h in , By modifying the RT-Thread Kernel Configuration of , Can realize the modification rtconfig.h Purpose .

Component management
RT-Thread There are many tailorable components , Like the command line (msh)、 The Internet 、 Device drivers .

Package management
RT-Thread Provide a software package management platform , There are software packages provided by the official or developers . The platform provides developers with many choices of reusable software packages , This is also RT-Thread An important part of Ecology .
software package Git Warehouse :https://github.com/RT-Thread-packages, At present ( When writing an article ) The warehouse has 128 Software package .

Can be in Env Command line input pkgs Manage package updates (menuconfig Package configuration modified in , Still need to be in Env Input pkgs --update To synchronize to the project ).

If the local software package is not updated for a long time , The local software package may not be synchronized with the server . At this time, we can pass through Env Command line input pkgs --upgrade To solve this problem . And it's also good for Env upgrade .
Drive configuration
Here you can manage bsp Opening and closing of related drives ,

Here are the options in the on-chip peripheral driver :

External library
In the external library, you can choose whether to use some libraries under some project directories , The following are the Pandora development board of punctual atom bsp External libraries in .

Env Tool configuration
The new version of the Env The tool includes automatic updating of software packages and automatic generation mdk/iar Project options , Not on by default . have access to menuconfig -s/–setting Command to configure .
Here is the default configuration :

Here is the second function —— Automatically create mdk/iar engineering
When modifying menuconfig After the configuration , Must input scons --target=xxx To regenerate the project . Turn on this function , Will be quitting menuconfig when , Automatically regenerate the project , No more manual input scons Command to regenerate the project .
边栏推荐
- Wechat applet 01 bottom navigation bar settings
- An intrusion detection model
- Advanced cross platform application development (24): uni app realizes file download and saving
- S32K1xx 微控制器的硬件設計指南
- 雷神科技冲刺北交所,拟募集资金5.4亿元
- 【php毕业设计】基于php+mysql+apache的教材管理系统设计与实现(毕业论文+程序源码)——教材管理系统
- Some abilities can't be learned from work. Look at this article, more than 90% of peers
- 【STM32学习】 基于STM32 USB存储设备的w25qxx自动判断容量检测
- 自动、智能、可视!深信服SSLO方案背后的八大设计
- 工厂高精度定位管理系统,数字化安全生产管理
猜你喜欢

【目标跟踪】|模板更新 时间上下文信息(UpdateNet)《Learning the Model Update for Siamese Trackers》

Tanabata confession introduction: teach you to use your own profession to say love words, the success rate is 100%, I can only help you here ~ (programmer Series)

七夕表白攻略:教你用自己的专业说情话,成功率100%,我只能帮你们到这里了啊~(程序员系列)

张驰咨询:锂电池导入六西格玛咨询降低电池容量衰减

TensorFlow團隊:我們沒被拋弃

Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results

采集数据工具推荐,以及采集数据列表详细图解流程

一次革命、两股力量、三大环节:《工业能效提升行动计划》背后的“减碳”路线图...

最新NLP赛事实践总结!

Qt+pcl Chapter 6 point cloud registration ICP Series 2
随机推荐
[Cloudera][ImpalaJDBCDriver](500164)Error initialized or created transport for authentication
[stm32-usb-msc problem help] stm32f411ceu6 (Weact) +w25q64+usb-msc flash uses SPI2 to read out only 520kb
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
u本位合约和币本位合约有区别,u本位合约会爆仓吗
[cloud trend] new wind direction in June! Cloud store hot list announced
微信小程序01-底部导航栏设置
Recommendation of data acquisition tools and detailed graphic process of data acquisition list
Can I choose to open an account on Great Wall Securities? Is it safe?
The latest NLP game practice summary!
Advanced cross platform application development (24): uni app realizes file download and saving
Hardware design guide for s32k1xx microcontroller
What is the forkjoin framework in the concurrent programming series?
Is JPMorgan futures safe to open an account? What is the account opening method of JPMorgan futures company?
说明 | 华为云云商店「商品推荐榜」
三星率先投产3nm芯片,上海应届硕士生可直接落户,南开成立芯片科学中心,今日更多大新闻在此...
远程办公经验?来一场自问自答的介绍吧~ | 社区征文
智慧党建: 穿越时空的信仰 | 7·1 献礼
Task.Run(), Task.Factory.StartNew() 和 New Task() 的行为不一致分析
vim 从嫌弃到依赖(22)——自动补全
6.2 normalization 6.2.6 BC normal form (BCNF) 6.2.9 normalization summary