esp32-hello icon indicating copy to clipboard operation
esp32-hello copied to clipboard

Dependencies

  • Docker
  • jq
  • cross with images from https://github.com/reitermarkus/cross/tree/xtensa:
    git clone -b xtensa https://github.com/reitermarkus/cross
    cd cross
    cargo install --path . --force
    ./build-docker-image.sh xtensa-esp32-none-elf
    
  • esptool.py

Building

When building the first time, fetch the submodules using

git submodule update --init --recursive

Afterwards, you can build the project using

./build.sh [--chip <chip> (default: esp32)] [--release] [--package <package> (default: app)] [--example <example>] [--flash-baudrate <baud> (default: 460800)] [--erase-flash]

For example, you can build the main example application in debug mode using

./build

or the thread_local example in release mode using

./build --release --example thread_local