esp-at 编译问题
Moderator: ESP_XCGuang
esp-at 编译问题
如下,我执行build命令时出现的问题
python build.py build
Platform name:ESP32C3 Module name:MINI-1 Silence:1
submodules check completed for updates.
mbedtls_dynamic_buffer.patch does not need to be applied.
esp_tls_parse_ecc_key.patch does not need to be applied.
esp_wifi_deinit.patch does not need to be applied.
patches check completed for updates.
Ready to set up environment variables..
PATH is C:\Espressif\frameworks\esp-idf-v5.3\components\espcoredump;C:\Espressif\frameworks\esp-idf-v5.3\components\partition_table;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\tools\esp-rom-elfs\20240305;c:\Espressif\python_env\idf5.3_py3.11_env\Scripts;C:\Espressif\frameworks\esp-idf-v5.3\tools;c:\Espressif\tools\idf-git\2.39.2\cmd;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\unify_builder;C:\Users\zzzyy\.eide\bin\builder\utils;C:\Users\zzzyy\.eide\bin\scripts;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\7z;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\utils;C:\Users\zzzyy\.eide\tools\gcc_arm\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;.;C:\Users\zzzyy\.eide\bin\builder\msys\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MySQL\MySQL Server 8.4 \bin;C:\Program Files (x86)\GitExtensions\;C:\Users\zzzyy\AppData\Local\Microsoft\WindowsApps;C:\Users\zzzyy\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\MinGW\bin;C:\Users\zzzyy\.dotnet\tools;C:\Users\zzzyy\AppData\Local\GitHubDesktop\bin
IDF_PYTHON_ENV_PATH is c:\Espressif\python_env\idf5.3_py3.11_env
sys.platform is win32
Not using an unsupported version of tool xtensa-esp-elf-gdb found in PATH: 14.2_20240403. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool riscv32-esp-elf-gdb found in PATH: 14.2_20240403. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool xtensa-esp32-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool xtensa-esp32s2-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool xtensa-esp32s3-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool riscv32-esp-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool esp32ulp-elf found in PATH: 2.38_20240113. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool openocd-esp32 found in PATH: v0.12.0-esp32-20240318. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool ninja found in PATH: 1.11.1. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool ccache found in PATH: 4.8. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool dfu-util found in PATH: 0.11. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
export str is OPENOCD_SCRIPTS=c:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\share\openocd\scripts
ESP_ROM_ELF_DIR=c:\Espressif\tools\esp-rom-elfs\20220823\
ESP_IDF_VERSION=5.0
PATH=c:\Espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin;c:\Espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;c:\Espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin;c:\Espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin;c:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin;c:\Espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;c:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;c:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin;c:\Espressif\tools\ninja\1.10.2\;c:\Espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64;c:\Espressif\tools\dfu-util\0.9\dfu-util-0.9-win64;D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools;%PATH%
IDF_DEACTIVATE_FILE_PATH=C:\Users\zzzyy\AppData\Local\Temp\tmpkjkdbh_yidf_15728
PATH is c:\Espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin;c:\Espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;c:\Espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin;c:\Espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin;c:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin;c:\Espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;c:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;c:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin;c:\Espressif\tools\ninja\1.10.2\;c:\Espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64;c:\Espressif\tools\dfu-util\0.9\dfu-util-0.9-win64;D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools;%PATH%;C:\Espressif\frameworks\esp-idf-v5.3\components\espcoredump;C:\Espressif\frameworks\esp-idf-v5.3\components\partition_table;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\tools\esp-rom-elfs\20240305;c:\Espressif\python_env\idf5.3_py3.11_env\Scripts;C:\Espressif\frameworks\esp-idf-v5.3\tools;c:\Espressif\tools\idf-git\2.39.2\cmd;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\unify_builder;C:\Users\zzzyy\.eide\bin\builder\utils;C:\Users\zzzyy\.eide\bin\scripts;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\7z;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\utils;C:\Users\zzzyy\.eide\tools\gcc_arm\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;.;C:\Users\zzzyy\.eide\bin\builder\msys\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MySQL\MySQL Server 8.4 \bin;C:\Program Files (x86)\GitExtensions\;C:\Users\zzzyy\AppData\Local\Microsoft\WindowsApps;C:\Users\zzzyy\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\MinGW\bin;C:\Users\zzzyy\.dotnet\tools;C:\Users\zzzyy\AppData\Local\GitHubDesktop\bin
IDF_PYTHON_ENV_PATH is c:\Espressif\python_env\idf5.3_py3.11_env
Executing action: all (aliases: build)
Running cmake in directory D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0"...
silence:1 sdkconfig:D:/OneDrive/esp32/esp32c3/esp-at_4.0.0.0/module_config/module_esp32c3_default/sdkconfig_silence.defaults
esp-at branch: HEAD
esp-at docs version: HEAD
CMake Error at esp-idf/tools/cmake/targets.cmake:19 (message):
IDF_TARGET in CMake cache does not match IDF_TARGET environment variable.
To change the target, clear the build directory and sdkconfig file, and
build the project again
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:93 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\build\log\idf_py_stderr_output_13644 and D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\build\log\idf_py_stdout_output_13644
A fatal error occurred: idf.py build failed
8月21:
我重新clone,esp-at 源码我使用的是4.0版本,使用python build.py install 安装正常,但是随后使用python build.py build,有如下报错
CMake Error at esp-idf/tools/cmake/build.cmake:523 (message):
WARNING: Component "espressif/esp_websocket_client" not found
WARNING: Component "espressif/mdns" not found
HINT: Please check manifest file of the following component(s): at
ERROR: Because project depends on espressif/mdns (^1.0.0) which doesn't
match any versions, version solving failed.
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
CMakeLists.txt:95 (project)
-- Configuring incomplete, errors occurred!
See also "D:/esp/esp-at/esp-at_4.0.0.0/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the D:\esp\esp-at\esp-at_4.0.0.0\build\log\idf_py_stderr_output_49016 and D:\esp\esp-at\esp-at_4.0.0.0\build\log\idf_py_stdout_output_49016
A fatal error occurred: idf.py build failed
python build.py build
Platform name:ESP32C3 Module name:MINI-1 Silence:1
submodules check completed for updates.
mbedtls_dynamic_buffer.patch does not need to be applied.
esp_tls_parse_ecc_key.patch does not need to be applied.
esp_wifi_deinit.patch does not need to be applied.
patches check completed for updates.
Ready to set up environment variables..
PATH is C:\Espressif\frameworks\esp-idf-v5.3\components\espcoredump;C:\Espressif\frameworks\esp-idf-v5.3\components\partition_table;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\tools\esp-rom-elfs\20240305;c:\Espressif\python_env\idf5.3_py3.11_env\Scripts;C:\Espressif\frameworks\esp-idf-v5.3\tools;c:\Espressif\tools\idf-git\2.39.2\cmd;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\unify_builder;C:\Users\zzzyy\.eide\bin\builder\utils;C:\Users\zzzyy\.eide\bin\scripts;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\7z;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\utils;C:\Users\zzzyy\.eide\tools\gcc_arm\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;.;C:\Users\zzzyy\.eide\bin\builder\msys\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MySQL\MySQL Server 8.4 \bin;C:\Program Files (x86)\GitExtensions\;C:\Users\zzzyy\AppData\Local\Microsoft\WindowsApps;C:\Users\zzzyy\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\MinGW\bin;C:\Users\zzzyy\.dotnet\tools;C:\Users\zzzyy\AppData\Local\GitHubDesktop\bin
IDF_PYTHON_ENV_PATH is c:\Espressif\python_env\idf5.3_py3.11_env
sys.platform is win32
Not using an unsupported version of tool xtensa-esp-elf-gdb found in PATH: 14.2_20240403. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool riscv32-esp-elf-gdb found in PATH: 14.2_20240403. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool xtensa-esp32-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool xtensa-esp32s2-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool xtensa-esp32s3-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool riscv32-esp-elf found in PATH: esp-13.2.0_20240530-13.2.0. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool esp32ulp-elf found in PATH: 2.38_20240113. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool openocd-esp32 found in PATH: v0.12.0-esp32-20240318. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool ninja found in PATH: 1.11.1. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool ccache found in PATH: 4.8. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
Not using an unsupported version of tool dfu-util found in PATH: 0.11. To use it, run 'c:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools\idf_tools.py export --prefer-system'
export str is OPENOCD_SCRIPTS=c:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\share\openocd\scripts
ESP_ROM_ELF_DIR=c:\Espressif\tools\esp-rom-elfs\20220823\
ESP_IDF_VERSION=5.0
PATH=c:\Espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin;c:\Espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;c:\Espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin;c:\Espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin;c:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin;c:\Espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;c:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;c:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin;c:\Espressif\tools\ninja\1.10.2\;c:\Espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64;c:\Espressif\tools\dfu-util\0.9\dfu-util-0.9-win64;D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools;%PATH%
IDF_DEACTIVATE_FILE_PATH=C:\Users\zzzyy\AppData\Local\Temp\tmpkjkdbh_yidf_15728
PATH is c:\Espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin;c:\Espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;c:\Espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin;c:\Espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin;c:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin;c:\Espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;c:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;c:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin;c:\Espressif\tools\ninja\1.10.2\;c:\Espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64;c:\Espressif\tools\dfu-util\0.9\dfu-util-0.9-win64;D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\esp-idf\tools;%PATH%;C:\Espressif\frameworks\esp-idf-v5.3\components\espcoredump;C:\Espressif\frameworks\esp-idf-v5.3\components\partition_table;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\tools\esp-rom-elfs\20240305;c:\Espressif\python_env\idf5.3_py3.11_env\Scripts;C:\Espressif\frameworks\esp-idf-v5.3\tools;c:\Espressif\tools\idf-git\2.39.2\cmd;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\unify_builder;C:\Users\zzzyy\.eide\bin\builder\utils;C:\Users\zzzyy\.eide\bin\scripts;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\7z;c:\Users\zzzyy\.vscode\extensions\cl.eide-3.18.2\res\tools\win32\utils;C:\Users\zzzyy\.eide\tools\gcc_arm\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;.;C:\Users\zzzyy\.eide\bin\builder\msys\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MySQL\MySQL Server 8.4 \bin;C:\Program Files (x86)\GitExtensions\;C:\Users\zzzyy\AppData\Local\Microsoft\WindowsApps;C:\Users\zzzyy\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\MinGW\bin;C:\Users\zzzyy\.dotnet\tools;C:\Users\zzzyy\AppData\Local\GitHubDesktop\bin
IDF_PYTHON_ENV_PATH is c:\Espressif\python_env\idf5.3_py3.11_env
Executing action: all (aliases: build)
Running cmake in directory D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0"...
silence:1 sdkconfig:D:/OneDrive/esp32/esp32c3/esp-at_4.0.0.0/module_config/module_esp32c3_default/sdkconfig_silence.defaults
esp-at branch: HEAD
esp-at docs version: HEAD
CMake Error at esp-idf/tools/cmake/targets.cmake:19 (message):
IDF_TARGET in CMake cache does not match IDF_TARGET environment variable.
To change the target, clear the build directory and sdkconfig file, and
build the project again
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:93 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\build\log\idf_py_stderr_output_13644 and D:\OneDrive\esp32\esp32c3\esp-at_4.0.0.0\build\log\idf_py_stdout_output_13644
A fatal error occurred: idf.py build failed
8月21:
我重新clone,esp-at 源码我使用的是4.0版本,使用python build.py install 安装正常,但是随后使用python build.py build,有如下报错
CMake Error at esp-idf/tools/cmake/build.cmake:523 (message):
WARNING: Component "espressif/esp_websocket_client" not found
WARNING: Component "espressif/mdns" not found
HINT: Please check manifest file of the following component(s): at
ERROR: Because project depends on espressif/mdns (^1.0.0) which doesn't
match any versions, version solving failed.
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
CMakeLists.txt:95 (project)
-- Configuring incomplete, errors occurred!
See also "D:/esp/esp-at/esp-at_4.0.0.0/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the D:\esp\esp-at\esp-at_4.0.0.0\build\log\idf_py_stderr_output_49016 and D:\esp\esp-at\esp-at_4.0.0.0\build\log\idf_py_stdout_output_49016
A fatal error occurred: idf.py build failed
Last edited by zzzyyd on Wed Aug 21, 2024 3:46 am, edited 1 time in total.
-
- Posts: 198
- Joined: Sun Jun 23, 2024 6:18 pm
Re: esp-at 编译问题
`PATH` 变量中不应有冲突或冗余的条目。您可以删除 `PATH` 中旧版本的工具路径,只保留您需要的工具版本。
Re: esp-at 编译问题
这个path 怎么修改啊,我在windows系统环境变量中没有找到,我是从esp-idf生成的cmd快捷方式中打开的命令行aliarifat794 wrote: ↑Sat Aug 17, 2024 3:01 pm`PATH` 变量中不应有冲突或冗余的条目。您可以删除 `PATH` 中旧版本的工具路径,只保留您需要的工具版本。
Re: esp-at 编译问题
您可以参考本地编译 ESP-AT 工程的文档来编译 AT。我注意到您的 ESP-IDF 工具安装器是 v5.3,您可以在 esp-at/module_config/module_esp32c3_default/IDF_VERSION 文件中查看到当前 C3 AT 使用的是 IDF v5.0。因此,您需要安装 ESP-IDF v5.0 版本的工具。
Re: esp-at 编译问题
按https://www.esp32.com/viewtopic.php?f=34&t=24647这个帖子来看,不是应该在源码目录下的esp-idf目录里执行install.bat自动下载的IDF吗,怎么会是贴主自己用错了版本呢?
Re: esp-at 编译问题
上一帖子中并不是指贴主通过执行 python build.py install 命令在 ESP-AT 工程下自动下载安装的 ESP-IDF 软件版本是 v5.3,而是指贴主在此步骤之前安装的 ESP-IDF 工具安装器是 v5.3。安装器的版本需要与 AT 工程中使用的 ESP-IDF 版本相匹配,以避免兼容性问题。另一种方法是不通过从 ESP-IDF 工具安装器生成的 cmd 快捷方式打开命令行,而是直接打开 cmd 命令行窗口,然后按照 本地编译 ESP-AT 工程 文档中的 第二步:获取 ESP-AT 开始进行,应该也是可以编译成功的。不过,ESP-AT 文档中不建议首次接触 ESP-AT 或 ESP-IDF 的用户这样做。
Re: esp-at 编译问题
我用的5.3版本的IDF 但同样是build failed
在python build.py install步骤中没问题
运行python build.py menuconfig和python build.py build会报:
A fatal error occurred: idf.py build failed
在python build.py install步骤中没问题
运行python build.py menuconfig和python build.py build会报:
A fatal error occurred: idf.py build failed
Re: esp-at 编译问题
可以参考这个https://blog.csdn.net/dding832/article/details/142105341?spm=1001.2014.3001.5502
Re: esp-at 编译问题
可以参考这个https://blog.csdn.net/dding832/article/details/142105341?spm=1001.2014.3001.5502
Who is online
Users browsing this forum: No registered users and 25 guests