Toolchain installation, programming, and debugging ESP32
There are several options for the development environment. Among them, I will use the PlatformIO IDE throughout the book, except for some examples where I have to use Espressif IoT Development Framework (ESP-IDF) tools directly. PlatformIO supports many different platforms, architectures, and frameworks with modern development capabilities. It comes as an extension in VS Code, and so is very easy to install and configure with just a few clicks.
PlatformIO installation
Let's start with the installation. After launching VS Code, go to Extensions (Ctrl + Shift + X) and search for platformio
in the marketplace. This appears at the first place in the match list. Click on the Install button, and that is it. In a few minutes, the installation completes and we have PlatformIO installed in the VS Code IDE, as illustrated in the following screenshot:
After...