立创实战派ESP32-S3环境搭建错误经验分享,卡python,ESP-IDF(部分官方例程无法烧录)
之前用的是esp离线版本下载,就是按照立创实战派c3的教程来搭建环境,但是一直有一些问题,部分官方历程会报错,出现无法烧录的情况,会出现以下报错
C:\Espressif\frameworks\esp-idf-v5.2.3>idf.py reconfigure
Executing action: reconfigure
Running cmake in directory C:\Espressif\frameworks\esp-idf-v5.2.3\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\Espressif\frameworks\esp-idf-v5.2.3"…
— 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:/Espressif/frameworks/esp-idf-v5.2.3/build/CMakeFiles/CMakeOutput.log".
See also "C:/Espressif/frameworks/esp-idf-v5.2.3/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1, output of the command is in the C:\Espressif\frameworks\esp-idf-v5.2.3\build\log\idf_py_stderr_output_9840 and C:\Espressif\frameworks\esp-idf-v5.2.3\build\log\idf_py_stdout_output_9840
C:\Espressif\frameworks\esp-idf-v5.2.3>
有的官方例程会出现以下报错
试过重新安装离线版本也没解决。最后解决方法是彻底删除离线版本,然后挂ti zi(不挂可能会卡在最后一步),按照实战派s3的教程下载在线版本。
作者:斡RNSH