当前位置:网站首页>ESP at installation esp8266 and esp32 versions
ESP at installation esp8266 and esp32 versions
2022-07-07 23:32:00 【Little river god is tangled】
One 、esp-at obtain
Use in an available directory git Tools clone the official website of Lexin esp-at project
git clone https://github.com/espressif/esp-at.git
If it's too slow, you can clone this website :
git clone -b release/v3.4 https://github.com.cnpmjs.org/espressif/esp-at.git
Two 、 Depending on the environment to install
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
python -m pip install pyyaml xlrd
3、 ... and 、 Install the submodules
If you use esp-at In the document “build.py” Automatically clone esp-idf Sub module , But it will be a long time , and ESP8266 and ESP32 The sub modules of are all different , Not for public use , When using, you should download them separately . Downloading by yourself will be faster , Because we don't use : Official of Lexin GitHub.
1.ESP8266 Sub module installation of
Clone well esp-at after , stay esp-at Run under file :
cd esp-at
git clone -b release/v3.4 https://github.com.cnpmjs.org/espressif/ESP8266_RTOS_SDK.git esp-idf
Then enter esp-idf File to install and configure environment variables ,
cd esp-idf
./install.sh
Under normal circumstances, some files will be downloaded , After installation, you will be prompted to run export.sh
If there is such a problem :
That's because since python 2.7 Verification is added after version , Lead to URL Connection error .
resolvent :
Just disable verification , stay /usr/lib/python3.8/urllib/request.py Insert :
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

If not again , Please clone a lower version ; Blogger is installing esp-idf v4.3 Not in version , however v4.2 Version can . It may be used in the new version python Caused by different versions .
Pull ESP8266 Supported sub modules
stay esp-idf Under the table of contents , open .gitmodules file
cd esp-idf
vi .gitmodules
hold url Such as :https://gitee.com/chencong_cc . This is the personal warehouse of Anson engineers , You can use .

Save after exit , perform :
git submodule init
git submodule update
After success, it's like this :
After pulling the supported sub modules , Please run “export.sh” Configure environment variables , You can go back to esp-at Directory operation build.py, The following error is very likely to occur for the first time , Tip no flash_project_args file :
cd esp-at
./build.sh

This is because stay build.py It needs to be configured before , To generate flash_project_args file , Use the following instructions to configure
./build.sh menuconfig
You will see this configuration interface appear , If this interface cannot appear , Please go back esp-idf The directory continues to run install.sh And re run export.sh:
Right click the direction key and select “Save” preservation , Left click to select “Exit” sign out , Then execute again build.py; Here are some build.py Instructions :
all // Compile all projects
app // Compile only app
app-flash // Burn only app The program
bootloader // Compile only bootloader
bootloader-flash // Burn only bootloader
clean // eliminate build Nie Rong in the document
confserver // function JSON Configure the service
efuse_common_table Genereate C-source for IDF's eFuse fields.
efuse_custom_table Genereate C-source for user's eFuse fields.
encrypted-app-flash Flash the encrypted app only.
encrypted-flash Flash the encrypted project.
erase_flash // erase flash.
erase_otadata // erase OTA data
flash // Burn the program
fullclean // eliminate build Configuration of
menuconfig // Run the configuration tool
monitor // Display serial port debugging
partition_table Build only partition table.
partition_table-flash Flash partition table only.
read_otadata Read otadata partition.
reconfigure Re-run CMake.
show_efuse_table Print eFuse table.
size Print basic size information about the app.
size-components Print per-component size information.
size-files Print per-source-file size information.
When running the compile command (./build.py build) This error may also occur :
solve : This is due to the lack of a dependency , Just install the following :
python -m pip install pyyaml xlrd
2.esp32 Sub module
esp-at I have pulled it before esp-idf, Three files or folders need to be deleted :
1、build Folder
2、sdkconfig file
3、esp-idf Folder 
Run again after deletion ./build.py, Or clone yourself esp-idf;
cd esp-at
git clone -b release/v4.2 https://github.com.cnpmjs.org/espressif/esp-idf.git
alike , After cloning, you also need to run ./install.sh, The subsequent process is the same as installation ESP8266 The process is the same .
This document is still being updated , Pay attention to collection !
边栏推荐
- The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
- LDO voltage stabilizing chip - internal block diagram and selection parameters
- Freelink open source call center design idea
- 进度播报|广州地铁七号线全线29台盾构机全部完成始发
- 深入理解Mysql锁与事务隔离级别
- Turbo introder common scripts
- Windows set redis to start automatically
- 违法行为分析1
- FreeLink开源呼叫中心设计思想
- Illegal behavior analysis 1
猜你喜欢

三问TDM

Oracle database backup and recovery
![Ros2 topic (03): the difference between ros1 and ros2 [01]](/img/20/39d47c93400050a7bc8ad7efea51b3.png)
Ros2 topic (03): the difference between ros1 and ros2 [01]

Home appliance industry channel business collaboration system solution: help home appliance enterprises quickly realize the Internet of channels

B_QuRT_User_Guide(37)

Oracle-数据库的备份与恢复

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)

Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process

深入理解Mysql锁与事务隔离级别

Puce à tension stabilisée LDO - schéma de bloc interne et paramètres de sélection du modèle
随机推荐
伸展树(一) - 图文解析与C语言实现
谷歌浏览器怎么登录及开启同步功能
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
Three questions TDM
家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
B_QuRT_User_Guide(37)
Home appliance industry channel business collaboration system solution: help home appliance enterprises quickly realize the Internet of channels
Dynamic agent explanation (July 16, 2020)
Extended tree (I) - graphic analysis and C language implementation
Lm12 rolling heikin Ashi double K-line filter
LeeCode -- 6. Z 字形变换
turbo intruder常用脚本
2022 届的应届生都找到工作了吗?做自媒体可以吗?
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
Solution: prompt "unsupported video format" when inserting avi format video into the message
B_QuRT_User_Guide(38)
欢聚时代一面
StringUtils工具类
USB (XV) 2022-04-14
Solve the problem of duplicate request resource paths /o2o/shopadmin/o2o/shopadmin/getproductbyid