Win10+VSCode+ESP32 environment setup

After setting up the ESP32 environment, how do I use the IDE to edit and view the source code? The official recommendation is eclipse. I tried it and it feels more troublesome. In addition, eclipse is no longer maintained, so I chose VSCode.

1. First of all, make sure that ESP-IDF can be used on this machine. Online download is slow and will cause errors. Please refer to https://blog.csdn.net/shaynerain/article/details/108352440

2. Search for ESP in the extended application, the shortcut key is Ctrl+Shift+X, and then install Espressif IDF, this is a pre-release version, so there will be more or less bugs

3. After installation, you will enter the settings and select user settings

4. Select the python installation path. This path is the path in the environment variable. If there is an error automatically detected, choose directly by yourself

5. After checking, go to the next step and select the ESP-IDF path. It is recommended to download it by yourself and select the path

6. The next step is to select the Tools path. Here we can directly select Download to download. This will let you choose the path and select the previously downloaded path. This will automatically detect and skip the downloaded ones. If you are prompted to pip, etc. No installation, you can return to your own setting path

7. If there is no pip prompt, we will return to the previous step to fill in manually. We found that most of the paths have been filled in for us, only the python path. Note here that this python path refers to the ESP-IDF environment path. Choose our espressif python in tools path

8. After clicking check, there will be a hint that there are fewer packages. Follow the hints to install the package under the python path in the IDF environment.

9. After installation, you can run the routine happily. If you need to download and compile with one click, you can view the task. The official staff has prepared the task, and the task can be run normally, or you can run the related commands directly in the vs console, here You can refer to the official website to run hello word

Guess you like

Origin blog.csdn.net/shaynerain/article/details/108352468