https://www.vultr.com

The Everywhere Cloud

Deploy an instance.
Accelerate your application.


Developing ESP8266 with VS Code on Linux


The following procedure shows how to build ESP8266 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 ESP8266 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 ESP8266 project folder.

Example: ~/esp/ESP8266_RTOS_SDK/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 ESP8266 IDF toolchain to the shell path.

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

3.1.1. Use the arrow keys to highlight menu items.
3.1.2. Choose [ Save ] to accept the current settings.
3.1.3. Choose [ Exit ] to leave the menu.

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

user@host: $ make clean

3.3. Build the ESP8266 project binaries.

user@host: $ make all

3.4. Flash the binaries to the ESP8266 microcontroller.

user@host: $ make flash

===========

Comments

Popular posts from this blog

Enabling HTTPS in Home Assistant

Configuring the FreeBSD Firewall with IPFW

Running Home Assistant on FreeBSD Servers