The Everywhere Cloud

Deploy an instance.
Accelerate your application.

Developing ESP32 with VS Code on Linux

The following procedure shows how to build ESP32 microcontroller projects with the Visual Studio Code Integrated Development Environment on Debian-based Linux distributions.



1.1. Install Espressif's IoT Development Framework for ESP32 with the RTOS SDK.

1.2. Download and install the Visual Studio Code IDE.


2.1. On the VS Code menu, go to [ File -> Open Folder... ] and open the target ESP32 project folder.

Example: ~/esp/esp-idf/examples/get-started/hello_world

2.2. On its bottom panel, click on the Terminal tab. This will automatically change to the location of the opened folder.

2.3. Temporarily add the ESP-IDF toolchain to the shell path.

user@host: $ . ~/esp/esp-idf/
user@host: $ source ~/esp/esp-idf/

2.4. Verify if the toolchain has been added to the shell path.

user@host: $ echo $PATH


3.1. Maximize the bottom panel size and configure the IDF settings for the project.

user@host: $ menuconfig

3.1.1. Use the arrow keys to highlight menu items.
3.1.2. Press "s" to [ Save ] the current settings.
3.1.3. Press "q" to [ Quit ] the menu.

3.2. Restore the bottom panel size and remove old build files, if any.

user@host: $ clean

3.3. Build the ESP32 project binaries.

user@host: $ build

3.4. Flash the binaries to the ESP32 microcontroller.

user@host: $ flash



Popular posts from this blog

Enabling HTTPS in Home Assistant

Configuring the FreeBSD Firewall with IPFW

Running Home Assistant on FreeBSD Servers