The Everywhere Cloud

Deploy an instance.
Accelerate your application.

Using the ESP8266 RTOS SDK on Linux

The following procedure shows how to use Espressif's Real-Time Operating System Software Development Kit for ESP8266 microcontrollers on Debian-based Linux distributions.



1.1. Update package indexes and install the prerequisites.

user@host: $ sudo apt-get update
user@host: $ sudo apt-get install bison libbison-dev
user@host: $ sudo apt-get install cmake
user@host: $ sudo apt-get install flex libfl-dev libfl2
user@host: $ sudo apt-get install git
user@host: $ sudo apt-get install gperf
user@host: $ sudo apt-get install libncurses-dev
user@host: $ sudo apt-get install python3 python3-dev python3-pip python3-venv python3-wheel

1.2. Clone the repository from GitHub. This will download to a directory with the same name.

user@host: $ mkdir esp
user@host: $ cd esp
user@host: $ git clone --recursive

1.3. Install the Python packages required by the ESP8266 Internet-of-Things Development Framework.

user@host: $ cd ESP8266_RTOS_SDK
user@host: $ python -m pip install --user -r requirements.txt

1.4. Install the ESP8266 IDF toolchain.

user@host: $ ./

1.5. Temporarily add the ESP8266 IDF toolchain to the shell path.

user@host: $ . ./
user@host: $ source ./

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

user@host: $ echo $PATH


2.1. Once the toolchain is on the shell path, go to the examples provided by the SDK.

user@host: $ cd examples/get-started/hello_world

2.2. Configure the IDF settings for the project.

user@host: $ make menuconfig

2.2.1. Use the arrow keys to highlight menu items.
2.2.2. Choose [ Save ] to accept the current settings.
2.2.3. Choose [ Exit ] to leave the menu.

2.3. Remove old build files, if any.

user@host: $ make clean

2.4. Build the ESP8266 project binaries.

user@host: $ make all

2.5. Flash the binaries to the ESP8266 microcontroller.

user@host: $ make flash



Popular posts from this blog

Enabling HTTPS in Home Assistant

Configuring the FreeBSD Firewall with IPFW

Running Home Assistant on FreeBSD Servers