ESP-IDF: Difference between revisions
imported>Mse63 pkgconfig has been replaced by pkg-config |
Updated the requirements path to reflect ESP-IDF v5.0 removal of the root requirements.txt file. This still needs updating, as it doesn't currently result in a working ESP-IDF environment. |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
<syntaxhighlight lang="sh"> | <syntaxhighlight lang="sh"> | ||
nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev# | nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev#esp-idf-full | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 22: | Line 22: | ||
== The manual way == | == The manual way == | ||
If you want to set up the environment yourself, here is one way to do it. | If you want to set up the environment yourself, here is one way to do it. | ||
{{Warning|As of ESP-IDF v5.0, the following guide does not work properly and results in errors. Any contributions toward a fix would be appreciated.}} | |||
=== Setting up the toolchain === | === Setting up the toolchain === | ||
| Line 121: | Line 123: | ||
python -m venv $IDF_PYTHON_ENV_PATH | python -m venv $IDF_PYTHON_ENV_PATH | ||
. $IDF_PYTHON_ENV_PATH/bin/activate | . $IDF_PYTHON_ENV_PATH/bin/activate | ||
pip install -r $IDF_PATH/requirements.txt | pip install -r $IDF_PATH/tools/requirements/requirements.core.txt | ||
else | else | ||
. $IDF_PYTHON_ENV_PATH/bin/activate | . $IDF_PYTHON_ENV_PATH/bin/activate | ||
| Line 146: | Line 148: | ||
* [https://github.com/bgamari/esp32.nix esp32.nix] provides nix expression for building the esp32 sdk as well as micropython. | * [https://github.com/bgamari/esp32.nix esp32.nix] provides nix expression for building the esp32 sdk as well as micropython. | ||
* [https://github.com/taktoa/esp32-baremetal esp32-baremetal] has an example how to build esp32 firmware without relying on an sdk. | * [https://github.com/taktoa/esp32-baremetal esp32-baremetal] has an example how to build esp32 firmware without relying on an sdk. | ||
* [https://specific.solutions.limited/projects/hanging-plotter/electronics tutorial] for setting up the prebuilt toolchain with vscode | * [https://web.archive.org/web/20240621182952/https://specific.solutions.limited/projects/hanging-plotter/electronics tutorial] for setting up the prebuilt toolchain with vscode | ||
[[Category:Guide]] | [[Category:Guide]] | ||