Preface: VScode is already available on the computer, and ESP32 development is perfectly supported on VScode. Next, use VScode to install the esp32 development environment.
VSCode official website address , if you haven’t installed it, just download and install it.
1. Enter the Getting Started Manual from the official website of Espressif
Go to Espressif's official website and click on the product. In the drop-down menu, find the IoT development framework under SDK, as shown in the figure.
Click to enter the ESP-IDF interface, scroll down to find the Getting Started Manual button, and click to enter the ESP-IDF Quick Start interface, as shown in the figure.
Enter the Quick Start Manual interface according to the chip, read the Quick Start Manual carefully, find the VS Code plug-in (installation), and click to enter the installation tutorial in GitHub. Of course, you can also build the environment according to the detailed steps in the manual.
2. VSCode plug-in installation ESP-IDF
Open VScode, click Extensions on the left, search for esp, and Espressif IDF will appear in the list. Click to install.
The installation is completed as shown in the figure.
3. Install ESP-IDF-Tools and related toolchains
Open the command panel, as shown in the figure. Or use the shortcut key F1 to open it.
In the command panel, enter configure ESP-IDF extension, as shown in the figure.
Configure the ESP-IDF plugin as shown in the figure and click advance for advanced configuration.
Select domestic mirror installation, version and installation location, as shown in the figure.
Start the installation as shown in the figure.
All three steps are completed. The shortcut keys at the bottom of the interface are shown in the figure below.
4. Test compilation sample "HELLO_WORLD"
Enter example in the command palette and click the example project.
Start loading example, and the loading is completed as shown in the figure.
Click hello_world and the example creation button will appear. Save the project to the esp directory under the tool save path as shown in the figure.
After saving, it will open automatically and a prompt box will appear, as shown in the figure. Click Trust to open the hello_world project.
Click Chip Select, and options will appear in the command panel. Select ESP32 C3, as shown in the figure.
Then select the hello_world project, as shown in the figure.
Click Compile Project and turn off the anti-virus software, otherwise the compilation time will be longer. The compilation is completed as shown in the figure
5. Burn the program hello_world
Find a data cable, not a charging cable, connect it to the TYPE-C port, and check the device manager, as shown in the figure.
Select COM41 as the serial port in VScode, as shown in the figure.
Then click Download and the download is completed as shown in the figure.
Click Monitor device after downloading, click RESET on the board and then print Hello world, as shown in the figure.
At this point, the ESP32 C3 development environment is basically open.