devices:esp32:esp-idf
Table of Contents
ESP-IDF Setup
These instructions are not to replace, but to supplement the Espressif Get Started documentation.
We are using a custom ESP-IDF, with modifications used by the ODROID-GO firmware. This tree is frequently updated to the latest Espressif master, and has a “odroid” branch that is rebased on top of it.
Git Repository: https://github.com/jkent/esp-idf.git
Quick start
git clone --branch odroid --recurse-submodules https://github.com/jkent/esp-idf.git cd esp-idf ./install.sh source export.sh
Update
cd esp-idf git checkout master git branch -D odroid git pull --recurse-submodules git checkout odroid git clean -fdx ./install.sh source export.sh
Default python
I recommend setting your system default python to python3. This paired with python $(which idf.py)
will resolve your problems with pathlib. We will do this with the update-alternatives system.
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 sudo update-alternatives --install /usr/bin/python python /usr/bin/$(readlink $(which python3)) 2
You can change and/or verify that python3 is the default by running:
update-alternatives --config python
Rebase odroid branch
- | For IDF development only
cd esp-idf git checkout master git remote add upstream https://github.com/espressif/esp-idf.git git pull upstream --recurse-submodules git checkout odroid git rebase master git push origin --all
devices/esp32/esp-idf.txt · Last modified: by 127.0.0.1