Hi ESP_Angus,
I ignore the old set up version and follow the latest version (4.1)
https://docs.espressif.com/projects/esp ... setup.html to set up.
1. After install the https://dl.espressif.com/dl/esp-idf-tools-setup-2.0.exe , I have the following error at ESP-IDF command prompt.
May I how to fix it?
git version 2.21.0.windows.1
IDF version does not include export.bat. Using the fallback version.
IDF version does not include tools\tools.json. Using the fallback version.
IDF version does not include tools\idf_tools.py. Using the fallback version.
Setting IDF_PATH: C:\Users\Andy\Desktop\esp-idf
Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.15.2. To use it, run 'C:\Users\Andy\AppData\Local\Programs\Python\Python37\python.exe C:\Users\Andy\.espressif\idf_tools_fallback.py --tools-json C:\Users\Andy\.espressif\tools_fallback.json export --prefer-system'
C:\Users\Andy\.espressif\tools\xtensa-esp32-elf\1.22.0-80-g6c4433a5-5.2.0\xtensa-esp32-elf\bin
C:\Users\Andy\.espressif\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin
C:\Users\Andy\.espressif\tools\cmake\3.13.4\bin
C:\Users\Andy\.espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin
C:\Users\Andy\.espressif\tools\mconf\v4.6.0.0-idf-20190628\
C:\Users\Andy\.espressif\tools\ninja\1.9.0\
C:\Users\Andy\.espressif\tools\idf-exe\1.0\
C:\Users\Andy\.espressif\tools\ccache\3.7\
C:\Users\Andy\.espressif\python_env\idf3.3_py3.7_env\Scripts
C:\Users\Andy\Desktop\esp-idf\tools
Checking if Python packages are up to date...
Python requirements from C:\Users\Andy\Desktop\esp-idf\requirements.txt are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
2. When build it with idf.py build, the error is below:
C:\Users\Andy\Desktop\esp-idf> idf.py build
Note: You are using Python 3.7.3. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
Checking Python dependencies...
Python requirements from C:\Users\Andy\Desktop\esp-idf\requirements.txt are satisfied.
Running cmake in directory C:\Users\Andy\Desktop\esp-idf\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized C:\Users\Andy\Desktop\esp-idf"...
Warn about uninitialized values.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_ASM_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/Users/Andy/Desktop/esp-idf/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Andy/Desktop/esp-idf/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
C:\Users\Andy\Desktop\esp-idf>