Open goofy2k opened 2 hours ago
I looked at the installation guide here.
There it is suggested to run the ESP-IDF command prompt. When I start that, I get:
Setting PYTHONNOUSERSITE, was not set
Using Python in C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\
Python 3.11.2
Using Git in C:\Espressif\tools\idf-git\2.44.0\cmd\
git version 2.44.0.windows.1
Checking Python compatibility
Setting IDF_PATH: C:\Espressif\frameworks\esp-idf-v5.3.1
Adding ESP-IDF tools to PATH...
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'C:\\Espressif\\python_env\\idf5.3_py3.11_env\\idf_version.txt'. (Diagnostic information. It can be ignored.)
C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin
C:\Espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin
C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin
C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin
C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin
C:\Espressif\tools\cmake\3.24.0\bin
C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin
C:\Espressif\tools\ninja\1.11.1\
C:\Espressif\tools\idf-exe\1.0.3\
C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
C:\Espressif\frameworks\esp-idf-v5.3.1\tools
Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.3.txt
Requirement files:
- C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Python requirements are satisfied.
Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of amazon-corretto-11-x64-windows-jdk, esp-clang, esp-rom-elfs, esp32ulp-elf, espressif-ide, idf-driver, idf-python-wheels, ninja, openocd-esp32, riscv32-esp-elf, riscv32-esp-elf-gdb, xtensa-esp-elf, xtensa-esp-elf-gdb, xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf use command 'python.exe C:\Espressif\frameworks\esp-idf-v5.3.1\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Espressif\frameworks\esp-idf-v5.3.1\tools\idf_tools.py uninstall --remove-archives'.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
When I do so, I get the following. Note the different separators in the file path!
C:\Espressif\workspace\TFT_JC2432S028\scan>idf.py build
Executing action: all (aliases: build)
Cannot load C:\Espressif\workspace\TFT_JC2432S028\scan\build/project_description.json: [Errno 2] No such file or directory: 'C:\\Espressif\\workspace\\TFT_JC2432S028\\scan\\build/project_description.json'
The strange thing is that in the command promt the system says that the Python requirements are satisfied:
Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.3.txt
Requirement files:
- C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Python requirements are satisfied.
Whereas the Espressif-IDE complains that they are not!
I found out that I can create a new folder and select that in the Espressif-IDE with File > Switch Workspace > Other...
Then new ESP-IDE projects can be created in there or Existing projects can be imported. Upon builiding, everything goes well!
More clear directions to solve this kind of problems would be helpful!
My ESP-IDF install (Espressif-IDE Eclipse plugin) got corrupted for some reason. The projects in my workspace were not visible anymore. The project files were still present on my storage, so I decided to import them again with File > Import > Espressif > Existing IDF project. Then the projects appeared again in my Project Explorer.
When I try to compile a project again I get the following responses:
Here is the info that I get when I give Espressif > Product information:
As suggested I looked in Espressif/frameworks/esp-idf-v5.3.1/tools/cmake/build.cmake:365. It says:
The message that I see is:
But I have no clue where to look.
Some help will be appreciated. Thanks!