No description
Find a file
2015-06-02 17:56:41 +10:00
axtls Add README, 'make help', header comments, Copyright notices 2015-06-02 17:12:20 +10:00
examples Add 'examples' top level Makefile for building all examples together 2015-06-02 17:56:41 +10:00
FreeRTOS Add README, 'make help', header comments, Copyright notices 2015-06-02 17:12:20 +10:00
include Rename the sdk_prototypes header to sdk_private 2015-06-02 17:15:00 +10:00
ld Preprocess all binary SDK symbols to add an sdk_ prefix 2015-06-02 15:08:35 +10:00
lib Swap binary axTLS libssl for direct compiled version 2015-06-02 17:12:20 +10:00
lwip Rename the sdk_prototypes header to sdk_private 2015-06-02 17:15:00 +10:00
.dir-locals.el Working variant of esp_iot_rtos_sdk (files from commit ec75c85f9ef53) 2015-05-07 14:22:25 +10:00
.gitignore gitignore: Ignore gdb history 2015-05-07 14:24:44 +10:00
.gitmodules Add axTLS git-svn mirror repo as submodule 2015-06-02 17:09:54 +10:00
common.mk Add README, 'make help', header comments, Copyright notices 2015-06-02 17:12:20 +10:00
README.md Add README, 'make help', header comments, Copyright notices 2015-06-02 17:12:20 +10:00

esp-open-rtos

A community developed open source FreeRTOS-based framework for ESP8266 WiFi-enabled microcontrollers. Intended for use in both commercial and open source projects.

Similar to, but substantially different from, the Espressif IOT RTOS SDK.

Quick Start

  • Install esp-open-sdk and make the toolchain available on your PATH. Despite the similar name that project has different maintainers (but we think it's fantastic!)

    (Alternative toolchains can also work, as long as a gcc cross-compiler is available on the PATH. The official Tensilica "xcc" compiler will probably not work.)

  • Install esptool.py and make it available on your PATH.

  • The build process uses GNU Make, and the utilities sed and grep. Linux & OS X should have these already. Windows users can get these tools a variety of ways, MingGW is one option.

  • Use git to clone the esp-open-rtos project:

git clone git@github.com:superhouse/esp-open-rtos.git
cd esp-open-rtos
  • Build an example project and flash it to a serial port:
make -j4 -C examples/http_get flash ESPPORT=/dev/ttyUSB0

Goals

  • Provide professional-quality framework for WiFi-enabled RTOS projects on ESP8266.
  • Open source code for all layers above the MAC layer, ideally lower layers if possible (this is a work in progress, see Issues list.
  • Leave upstream source clean, for easy interaction with upstream projects.
  • Flexible build and compilation settings.

Current status is alpha quality, under development. AP STATION mode (ie wifi client mode) and UDP/TCP client modes are tested. Other functionality should work. Contributors and testers are welcome!

Open Source Components

  • FreeRTOS V7.5.2
  • lwIP v1.4.1, modified via the esp-lwip project by @kadamski.
  • axTLS compiled from development version v1.5.3, plus modifications for low memory devices.

Binary Components

Binary libraries (inside the lib dir) are all supplied by Espressif as part of their RTOS SDK which is MIT Licensed.

As part of the esp-open-rtos build process, all binary SDK symbols are prefixed with sdk_. This makes it easier to differentiate binary & open source code, and also prevents namespace conflicts.

Some binary libraries appear to contain unattributed open source code:

  • libnet80211.a appears to be based on FreeBSD net80211, or a fork of it.
  • libudhcp has been removed from esp-open-rtos. It was released with the Espressif RTOS SDK but udhcp is GPL licensed.

Licensing

  • BSD license (as described in LICENSE) applies to original source files, and lwIP. LWIP is CopyrighT (C) Swedish Institute of Computer Science.

  • FreeRTOS is provided under the GPL with the FreeRTOS linking exception, allowing non-GPL firmwares to be produced using FreeRTOS as the RTOS core. License details in files under FreeRTOS dir. FreeRTOS is Copyright (C) Real Time Engineers Ltd.

  • Source & binary components from the Espressif IOT RTOS SDK were released under the MIT license. Source code components are relicensed here under the BSD license. Components are Copyright (C) Espressif Systems.

Contributions

Contributions are very welcome!

  • If you find a bug, please raise an issue to report it.

  • If you have feature additions or bug fixes then please send a pull request.

  • There is a list of outstanding TODO items in the issues list. Contributions to these, as well as other improvements, are very welcome.

If you are contributing code, please ensure that it can be licensed under the BSD open source license. Specifically:

  • Code from Espressif IoT SDK cannot be merged, as it is provided under either the "Espressif General Public License" or the "Espressif MIT License", which are not compatible with the BSD license.

  • Recent releases of the Espressif IoT RTOS SDK cannot be merged, as they changed from MIT License to the "Espressif MIT License" which is not BSD compatible. The Espressif binaries used in esp-open-rtos were taken from revision ec75c85, as this was the last MIT Licensed revision.

For code submissions based on reverse engineered binary functionality, please either reverse engineer functionality from MIT Licensed Espressif releases or make sure that the reverse engineered code does not directly copy the code structure of the binaries - it cannot be a "derivative work" of an incompatible binary.

The best way to write suitable code is to first add documentation somewhere like the esp8266 wiki describing factual information gained from reverse engineering - such as register addresses, bit masks, orders of register writes, etc. Then write new functions referring to that documentation as reference material.

Sponsors

Work on esp-open-rtos is sponsored by SuperHouse Automation.