Overview of steps
1. Configure minGW
2. Download and install the esp-idf software
3. Associate the vscode esp-idf plugin with the esp-idf software
1. Configure minGW
1. Download
Link: https://pan.baidu.com/s/1j6ITlNDDyivKwpWNBjASvg?pwd=0108
Extraction code: 0108
2. Unzip
Unzip the compressed package downloaded above
3. Configure environment variables
Add x:…\mingw64\bin to system variables -> path
4. Test
Open a cmd, enter
gcc -v
as shown in the figure and the configuration is successful.
2. Download and install ESP-IDF software
1. Download
https://dl.espressif.cn/dl/esp-idf/?idf=4.4
Select the version you want to download, here I choose 4.4.4
2. Install
Notice! byadministrator statusRun the setup file!
After that, install it in a fool-like way, just go to next all the way, and you don’t need to move anything (don’t move it until it’s not working)
3. Configure environment variables
Add the directory where you just installed Espressif to the environment variable -> path
3. Configure ESP-IDF in vscode
Please note! If you opened vscode before this step, please close it and reopen it!
Please note! If you opened vscode before this step, please close it and reopen it!
Please note! If you opened vscode before this step, please close it and reopen it!
1. Install the ESP-IDF extension
Install Espressif IDF (I have already installed it in the picture)
2. Configure ESP-IDF extension
2.1 Configuration step 1
ctrl + shift + p, search for ESP-IDF: configure ESP-IDF plug-in
2.2 Configuration Step 2
Click this: USE EXISTING SETUP
2.3 Configuration Step 3
Click Search ESP-IDF in System , I have already configured it here, don't look at the one below.
2.4 Configuration Step 4
Restart vscode
2.5 Configuration Step 5
After restarting, vscode will automatically load the configuration you just completed, please wait for it to load (it is loading in the lower right corner)
3. Test
Step 1:
ctrl + shift + p, search as follows:
Step 2:
Select it, if you don't have it, your installation is not done correctly!
Step 3:
This page appears to prove that the ESP-IDF environment configuration in vscode is successful! !
enjoy yourself~