Posts

Showing posts from September, 2022

https://www.vultr.com

The Everywhere Cloud

Deploy an instance.
Accelerate your application.


Developing ESP32 with Eclipse on Linux

Image
The following procedure shows how to build ESP32 microcontroller projects with the Eclipse Integrated Development Environment on Debian-based Linux distributions. ========== 1. INSTALLATION 1.1. Install Espressif's IoT Development Framework for ESP32 with the RTOS SDK. https://www.sysadsim.com/2022/09/using-esp-idf-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 install ESP-IDF plugins for Eclipse. [ Help -> Install New Software -> Add... ] Name: Espressif IDF Plugin for Eclipse Location: https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/ Click [ Add ]. Go to [ Espressif IDF dropdown ]. Check [ CMake Editor ]. Check [ Espressif IDF Plugins for Eclipse ]. Click [ Next -> Accept license terms -> Finish ]. Wait for plugins download and installation to complete. Click [ Select All -> Trust ] if asked to trust some so

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 ESP32 with VS Code on Linux

Image
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. https://www.sysadsim.com/2022/09/using-esp-idf-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 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 bott

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: $ ec

Using the ESP-IDF on Linux

Image
The following procedure shows how to use Espressif's Internet-of-Things Development Framework for ESP32 microcontrollers on Debian-based Linux distributions. The ESP-IDF uses the Real-Time Operating System (RTOS) Software Development Kit (SDK). ========== 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 development 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/esp-idf.git 1.2.1. For specific releases, clone the

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

Installing the Eclipse IDE on Linux

Image
The following procedure shows how to quickly install the Eclipse Integrated Development Environment on desktop Linux distributions. ========== 1. Download the Eclipse tarball at [ https://www.eclipse.org/downloads/ ]. 2. Open a terminal and extract the installer folder. user@host: $ tar -xf eclipse-inst-jre-linux64.tar.gz 3. Run the installer to launch the graphical user interface. user@host: $ cd eclipse-installer user@host: $ ./eclipse-inst 4. On the GUI, choose the desired package. 4.1. For C/C++ programming, select [ Eclipse IDE for Embedded C/C++ Developers ]. 4.1.1. Use the suggested defaults and click [ Install ]. 4.1.2. When the installation is finished, click [ Launch ]. 4.1.3. Use the suggested Workspace and click [ Launch ]. ==========