当前位置:网站首页>Construction of esp32 compilation environment

Construction of esp32 compilation environment

2022-04-23 15:55:00 Sola_ Ex

ESP32

One 、 Reference

Official information http://esp-idf.readthedocs.io/en/latest/

Two 、 Document preparation

In fact, the official documents are very detailed , But the feeling may be too detailed , It seems to take a lot of time , My environment is windows Next , The introduction document contains linux and MAC_OSX, So I'll skip it and look at it directly windows.
 Insert picture description here
Follow the instructions , Enter the quick start page first , And find the position in the figure below :
 Insert picture description here
First make sure you use ESP32 Which one is it , I'm using ESP-WROVER-KIT Module , Therefore, select this option directly to see the peripheral functions and module related information , But this is not a necessary point , We need to find the tools we need , Here's the picture :
 Insert picture description here
According to the link in the red box above , We can download it directly to “esp-idf-tools-setup-2.3.exe” This installation package , This installation package directly contains windows Compile below ESP32 All the tools needed for the environment ( Need to connected to the Internet ), If you install the relevant tools yourself , Such as :python、git wait , You can directly select the existing one without downloading , without , Choose the recommended , And the next step , The software will automatically help you download . After downloading and installing , You should see such an icon on the desktop :
 Insert picture description here
After opening , That's true ,
 Insert picture description here
The operation shown in the figure above is actually automatic path configuration , It mainly depends on “esp-idf” This folder , Contains demo And compiling chain plug-ins . When compiling the project , In fact, it calls the things in this folder to compile .

3、 ... and 、 compile

open ESP-IDF after , adopt DOC command , Enter a project , Pictured :
 Insert picture description here
adopt cd + The path can go to the root directory of the project , perform “idf.py build”, If nothing goes wrong , It will compile successfully , And generate the corresponding bin file . Search directly under the project bin file ,
 Insert picture description here
You can find what you want , The rest is through the official of Lexin flashtool Downloaded .

版权声明
本文为[Sola_ Ex]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231554163792.html