https://www.vultr.com

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. INSTALLATION

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. PREPARATION

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/export.sh
or
user@host: $ source ~/esp/esp-idf/export.sh

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

user@host: $ echo $PATH

3. UTILIZATION

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

user@host: $ idf.py 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: $ idf.py clean

3.3. Build the ESP32 project binaries.

user@host: $ idf.py build

3.4. Flash the binaries to the ESP32 microcontroller.

user@host: $ idf.py flash

===========

Comments

Popular posts from this blog

Enabling HTTPS in Home Assistant

Configuring the FreeBSD Firewall with IPFW

Running Home Assistant on FreeBSD Servers