PaulFreund / ESP32_Dlang_Template

Template project to run D code on ESP32
7 stars 0 forks source link

Introduction

Aim of this project template is to make getting D (betterC) code to run on the ESP32 as easy as possible

Getting started Linux (WSL Debian)

  1. Install prerequisites
    sudo apt-get install git wget flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache

    Make sure everything in install_ldc_xtensa.sh was executed.

Also Visual Studio Code and on Windows the "Remote - WSL" as well as the C/C++ extension

  1. Install and Open Debian app (Windows Subsystem for Linux)

  2. Open Clone this repository

    git clone
  3. Download submodules

    git submodule update --init --recursive
  4. Install ESP-IDF requirements

    cd ./esp-idf
    ./install.sh
    cd ..
  5. Execute code command to open VSCode with this remote

  6. Open the internal VSCode shell

  7. Source the build environment

    source ./env.sh
  8. Build

    make

    The new build system is not yet supported, see Todo

    idf.py build 

Todo

Acknowledgements

Thanks for this guide!: https://wiki.dlang.org/D_on_esp32/esp8266(llvm-xtensa%2Bldc)_and_how_to_get_started