gschorcht / RIOT-Xtensa-ESP8266-toolchain

This repository contains the precompiled toolchain including all libraries that are necessary to compile RIOT-OS for ESP8266

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RIOT-Xtensa-ESP8266-toolchain

This repository contains the precompiled toolchain including all libraries that are necessary to compile RIOT-OS for ESP8266

Installation

To install the toolchain use the following commands:

cd /opt
sudo git clone https://github.com/gschorcht/RIOT-Xtensa-ESP8266-toolchain.git esp

After the installation, the components of the toolchain are installed in directory /opt/esp. Of course, you can use any other location for the installation, e.g., /path/to/toolchain with following commands:

cd /path/to/
sudo git clone https://github.com/gschorcht/RIOT-Xtensa-ESP8266-toolchain.git toolchain

Contents of the toolchain

The toolchain consists of the following parts:

The esp-open-sdk was compiled with command

make toolchain esptool libhal sdk STANDALONE=n

so that it can't be used without specifying the SDK location. It includes a patched version of the MIT licensed vendor SDK from Espressif. in directory esp-open-sdk/sdk.

Even though esp-open-sdk also includes the newlib, it has to be replaced with a newer version of newlib-xtensa that was initially written for esp-open-rtos. This version of newlib supports atomics while the newlib version coming with esp-open-sdk does not.

Usage

To use the toolchain, you have to add the path of the binaries to your PATH variable as according to your toolchain location:

export PATH=$PATH:/path/to/toolchain/esp-open-sdk/xtensa-lx106-elf/bin

For the default installation in /opt/esp this would be:

export PATH=$PATH:/opt/esp/esp-open-sdk/xtensa-lx106-elf/bin

Furthermore, you have to set variables SDK_DIR and NEWLIB_DIR according to the location of the toolchain.

export SDK_DIR=/path/to/toolchain/esp-open-sdk/sdk
export NEWLIB_DIR=/path/to/toolchain/newlib-xtensa

For the default installation in /opt/esp this would be:

export SDK_DIR=/opt/esp/esp-open-sdk/sdk
export NEWLIB_DIR=/opt/esp/newlib-xtensa

If you have used /opt/esp as installation directory, it is not necessary to set the variables since Makefiles use them as default directories.

You can also use SDK versions directly from Espressif together with the toolchain. In that case just set your SDK_DIR variable accordingly. For example, if you would have installed the SDK in /opt/esp/ESP8266_NONOS_SDK-2.1.0, you would have to set your SDK_DIR variable as following:

export SDK_DIR=/opt/esp/ESP8266_NONOS_SDK-2.1.0

Copyrights

Please see the given references for the copyrights of the respective owners.

About

This repository contains the precompiled toolchain including all libraries that are necessary to compile RIOT-OS for ESP8266


Languages

Language:C++ 56.6%Language:C 34.1%Language:Python 2.2%Language:Objective-C 2.0%Language:Makefile 1.6%Language:Roff 1.4%Language:Shell 1.1%Language:Assembly 0.8%Language:Batchfile 0.2%Language:XC 0.1%Language:XS 0.1%Language:M4 0.0%