I have some trouble updating from esp-idf version 5.0.2 to 5.1.
Originally I installed esp-idf v5.0.1 using Windows Installer, then I successfully updated it to v5.0.2.
ESP-IDF framework is located in the folder: ESP-IDF\frameworks\esp-idf-v5.0.1.
Then, the version 5.1 got released and I tried updating to it the same way I did before:
1. Clone https://github.com/espressif/esp-idf.git into a separate folder
2. Go to that folder and execute
Code: Select all
git fetch
Code: Select all
git checkout v5.1
Code: Select all
git submodule update --init --recursive
5. Install/update the tools by executing install.bat.
The last step downloaded and installed all new tools to the ESP-IDF/tools folder and almost all of them are different to the tools that were used in versions v5.0.x. For example, rsicv32-esp-elf has now 2 folders:
esp-12.2.0_20230208 (from v5.1)
esp-2022r1-11.2.0 (from v5.0.2)
Also, the last step installed a new python enviroment. The folder ESP-IDF/python_env now has 2 folders:
idf5.0_py3.8_env
idf5.1_py3.9_env
Ok, now I launch ESP-IDF using the desktop schortcut that was created when I first installed the esp-idf v5.0.1 and it displays the following text:
- Setting PYTHONNOUSERSITE, was not set
- Using Python in E:\ESP\ESP-IDF\python_env\idf5.0_py3.8_env\Scripts\
- Python 3.8.7
- Using Git in E:\ESP\ESP-IDF\tools\idf-git\2.34.2\cmd\
- git version 2.34.1.windows.1
- Checking Python compatibility
- Setting IDF_PATH: E:\ESP\ESP-IDF\frameworks\esp-idf-v5.0.1
- Adding ESP-IDF tools to PATH...
- E:\ESP\ESP-IDF\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin
- E:\ESP\ESP-IDF\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin
- E:\ESP\ESP-IDF\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin
- E:\ESP\ESP-IDF\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin
- E:\ESP\ESP-IDF\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin
- E:\ESP\ESP-IDF\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin
- E:\ESP\ESP-IDF\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
- E:\ESP\ESP-IDF\tools\cmake\3.24.0\bin
- E:\ESP\ESP-IDF\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin
- E:\ESP\ESP-IDF\tools\ninja\1.10.2\
- E:\ESP\ESP-IDF\tools\idf-exe\1.0.3\
- E:\ESP\ESP-IDF\tools\ccache\4.8\ccache-4.8-windows-x86_64
- E:\ESP\ESP-IDF\tools\dfu-util\0.11\dfu-util-0.11-win64
- E:\ESP\ESP-IDF\frameworks\esp-idf-v5.0.1\tools
- Checking if Python packages are up to date...
- ERROR: E:\ESP\ESP-IDF\python_env\idf5.1_py3.8_env\Scripts\python.exe doesn't exist! Please run the install script or "idf_tools.py install-python-env" in order to create it
Thank you.