当前位置:网站首页>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 .
边栏推荐
- MySQL的零拷贝技术
- Photoshop插件-HDR(二)-脚本开发-PS插件
- VIM from dislike to dependence (22) -- automatic completion
- 【开源数据】基于虚拟现实场景的跨模态(磁共振、脑磁图、眼动)人类空间记忆研究开源数据集
- Can I choose to open an account on Great Wall Securities? Is it safe?
- STM32F4-TFT-SPI时序逻辑分析仪调试记录
- [target tracking] | template update time context information (updatenet) "learning the model update for Siamese trackers"
- 张驰咨询:家电企业用六西格玛项目减少客户非合理退货案例
- 6.2 normalization 6.2.6 BC normal form (BCNF) 6.2.9 normalization summary
- 微信小程序02-轮播图实现与图片点击跳转
猜你喜欢
AVL 平衡二叉搜索树
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
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)
Wechat applet 02 - Implementation of rotation map and picture click jump
【STM32-USB-MSC问题求助】STM32F411CEU6 (WeAct)+w25q64+USB-MSC Flash用SPI2 读出容量只有520KB
C#/VB.NET 合并PDF文档
Guide de conception matérielle du microcontrôleur s32k1xx
一次革命、两股力量、三大环节:《工业能效提升行动计划》背后的“减碳”路线图...
A unifying review of deep and shallow anomaly detection
HR面试:最常见的面试问题和技巧性答复
随机推荐
Zhang Chi Consulting: lead lithium battery into six sigma consulting to reduce battery capacity attenuation
自動、智能、可視!深信服SSLO方案背後的八大設計
[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)
[one day learning awk] conditions and cycles
Preorder, inorder, follow-up of binary tree (non recursive version)
她就是那个「别人家的HR」|ONES 人物
STM32F411 SPI2输出错误,PB15无脉冲调试记录【最后发现PB15与PB14短路】
最新NLP赛事实践总结!
[target tracking] | template update time context information (updatenet) "learning the model update for Siamese trackers"
Zero copy technology of MySQL
MySQL backup and restore single database and single table
Go zero actual combat demo (I)
Pico,能否拯救消费级VR?
STM32F1与STM32CubeIDE编程实例-PWM驱动蜂鸣器生产旋律
MySQL高级篇4
微信小程序01-底部导航栏设置
Wechat applet 01 bottom navigation bar settings
Description | Huawei cloud store "commodity recommendation list"
药品溯源夯实安全大堤
二叉树的前序,中序,后续(非递归版本)