1. Install GUN For ESP32 toolchain
The following address: https://gnutoolchains.com/esp32/
Just download the latest one, pay attention to the corresponding SDK version
After downloading, open esp32-gcc8.4.0.exe and start the installation
Check the agreement and click the Install button to install
Click OK to complete the installation
Second, install VS2019
Download URL: https://visualstudio.microsoft.com/zh-hans/vs/
Choose Community 2019 free version
After downloading, open: vs_community__1728423131.1609222791.exe, start the installation
Choose the development environment you need, choose according to your needs
Select language pack
Choose the installation location (My C drive is full, so I choose the D drive, it is best to choose the default C drive)
Next, start the installation. During the installation process, you need to connect to the network and download online. It takes a long time, depending on the network.
Three, install VisualGDB 5.5R4
(You must install VS first, and then install VisualGDB)
Download link: https://visualgdb.com/download/
Open VisualGDB-5.5r4.msi to start the installation, directly click Next
Choose to agree to the agreement, click Next
Choose quick install
Click to start installation
start installation
The installation is complete, the selection is complete
Fourth, install python
Download link: https://www.python.org/downloads/release/python-392/
Open the downloaded python-3.9.2-amd64.exe
Click Install Now to start the installation
The installation is complete, click Close to complete the installation
Five, configure VS2019, create a project, download and test
Next, open VS2019, select <Continue but no code required> on this interface, you can directly open the VS interface
Select the menu Help->About VisualGDB
Check VisualGDB, information, whether the installation is successful
Next, create an ESP32 project to test it, select File menu -> New -> VisualGDB Project project
Select the ESP32 project in the creation window, and write the project name and path
Select tool chain, chip model, SDK version, if there is a development board, select the serial port number, you can also set the serial port number later, click Next
Start to initialize the python environment ( this step will only be available when the environment is set up for the first time, and the new project will be completed directly later )
Initializing the python environment will download a lot of things, just try again after failure
After retrying N times, the initialization is complete, choose a sample project to create a new project, I choose the hello_world project here, and click Next
Choose Debug, here I choose Built-in GDB simulator, for online debugging, please choose the debugging port Debug Methods, click Finish
Prompt that CMake is required, click YES to install
After the installation is complete, the project is finally created successfully
The three shortcut buttons under the menu bar are download firmware, compile and download, and open the serial port in sequence
Right-click menu on the project, there are more operations inside
Select Build -> Build Project in the menu
The following VisualGDB Build starts to compile
Compiled successfully
Next, set the serial port number, Project->VisualGDB Project Properties
Select the serial port number connected to the development board
Choose to set up a serial terminal
Click OK,
Click the serial terminal on the menu bar to open the terminal window
Select the compile and download buttons in the menu bar,
The window below starts to compile and download
Select the terminal to view the information output of the development board
At this point, the development environment is set up