Starting point project for those wishing to use FreeRTOS on an ESP8266.
- Linux OS required. I used a couple symlinks, so windows users are likely out of luck.
- Get esp-open-sdk, and compile it as instructed.
- Make the toolchain path match what is in the setenv file by either:
- Copying esp-open-sdk's
xtensa-lx106-elfandesptoolfolders to/opt/espressif/. - Changing the path inside setenv.
- Clone ESP_RTOS_SDK to
/opt/espressif/ESP_RTOS_SDK. - If you plan on using C++ then:
- Clone ESP_RTOS_SDK to
/opt/espressif/ESP_RTOS_SDK_CPP. - Enter the folder
ESP_RTOS_SDK_CPPand runcppchk.sh(from theother_toolsfolder) to see what files need patching. - If it seems right (only files under
/opt/espressif/ESP_RTOS_SDK) then runcppchk.sh --fixto patch. - Fix
setenvto point to the SDK path you just created.
- Ubuntu 16.04 xenial required. The toolchain was compiled on it, and may fail dependencies elsewhere.
- Download the tarball here or here (ignore the bad SSL certificate).
- cd to /opt and untar.
- Enter the project folder esp_rtos_zero.
- Source the setenv scritpt with:
. setenv - Edit the files at will.
- Run
make clean && make && ./flashwhen you are ready to try.