Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:espidf [2023/10/03 11:21] – [ESP-IDF] darron | tools:espidf [2024/10/02 00:38] (current) – [Setup] darron | ||
---|---|---|---|
Line 3: | Line 3: | ||
EPS32 development environment. | EPS32 development environment. | ||
- | Previously tested on Raspberry Pi 3. | + | Previously tested on Raspberry Pi 3 (armv7l / python |
Recently tested on Raspberry Pi 400 (aarch64 / python 3.9.2). | Recently tested on Raspberry Pi 400 (aarch64 / python 3.9.2). | ||
- | This a truly awful development environment. | + | ESP-IDF is truly awful. |
+ | === Setup === | ||
+ | Install various dependencies. | ||
- | === Setup === | + | < |
+ | apt update | ||
+ | apt full-upgrade | ||
+ | apt install build-essential cmake git wget flex bison gperf python3 python3-venv python3-pip python3-setuptools python3-pyparsing ninja-build ccache libffi-dev libssl-dev dfu-util | ||
+ | </ | ||
+ | |||
+ | Python3 will need to be the [[: | ||
+ | |||
+ | === User === | ||
+ | |||
+ | Create a user for the home of the dev kit. | ||
- | Tools | ||
< | < | ||
- | apt-get update | + | useradd |
- | apt-get dist-upgrade | + | |
- | apt-get install git wget flex bison gperf python3 python3-venv python3-pip python3-setuptools python3-pyparsing ninja-build ccache libffi-dev libssl-dev dfu-util | + | |
</ | </ | ||
- | Python | + | Append paths to .profile |
< | < | ||
- | update-alternatives --remove-all python | + | vi ~esp/.profile |
- | update-alternatives --install | + | |
- | update-alternatives --install / | + | |
- | update-alternatives --config python | + | |
- | python -V | + | |
- | Python 3.7.3 | + | |
</ | </ | ||
- | Fetch | ||
< | < | ||
- | cd /opt | + | IDF_PATH=" |
- | git clone --recursive https:// | + | IDF_TOOLS_PATH=" |
</ | </ | ||
- | Install | + | |
+ | === Install=== | ||
+ | |||
+ | Login as user esp | ||
+ | |||
+ | < | ||
+ | /bin/su - esp | ||
+ | </ | ||
+ | |||
+ | Clone dev kit into home dir. | ||
+ | |||
+ | < | ||
+ | git clone --recursive https:// | ||
+ | </ | ||
+ | |||
+ | Run installation script. | ||
< | < | ||
- | setenv IDF_PATH "/ | + | cd esp-idf |
- | setenv IDF_TOOLS_PATH "/ | + | |
- | cd /opt/esp-idf | + | |
sh install.sh | sh install.sh | ||
</ | </ | ||
- | Get path | + | Finalise installation |
< | < | ||
- | sh export.sh | + | . ~/esp-idf/export.sh |
</ | </ | ||
- | Set path | + | If it complains about openocd... |
< | < | ||
- | setenv PATH " | + | /usr/bin/python3 |
+ | </code> | ||
+ | |||
+ | Save the configuration | ||
+ | |||
+ | < | ||
+ | echo ". ~/esp-idf/export.sh" >> ~/.profile | ||
+ | </code> | ||
+ | |||
+ | Logout from user esp | ||
+ | |||
+ | < | ||
+ | exit | ||
+ | </code> | ||
+ | |||
+ | ===Test=== | ||
+ | |||
+ | Login as user esp | ||
+ | |||
+ | < | ||
+ | /bin/su - esp | ||
+ | </code> | ||
+ | |||
+ | Enter the hello world example dir | ||
+ | |||
+ | < | ||
+ | cd ~/esp-idf/examples/get-started/hello_world | ||
+ | </code> | ||
+ | |||
+ | Build | ||
+ | |||
+ | < | ||
+ | idf.py build | ||
</ | </ | ||
=== Resources === | === Resources === | ||
+ | |||
+ | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// |