当前位置:网站首页>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 .
边栏推荐
- 二叉树的前序,中序,后续(非递归版本)
- 七夕表白攻略:教你用自己的专业说情话,成功率100%,我只能帮你们到这里了啊~(程序员系列)
- Pocket network supports moonbeam and Moonriver RPC layers
- 6.2 normalization 6.2.6 BC normal form (BCNF) 6.2.9 normalization summary
- 使用swiper制作手机端轮播图
- 【显存优化】深度学习显存优化方法
- Go语学习笔记 - gorm使用 - 表增删改查 | Web框架Gin(八)
- 采集数据工具推荐,以及采集数据列表详细图解流程
- 【一天学awk】条件与循环
- Wechat applet 02 - Implementation of rotation map and picture click jump
猜你喜欢

Qt+pcl Chapter 6 point cloud registration ICP Series 2

【一天学awk】条件与循环

【Pygame实战】你说神奇不神奇?吃豆人+切水果结合出一款你没玩过的新游戏!(附源码)

Qt+pcl Chapter 9 point cloud reconstruction Series 2

Deep operator overloading (2)
Implementation of deploying redis sentry in k8s

Photoshop插件-HDR(二)-脚本开发-PS插件
![[STM32 learning] w25qxx automatic judgment capacity detection based on STM32 USB storage device](/img/41/be7a295d869727e16528041ad08cd4.png)
[STM32 learning] w25qxx automatic judgment capacity detection based on STM32 USB storage device

硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件
![[stm32-usb-msc problem help] stm32f411ceu6 (Weact) +w25q64+usb-msc flash uses SPI2 to read out only 520kb](/img/ec/fa51b21468708609f998de1b2b84fe.jpg)
[stm32-usb-msc problem help] stm32f411ceu6 (Weact) +w25q64+usb-msc flash uses SPI2 to read out only 520kb
随机推荐
MySQL的零拷贝技术
Redis high availability principle
将ABAP On-Premises系统连接到中央检查系统以进行自定义代码迁移
A unifying review of deep and shallow anomaly detection
TensorFlow团队:我们没被抛弃
Some abilities can't be learned from work. Look at this article, more than 90% of peers
Pico, can we save consumer VR?
HR面试:最常见的面试问题和技巧性答复
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(三)
An intrusion detection model
Qt+pcl Chapter 9 point cloud reconstruction Series 2
Photoshop plug-in HDR (II) - script development PS plug-in
微信小程序02-轮播图实现与图片点击跳转
The last picture is seamlessly connected with the first picture in the swiper rotation picture
说明 | 华为云云商店「商品推荐榜」
Qt+pcl Chapter 6 point cloud registration ICP Series 5
如何写出好代码 - 防御式编程指南
大龄测试/开发程序员该何去何从?是否会被时代抛弃?
Zero copy technology of MySQL
采集数据工具推荐,以及采集数据列表详细图解流程