Open tempecks opened 1 month ago
performing commands below:
idf.py python-clean; idf.py fullclean; rm -rf build;
and try to rerun the commands following the guide of Readme of Console_test may help.
Besides, Getting started of ESP-IDF may help too.
Thank you for your comment.
I'sorry that after commanding idf.py fullclean
, the same error is still coming.
On my device, csi_data_read_parse.py is working properly.
Should I change anything for esp-radar before commanding idf.py set-target esp32c3
?
BTW, can esp-radar work on ESP32-C3? The example uses ESP32-S3, not C3.
Can you provide the completed output log when running commands idf.py python-clean; idf.py fullclean; rm -rf build; idf.py set-target esp32c3; idf.py flash
? And please make sure your have run the commands git pull; git submodule update --init --recursive; ./install.sh; . ./export.sh;
at the root dirctory of esp-idf.
Yes, esp-radar can work on ESP32-C3.
Thank you for your comment.
Here are the completed output log when running commands idf.py python-clean; idf.py fullclean; rm -rf build; idf.py set-target esp32; idf.py flash
;
*I changed the device from ESP32-C3 to ESP32, because now I have only ESP32 here.
PS C:\Windows\system32> cd C:\esp-csi\examples\esp-radar\console_test PS C:\esp-csi\examples\esp-radar\console_test> idf.py python-clean Executing action: python-clean Done PS C:\esp-csi\examples\esp-radar\console_test> idf.py fullclean Executing action: fullclean Build directory 'C:\esp-csi\examples\esp-radar\console_test\build' not found. Nothing to clean. Executing action: remove_managed_components Done PS C:\esp-csi\examples\esp-radar\console_test> rm -rf build Remove-Item : パラメーター名 'rf' に一致するパラメーターが見つかりません。 発生場所 行:1 文字:4
+ CategoryInfo : InvalidArgument: (:) [Remove-Item]、ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\esp-csi\examples\esp-radar\console_test> idf.py set-target esp32 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Build directory 'C:\esp-csi\examples\esp-radar\console_test\build' not found. Nothing to clean. Executing action: set-target Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old. Running cmake in directory C:\esp-csi\examples\esp-radar\console_test\build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 C:\esp-csi\examples\esp-radar\console_test"... -- Found Git: C:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") -- ccache will be used for faster recompilation -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/Espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 Dependencies lock doesn't exist, solving dependencies. Using component placed at C:\esp-csi\components\esp-radar for dependency esp-radar(0.*), specified in C:/esp-csi/examples/esp-radar/console_test/main\idf_component.yml CMake Error at C:/Espressif/frameworks/esp-idf-v5.0.4/tools/cmake/build.cmake:519 (message): WARNING: Component "espressif/cmake_utilities" not found
WARNING: From https://github.com/espressif/esp-rainmaker
e123e56..90a8d9e master -> master
ERROR: Because no versions of esp-radar match >=0.0.0,<0.2.0 ||
0.2.0,<1.0.0
and esp-radar (0.2.0) depends on espressif/cmake_utilities (0.), esp-radar (>=0.0.0,<1.0.0) requires espressif/cmake_utilities (0.).
So, because no versions of espressif/cmake_utilities match 0.*
and project depends on esp-radar (0.*), version solving failed.
Call Stack (most recent call first): C:/Espressif/frameworks/esp-idf-v5.0.4/tools/cmake/project.cmake:530 (idf_build_process) CMakeLists.txt:10 (project)
...-- Configuring incomplete, errors occurred! See also "C:/esp-csi/examples/esp-radar/console_test/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1, output of the command is in the C:\esp-csi\examples\esp-radar\console_test\build\log\idf_py_stderr_output_7572 and C:\esp-csi\examples\esp-radar\console_test\build\log\idf_py_stdout_output_7572 PS C:\esp-csi\examples\esp-radar\console_test> idf.py flash Executing action: flash Running cmake in directory C:\esp-csi\examples\esp-radar\console_test\build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\esp-csi\examples\esp-radar\console_test"... -- IDF_TARGET not set, using default target: esp32 -- Found Git: C:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") -- ccache will be used for faster recompilation -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/Espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 Dependencies lock doesn't exist, solving dependencies. Using component placed at C:\esp-csi\components\esp-radar for dependency esp-radar(0.*), specified in C:/esp-csi/examples/esp-radar/console_test/main\idf_component.yml CMake Error at C:/Espressif/frameworks/esp-idf-v5.0.4/tools/cmake/build.cmake:519 (message): WARNING: Component "espressif/cmake_utilities" not found
ERROR: Because no versions of esp-radar match >=0.0.0,<0.2.0 ||
0.2.0,<1.0.0
and esp-radar (0.2.0) depends on espressif/cmake_utilities (0.), esp-radar (>=0.0.0,<1.0.0) requires espressif/cmake_utilities (0.).
So, because no versions of espressif/cmake_utilities match 0.*
and project depends on esp-radar (0.*), version solving failed.
Call Stack (most recent call first): C:/Espressif/frameworks/esp-idf-v5.0.4/tools/cmake/project.cmake:530 (idf_build_process) CMakeLists.txt:10 (project)
...-- Configuring incomplete, errors occurred! See also "C:/esp-csi/examples/esp-radar/console_test/build/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1, output of the command is in the C:\esp-csi\examples\esp-radar\console_test\build\log\idf_py_stderr_output_3220 and C:\esp-csi\examples\esp-radar\console_test\build\log\idf_py_stdout_output_3220 PS C:\esp-csi\examples\esp-radar\console_test>
Here are the completed output log when running commands git pull; git submodule update --init --recursive; ./install.sh; . ./export.sh
; at the dirctory of esp-idf-v5.0.4;
PS C:\Espressif\frameworks\esp-idf-v5.0.4> git pull error: cannot spawn gpg: No such file or directory Already up to date. PS C:\Espressif\frameworks\esp-idf-v5.0.4> git submodule update --init --recursive PS C:\Espressif\frameworks\esp-idf-v5.0.4> ./install.sh PS C:\Espressif\frameworks\esp-idf-v5.0.4> [main 2024-07-16T11:14:29.152Z] update#setState idle [main 2024-07-16T11:14:59.158Z] update#setState checking for updates PS C:\Espressif\frameworks\esp-idf-v5.0.4> tate idle PS C:\Espressif\frameworks\esp-idf-v5.0.4> . ./export.sh
After commanding ./install.sh; . ./export.sh
, VS CODE popped up, but nothing happen except for the out put written above.
Seems your development environment is' win+PowerShell '? I recommend that you follow the document: [how to use the WSL + VSCode build ESP32 development environment] (https://www.bilibili.com/read/cv7755144/) set up your development environment on Windows. Looking forward to your feedback.
Thank you for your comment. Following the document , I encountered the situation witten below. Please tell me how I should solve this?
xxx@ xxx: /esp-idf$ ./install.sh Detecting the Python interpreter Checking "python3" ... Python 3.8.0 "python3" has been detected Checking Python compatibility Installing ESP-IDF tools Updating /home/ xxx/.espressif/idf-env.json Selected targets are: esp32, esp32c6, esp32c5, esp32s2, esp32s3, esp32c3, esp32c2, esp32c61, esp32h2, esp32p4 Current system platform: linux-amd64 Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp-elf, riscv32-esp-elf, esp32ulp-elf, openocd-esp32, esp-rom-elfs Skipping xtensa-esp-elf-gdb@14.2_20240403 (already installed) Skipping riscv32-esp-elf-gdb@14.2_20240403 (already installed) Skipping xtensa-esp-elf@esp-13.2.0_20240530 (already installed) Skipping riscv32-esp-elf@esp-13.2.0_20240530 (already installed) Skipping esp32ulp-elf@2.38_20240113 (already installed) Skipping openocd-esp32@v0.12.0-esp32-20240318 (already installed) Skipping esp-rom-elfs@20240305 (already installed) Installing Python environment and packages Creating a new Python environment in /home/ xxx/.espressif/python_env/idf5.4_py3.8_env The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.
Failing command: ['/home/ xxx/.espressif/python_env/idf5.4_py3.8_env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
Traceback (most recent call last):
File "/home/ xxx/esp-idf/tools/idf_tools.py", line 3248, in
xxx@ xxx: /esp-idf$ sudo apt-get install python3-venv Reading package lists... Done Building dependency tree Reading state information... Done python3-venv is already the newest version (3.6.7-1 18.04). The following packages were automatically installed and are no longer required: efibootmgr libefiboot1 libefivar1 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
xxx@ xxx: /esp-idf$ ./install.sh Detecting the Python interpreter Checking "python3" ... Python 3.8.0 "python3" has been detected Checking Python compatibility Installing ESP-IDF tools Selected targets are: esp32c5, esp32, esp32p4, esp32h2, esp32c61, esp32s2, esp32c2, esp32s3, esp32c3, esp32c6 Current system platform: linux-amd64 Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp-elf, riscv32-esp-elf, esp32ulp-elf, openocd-esp32, esp-rom-elfs Skipping xtensa-esp-elf-gdb@14.2_20240403 (already installed) Skipping riscv32-esp-elf-gdb@14.2_20240403 (already installed) Skipping xtensa-esp-elf@esp-13.2.0_20240530 (already installed) Skipping riscv32-esp-elf@esp-13.2.0_20240530 (already installed) Skipping esp32ulp-elf@2.38_20240113 (already installed) Skipping openocd-esp32@v0.12.0-esp32-20240318 (already installed) Skipping esp-rom-elfs@20240305 (already installed) Installing Python environment and packages Python 3.8.0 /home/ xxx/.espressif/python_env/idf5.4_py3.8_env/bin/python: No module named pip WARNING: pip is not available in the existing virtual environment, new virtual environment will be created. WARNING: Removing the existing Python environment in /home/ xxx/.espressif/python_env/idf5.4_py3.8_env Creating a new Python environment in /home/ xxx/.espressif/python_env/idf5.4_py3.8_env The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.
Failing command: ['/home/ xxx/.espressif/python_env/idf5.4_py3.8_env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
Traceback (most recent call last):
File "/home/ xxx/esp-idf/tools/idf_tools.py", line 3248, in
I encountered the error witten below when setting up for esp-csi console_test. How can I solve this problem? Please help me, very beginner.
PS C:\esp-csi\examples\esp-radar\console_test> idf.py set-target esp32-c3 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Directory 'C:\esp-csi\examples\esp-radar\console_test\build' doesn't seem to be a CMake build directory. Refusing to automatically delete files in this directory. Delete the directory manually to 'clean' it.