Posts

Showing posts with the label ESP8266

https://www.vultr.com

The Everywhere Cloud

Deploy an instance.
Accelerate your application.


Developing ESP8266 with Eclipse on Linux

Image
The following procedure shows how to build ESP8266 microcontroller projects with the Eclipse Integrated Development Environment on Debian-based Linux distributions. ========== 1. INSTALLATION 1.1. Install Espressif's IoT Development Framework for ESP8266 with the RTOS SDK. https://www.sysadsim.com/2022/09/using-esp8266-rtos-sdk-on-linux.html 1.2. Download and install the Eclipse IDE. https://www.sysadsim.com/2022/09/installing-eclipse-ide-on-linux.html 2. PREPARATION 2.1. On the Eclipse IDE, click on the following to open the target ESP8266 project folder and choose its toolchain. [ File -> Import... ] [ C/C++ -> Existing Code as Makefile Project -> Next ] [ Existing Code Location -> Browse... ] Example: ~/esp/ESP8266_RTOS_SDK/examples/get-started/hello_world [ Toolchain for Indexer Settings -> Cross GCC -> Finish ] 2.2. Set up the project's properties. [ Project Explorer tab -> Right-click on project name -> Properties ] 2.2.1. C/C++ General Indexer Go ...

Developing ESP8266 with VS Code on Linux

Image
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. https://www.sysadsim.com/2022/09/using-esp8266-rtos-sdk-on-linux.html 1.2. Download and install the Visual Studio Code IDE. https://code.visualstudio.com/ 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:...

Using the ESP8266 RTOS SDK on Linux

Image
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. INSTALLATION 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 https://github.com/espressif/ESP8266_RTOS_SDK.git 1.3. Install the Python packages required by the ESP8266 Internet-of-Things Development Framework. user@host: $ cd E...