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 10:57] – [Setup] darron | tools:espidf [2023/10/18 13:48] (current) – [Resources] darron | ||
---|---|---|---|
Line 3: | Line 3: | ||
EPS32 development environment. | EPS32 development environment. | ||
- | Previously tested on Raspberry Pi 3. | + | Previously tested on Raspberry Pi 3 (armv7l |
- | + | ||
- | Currently under test on Raspberry Pi 400 (aarch64 | + | |
+ | Recently tested on Raspberry Pi 400 (aarch64 / python 3.9.2). | ||
+ | ESP-IDF is truly awful. | ||
=== Setup === | === Setup === | ||
- | Tools | + | Install various dependencies. |
< | < | ||
- | apt-get update | + | apt update |
- | apt-get dist-upgrade | + | apt full-upgrade |
- | apt-get install | + | 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 |
</ | </ | ||
- | Python | + | Debian bullseye has python 3 but on buster python 3 will need to be the default version. |
< | < | ||
update-alternatives --remove-all python | update-alternatives --remove-all python | ||
Line 28: | Line 30: | ||
</ | </ | ||
- | Fetch | + | === User === |
+ | |||
+ | Create a user for the home of the dev kit. | ||
< | < | ||
- | cd /opt | + | useradd |
- | git clone --recursive https:// | + | |
</ | </ | ||
- | Install | + | Append paths to .profile |
< | < | ||
- | setenv | + | vi ~esp/ |
- | setenv | + | </ |
- | cd /opt/esp-idf | + | |
+ | < | ||
+ | IDF_PATH="$HOME/ | ||
+ | IDF_TOOLS_PATH="$HOME/ | ||
+ | </code> | ||
+ | |||
+ | |||
+ | === Install=== | ||
+ | |||
+ | Login as user esp | ||
+ | |||
+ | < | ||
+ | /bin/su - esp | ||
+ | </ | ||
+ | |||
+ | Clone dev kit into home dir. | ||
+ | |||
+ | < | ||
+ | git clone --recursive https:// | ||
+ | </ | ||
+ | |||
+ | Run installation script. | ||
+ | |||
+ | < | ||
+ | cd 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:// |