ESP32-S2 has not been released yet. You need to use the latest version. It is recommended to pull it once . After checking on September 23, 2020, the new version 4.2 was released seven days ago. It supports ESP32-S2. It is recommended to switch to 4.2. You can check the official instructions for use. , Record here to facilitate your own development and use
Official manual
https://docs.espressif.com/projects/esp-idf/zh_CN/release-v4.2/esp32s2/get-started/index.html#id2
Setting up the environment
New discovery, if cmake is already included in the environment, you can cancel it first and use the official version
Or run the command to export the environment esp-idf\tools\idf_tools.py export --prefer-systemls
If there is any error in the process, you can check the output content. Espressif has done a good job in this regard, and will output relevant information at every step
First download the latest git project, this is very important
- Installation tool
./install.ps1
- Then export the environment
export.ps1
- First run in the new project folder to set the project compilation target, each project only needs to be executed once
idf.py set-target esp32s2
- Then compile
idf.py build
- Download and monitor
idf.py -p COM15 flash monitor
- Step by step is too troublesome, here can be directly in place, compile, download and monitor
idf.py -p COM15 build flash monitor
Whole copy
xcopy /e /i ..\examples\wifi .\