当前位置:网站首页>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 .
边栏推荐
- Is JPMorgan futures safe to open an account? What is the account opening method of JPMorgan futures company?
- Zhang Chi's class: several types and differences of Six Sigma data
- Rhcsa fourth day operation
- One revolution, two forces, three links: the "carbon reduction" roadmap behind the industrial energy efficiency improvement action plan
- 【一天学awk】函数与自定义函数
- Short Wei Lai grizzly, to "touch China" in the concept of stocks for a living?
- Connect the ABAP on premises system to the central inspection system for custom code migration
- Crypto Daily:孙宇晨在MC12上倡议用数字化技术解决全球问题
- ABAP-屏幕切换时,刷新上一个屏幕
- [video memory optimization] deep learning video memory optimization method
猜你喜欢

phpcms后台上传图片按钮无法点击
![Stm32f411 SPI2 output error, pb15 has no pulse debugging record [finally, pb15 and pb14 were found to be short circuited]](/img/ea/8c9f716717bc08f2e563c577738ec8.png)
Stm32f411 SPI2 output error, pb15 has no pulse debugging record [finally, pb15 and pb14 were found to be short circuited]

6.2 normalization 6.2.6 BC normal form (BCNF) 6.2.9 normalization summary

STM32F411 SPI2输出错误,PB15无脉冲调试记录【最后发现PB15与PB14短路】

Photoshop plug-in HDR (II) - script development PS plug-in

Automatic, intelligent and visual! Deeply convinced of the eight designs behind sslo scheme

What is the forkjoin framework in the concurrent programming series?
![[target tracking] | template update time context information (updatenet)](/img/53/0a8b2135fa4903f30e4573256c393a.png)
[target tracking] | template update time context information (updatenet) "learning the model update for Siamese trackers"

你TM到底几点下班?!!!

TensorFlow团队:我们没被抛弃
随机推荐
[cloud trend] new wind direction in June! Cloud store hot list announced
Create employee data in SAP s/4hana by importing CSV
Preorder, inorder, follow-up of binary tree (non recursive version)
SAP S/4HANA: 一条代码线,许多种选择
七夕表白攻略:教你用自己的专业说情话,成功率100%,我只能帮你们到这里了啊~(程序员系列)
采集数据工具推荐,以及采集数据列表详细图解流程
【目标跟踪】|模板更新 时间上下文信息(UpdateNet)《Learning the Model Update for Siamese Trackers》
Can I choose to open an account on Great Wall Securities? Is it safe?
ABAP-屏幕切换时,刷新上一个屏幕
[pyGame practice] do you think it's magical? Pac Man + cutting fruit combine to create a new game you haven't played! (source code attached)
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(三)
并发编程系列之什么是ForkJoin框架?
SAP s/4hana: one code line, many choices
[Cloudera][ImpalaJDBCDriver](500164)Error initialized or created transport for authentication
Automatic, intelligent and visual! Deeply convinced of the eight designs behind sslo scheme
自动、智能、可视!深信服SSLO方案背后的八大设计
工厂高精度定位管理系统,数字化安全生产管理
Redis秒杀demo
微服务追踪SQL(支持Isto管控下的gorm查询追踪)
#夏日挑战赛# HarmonyOS canvas实现时钟