Closed krupis closed 1 year ago
idf.py command is acting weird on windows 10.
In this case, are you opening a regular Windows command prompt, or "IDF Command Prompt" shortcut created by the installer? This command will work inside IDF Command Prompt (or Powershell, if you prefer that), since it will have all the required variables set up.
Directory 'c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\motion_detection\lcd\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.
You can simply do what the message says, and delete the build directory. Then run idf.py set-target esp32s3
again.
@igrr
Thanks for a very quick response.
In this case, are you opening a regular Windows command prompt, or "IDF Command Prompt" shortcut created by the installer? This command will work inside IDF Command Prompt (or Powershell, if you prefer that), since it will have all the required variables set up.
I have tried to open a regular Command Prompt as well as ESP-IDF 5.0 CMD and both work the same. They both open python editor when I execute idf.py command. I think I had this issue ages ago, and I had found the solution (But I cannot fully remember). The solution was to provide full python and idf.py paths but I cant really reproduce this solution nor find the forum thread where this was discussed.
You can simply do what the message says, and delete the build directory. Then run idf.py set-target esp32s3 again.
I have tried the following:
PS C:\Users\petrikas.lu\Desktop\WORK\ESP32\esp-who\examples\motion_detection\lcd> rm build
Confirm
The item at C:\Users\petrikas.lu\Desktop\WORK\ESP32\esp-who\examples\motion_detection\lcd\build has children and the Recurse parameter was not specified. If you continue,
all children will be removed with the item. Are you sure you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
PS C:\Users\petrikas.lu\Desktop\WORK\ESP32\esp-who\examples\motion_detection\lcd> idf.py set-target esp32s3
C:\Users\petrikas.lu\esp\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\motion_detection\lcd\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\motion_detection\lcd\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\motion_detection\lcd"...
CMake Error at C:/Users/petrikas.lu/esp/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):
C:/Users/petrikas.lu/esp/esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:7 (include)
There still seem to be an issue with the sdkconfig and build files.
For the first issue (idf.py), please open IDF Command prompt and run: doskey /MACROS:ALL
, and paste the output here.
IDF_TARGET in CMake cache does not match IDF_TARGET environment variable.
For the second issue, the error message suggests that there is still a CMakeCache.txt file left in the build directory. After deleting the build directory, could you please check (for example, in Windows Explorer) that the build directory was really deleted?
Also, could you check if you can idf.py set-target esp32s3
in some other project, for example inside the blink
example in ESP-IDF?
@igrr
For the first issue (idf.py), please open IDF Command prompt and run:
doskey /MACROS:ALL
, and paste the output here.IDF_TARGET in CMake cache does not match IDF_TARGET environment variable.
I have opened ESP-IDF Command Prompt and executed doskey /MACROS:ALL
. It does not return anything. As you can see as soon as I opened the ESP-IDF Command Prompt it prints The system cannot find the path specified.
. Perhaps that is one of the issues?
For the second issue, the error message suggests that there is still a CMakeCache.txt file left in the build directory. After deleting the build directory, could you please check (for example, in Windows Explorer) that the build directory was really deleted?
I have manually deleted the build directory and ensured through windows explorer that there is no build folder. After that, I tried to execute idf.py set-target esp32s3
command but it still complains:
PS C:\Users\petrikas.lu\Desktop\WORK\ESP32\esp-who\examples\color_detection\lcd> idf.py set-target esp32s3
C:\Users\petrikas.lu\esp5\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\color_detection\lcd\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\color_detection\lcd\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 c:\users\petrikas.lu\desktop\work\esp32\esp-who\examples\color_detection\lcd"...
CMake Error at C:/Users/petrikas.lu/esp5/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):
C:/Users/petrikas.lu/esp5/esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:7 (include)
Also, could you check if you can
idf.py set-target esp32s3
in some other project, for example inside theblink
example in ESP-IDF?
I opened clean(previously has not been compiled ever) example project "hello world" in vscode and opened ESP-IDF terminal in vscode. I ran idf.py set-target esp32s3
and tried to set the target using command idf.py set-target esp32s3
. It does not seem to work:
PS C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world> idf.py set-target esp32s3
C:\Users\petrikas.lu\esp5\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world"...
CMake Error at C:/Users/petrikas.lu/esp5/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):
C:/Users/petrikas.lu/esp5/esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build\log\idf_py_stderr_output_20132 and C:\Users\petrikas.lu\esp5\esp-idf\:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build\log\idf_py_stdout_output_20132
PS C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world>
However, it works without any issues if I change target using the below method:
Click on vscode currently selected target (in my case its esp32)
Select desired target:
In my case, I select esp32s3
I can see the target being changed and the following is printed in vscode OUTPUT console:
C:\Users\petrikas.lu\esp5\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
esp32
esp32s2
esp32c3
esp32s3
esp32c2
C:\Users\petrikas.lu\esp5\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
esp32
esp32s2
esp32c3
esp32s3
esp32c2
linux
esp32h2
C:\Users\petrikas.lu\esp5\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world"...
-- Found Git: C:/Users/petrikas.lu/.espressif5/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- 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:/Users/petrikas.lu/.espressif5/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/petrikas.lu/.espressif5/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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:/Users/petrikas.lu/.espressif5/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: C:/Users/petrikas.lu/.espressif5/python_env/idf5.0_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "hello_world" version: v5.0.3
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/petrikas.lu/esp5/esp-idf/components/app_trace C:/Users/petrikas.lu/esp5/esp-idf/components/app_update C:/Users/petrikas.lu/esp5/esp-idf/components/bootloader C:/Users/petrikas.lu/esp5/esp-idf/components/bootloader_support C:/Users/petrikas.lu/esp5/esp-idf/components/bt C:/Users/petrikas.lu/esp5/esp-idf/components/cmock C:/Users/petrikas.lu/esp5/esp-idf/components/console C:/Users/petrikas.lu/esp5/esp-idf/components/cxx C:/Users/petrikas.lu/esp5/esp-idf/components/driver C:/Users/petrikas.lu/esp5/esp-idf/components/efuse C:/Users/petrikas.lu/esp5/esp-idf/components/esp-tls C:/Users/petrikas.lu/esp5/esp-idf/components/esp_adc C:/Users/petrikas.lu/esp5/esp-idf/components/esp_app_format C:/Users/petrikas.lu/esp5/esp-idf/components/esp_common C:/Users/petrikas.lu/esp5/esp-idf/components/esp_eth C:/Users/petrikas.lu/esp5/esp-idf/components/esp_event C:/Users/petrikas.lu/esp5/esp-idf/components/esp_gdbstub C:/Users/petrikas.lu/esp5/esp-idf/components/esp_hid C:/Users/petrikas.lu/esp5/esp-idf/components/esp_http_client C:/Users/petrikas.lu/esp5/esp-idf/components/esp_http_server C:/Users/petrikas.lu/esp5/esp-idf/components/esp_https_ota C:/Users/petrikas.lu/esp5/esp-idf/components/esp_https_server C:/Users/petrikas.lu/esp5/esp-idf/components/esp_hw_support C:/Users/petrikas.lu/esp5/esp-idf/components/esp_lcd C:/Users/petrikas.lu/esp5/esp-idf/components/esp_local_ctrl C:/Users/petrikas.lu/esp5/esp-idf/components/esp_netif C:/Users/petrikas.lu/esp5/esp-idf/components/esp_partition C:/Users/petrikas.lu/esp5/esp-idf/components/esp_phy C:/Users/petrikas.lu/esp5/esp-idf/components/esp_pm C:/Users/petrikas.lu/esp5/esp-idf/components/esp_psram C:/Users/petrikas.lu/esp5/esp-idf/components/esp_ringbuf C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom C:/Users/petrikas.lu/esp5/esp-idf/components/esp_system C:/Users/petrikas.lu/esp5/esp-idf/components/esp_timer C:/Users/petrikas.lu/esp5/esp-idf/components/esp_wifi C:/Users/petrikas.lu/esp5/esp-idf/components/espcoredump C:/Users/petrikas.lu/esp5/esp-idf/components/esptool_py C:/Users/petrikas.lu/esp5/esp-idf/components/fatfs C:/Users/petrikas.lu/esp5/esp-idf/components/freertos C:/Users/petrikas.lu/esp5/esp-idf/components/hal C:/Users/petrikas.lu/esp5/esp-idf/components/heap C:/Users/petrikas.lu/esp5/esp-idf/components/http_parser C:/Users/petrikas.lu/esp5/esp-idf/components/idf_test C:/Users/petrikas.lu/esp5/esp-idf/components/ieee802154 C:/Users/petrikas.lu/esp5/esp-idf/components/json C:/Users/petrikas.lu/esp5/esp-idf/components/log C:/Users/petrikas.lu/esp5/esp-idf/components/lwip C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/main C:/Users/petrikas.lu/esp5/esp-idf/components/mbedtls C:/Users/petrikas.lu/esp5/esp-idf/components/mqtt C:/Users/petrikas.lu/esp5/esp-idf/components/newlib C:/Users/petrikas.lu/esp5/esp-idf/components/nvs_flash C:/Users/petrikas.lu/esp5/esp-idf/components/openthread C:/Users/petrikas.lu/esp5/esp-idf/components/partition_table C:/Users/petrikas.lu/esp5/esp-idf/components/perfmon C:/Users/petrikas.lu/esp5/esp-idf/components/protobuf-c C:/Users/petrikas.lu/esp5/esp-idf/components/protocomm C:/Users/petrikas.lu/esp5/esp-idf/components/pthread C:/Users/petrikas.lu/esp5/esp-idf/components/sdmmc C:/Users/petrikas.lu/esp5/esp-idf/components/soc C:/Users/petrikas.lu/esp5/esp-idf/components/spi_flash C:/Users/petrikas.lu/esp5/esp-idf/components/spiffs C:/Users/petrikas.lu/esp5/esp-idf/components/tcp_transport C:/Users/petrikas.lu/esp5/esp-idf/components/touch_element C:/Users/petrikas.lu/esp5/esp-idf/components/ulp C:/Users/petrikas.lu/esp5/esp-idf/components/unity C:/Users/petrikas.lu/esp5/esp-idf/components/usb C:/Users/petrikas.lu/esp5/esp-idf/components/vfs C:/Users/petrikas.lu/esp5/esp-idf/components/wear_levelling C:/Users/petrikas.lu/esp5/esp-idf/components/wifi_provisioning C:/Users/petrikas.lu/esp5/esp-idf/components/wpa_supplicant C:/Users/petrikas.lu/esp5/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/build
C:\Users\petrikas.lu\esp5\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 C:\Users\petrikas.lu\esp5\esp-idf\examples\get-started\hello_world"...
-- Found Git: C:/Users/petrikas.lu/.espressif5/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- 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:/Users/petrikas.lu/.espressif5/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/petrikas.lu/.espressif5/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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:/Users/petrikas.lu/.espressif5/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: C:/Users/petrikas.lu/.espressif5/python_env/idf5.0_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "hello_world" version: v5.0.3
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Users/petrikas.lu/esp5/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/petrikas.lu/esp5/esp-idf/components/app_trace C:/Users/petrikas.lu/esp5/esp-idf/components/app_update C:/Users/petrikas.lu/esp5/esp-idf/components/bootloader C:/Users/petrikas.lu/esp5/esp-idf/components/bootloader_support C:/Users/petrikas.lu/esp5/esp-idf/components/bt C:/Users/petrikas.lu/esp5/esp-idf/components/cmock C:/Users/petrikas.lu/esp5/esp-idf/components/console C:/Users/petrikas.lu/esp5/esp-idf/components/cxx C:/Users/petrikas.lu/esp5/esp-idf/components/driver C:/Users/petrikas.lu/esp5/esp-idf/components/efuse C:/Users/petrikas.lu/esp5/esp-idf/components/esp-tls C:/Users/petrikas.lu/esp5/esp-idf/components/esp_adc C:/Users/petrikas.lu/esp5/esp-idf/components/esp_app_format C:/Users/petrikas.lu/esp5/esp-idf/components/esp_common C:/Users/petrikas.lu/esp5/esp-idf/components/esp_eth C:/Users/petrikas.lu/esp5/esp-idf/components/esp_event C:/Users/petrikas.lu/esp5/esp-idf/components/esp_gdbstub C:/Users/petrikas.lu/esp5/esp-idf/components/esp_hid C:/Users/petrikas.lu/esp5/esp-idf/components/esp_http_client C:/Users/petrikas.lu/esp5/esp-idf/components/esp_http_server C:/Users/petrikas.lu/esp5/esp-idf/components/esp_https_ota C:/Users/petrikas.lu/esp5/esp-idf/components/esp_https_server C:/Users/petrikas.lu/esp5/esp-idf/components/esp_hw_support C:/Users/petrikas.lu/esp5/esp-idf/components/esp_lcd C:/Users/petrikas.lu/esp5/esp-idf/components/esp_local_ctrl C:/Users/petrikas.lu/esp5/esp-idf/components/esp_netif C:/Users/petrikas.lu/esp5/esp-idf/components/esp_partition C:/Users/petrikas.lu/esp5/esp-idf/components/esp_phy C:/Users/petrikas.lu/esp5/esp-idf/components/esp_pm C:/Users/petrikas.lu/esp5/esp-idf/components/esp_psram C:/Users/petrikas.lu/esp5/esp-idf/components/esp_ringbuf C:/Users/petrikas.lu/esp5/esp-idf/components/esp_rom C:/Users/petrikas.lu/esp5/esp-idf/components/esp_system C:/Users/petrikas.lu/esp5/esp-idf/components/esp_timer C:/Users/petrikas.lu/esp5/esp-idf/components/esp_wifi C:/Users/petrikas.lu/esp5/esp-idf/components/espcoredump C:/Users/petrikas.lu/esp5/esp-idf/components/esptool_py C:/Users/petrikas.lu/esp5/esp-idf/components/fatfs C:/Users/petrikas.lu/esp5/esp-idf/components/freertos C:/Users/petrikas.lu/esp5/esp-idf/components/hal C:/Users/petrikas.lu/esp5/esp-idf/components/heap C:/Users/petrikas.lu/esp5/esp-idf/components/http_parser C:/Users/petrikas.lu/esp5/esp-idf/components/idf_test C:/Users/petrikas.lu/esp5/esp-idf/components/ieee802154 C:/Users/petrikas.lu/esp5/esp-idf/components/json C:/Users/petrikas.lu/esp5/esp-idf/components/log C:/Users/petrikas.lu/esp5/esp-idf/components/lwip C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/main C:/Users/petrikas.lu/esp5/esp-idf/components/mbedtls C:/Users/petrikas.lu/esp5/esp-idf/components/mqtt C:/Users/petrikas.lu/esp5/esp-idf/components/newlib C:/Users/petrikas.lu/esp5/esp-idf/components/nvs_flash C:/Users/petrikas.lu/esp5/esp-idf/components/openthread C:/Users/petrikas.lu/esp5/esp-idf/components/partition_table C:/Users/petrikas.lu/esp5/esp-idf/components/perfmon C:/Users/petrikas.lu/esp5/esp-idf/components/protobuf-c C:/Users/petrikas.lu/esp5/esp-idf/components/protocomm C:/Users/petrikas.lu/esp5/esp-idf/components/pthread C:/Users/petrikas.lu/esp5/esp-idf/components/sdmmc C:/Users/petrikas.lu/esp5/esp-idf/components/soc C:/Users/petrikas.lu/esp5/esp-idf/components/spi_flash C:/Users/petrikas.lu/esp5/esp-idf/components/spiffs C:/Users/petrikas.lu/esp5/esp-idf/components/tcp_transport C:/Users/petrikas.lu/esp5/esp-idf/components/touch_element C:/Users/petrikas.lu/esp5/esp-idf/components/ulp C:/Users/petrikas.lu/esp5/esp-idf/components/unity C:/Users/petrikas.lu/esp5/esp-idf/components/usb C:/Users/petrikas.lu/esp5/esp-idf/components/vfs C:/Users/petrikas.lu/esp5/esp-idf/components/wear_levelling C:/Users/petrikas.lu/esp5/esp-idf/components/wifi_provisioning C:/Users/petrikas.lu/esp5/esp-idf/components/wpa_supplicant C:/Users/petrikas.lu/esp5/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/petrikas.lu/esp5/esp-idf/examples/get-started/hello_world/build
I see! Yes, of course, VS Code extension will set the target selected in the UI automatically. What you finally did (selected the target in VS Code) is the correct approach there.
As you can see as soon as I opened the ESP-IDF Command Prompt it prints The system cannot find the path specified.. Perhaps that is one of the issues?
Yes, probably this means that the script which runs first when this shortcut is opened got moved somewhere or deleted. If you still want to use the command prompt I would recommend running the installer again so that it can recreate the shortcuts. Alternatively, you can use the terminal within VS Code, as that seemingly is working fine.
Since now we are talking about reinstalling your ESP-IDF, I'd like to suggest to install the latest bugfix version of ESP-IDF v4.4.* because the esp-who documentation suggests this - I can just guess but it looks like ESP-IDF v5.0 is not yet supported (?).
@igrr
Alternatively, you can use the terminal within VS Code, as that seemingly is working fine.
That is exactly why I am confused since selecting target using terminal within VS code does not work. For example, if I open vscode terminal:
and run idf.py set-target esp32
command, it will not go through (the project is clean and there is no build folder):
Then it will not work:
PS D:\Programming\ESP32\Camera_test> idf.py set-target esp32
C:\Users\Lukas\esp\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'd:\programming\esp32\camera_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 d:\programming\esp32\camera_test\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:\programming\esp32\camera_test"...
CMake Error at C:/Users/Lukas/esp/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):
C:/Users/Lukas/esp/esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the d:\programming\esp32\camera_test\build\log\idf_py_stderr_output_18952 and d:\programming\esp32\camera_test\build\log\idf_py_stdout_output_18952
PS D:\Programming\ESP32\Camera_test>
But I can just simply select the target by the following method:
and it will work just fine.
I dont understand why it works one way but not another.
What method of installing esp-idf is recommended to ensure it works properly? I always used the vscode method to install the esp-idf:
But as we can see, using this method causes issues while trying to use esp-idf cmd
Since now we are talking about reinstalling your ESP-IDF, I'd like to suggest to install the latest bugfix version of ESP-IDF v4.4.* because the esp-who documentation suggests this - I can just guess but it looks like ESP-IDF v5.0 is not yet supported (?).
Good point. Thanks il install v.4.4 for ESP-WHO
UPDATE
I have managed to remember how to prevent the idf.py command from opening the python editor. For example, if I want to execute command:
idf.py --version
I have to use full python and idf tools path such as:
D:\Programming\ESP32\esp-who-master\examples\color_detection\lcd>C:\Users\Lukas\.espressif4\python_env\idf4.4_py3.8_env\Scripts\python.exe C:\Users\Lukas\esp4\esp-idf\tools\idf.py --version
ESP-IDF v4.4.4
As you can see that worked and I got the response.
I am still confused regarding setting target using vscode Terminal.
How come idf.py set-target esp32
works without any issues:
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 'd:\programming\esp32\esp-eye-test\esp-who\examples\color_detection\lcd\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 d:\programming\esp32\esp-eye-test\esp-who\examples\color_detection\lcd\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:\programming\esp32\esp-eye-test\esp-who\examples\color_detection\lcd"...
-- Found Git: C:/Users/Lukas/.espressif4/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 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Lukas/.espressif4/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.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:/Users/Lukas/.espressif4/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.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:/Users/Lukas/.espressif4/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.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
Processing 1 dependencies:
[1/1] idf (4.4.4)
-- DEBUG: Use esp-modbus component folder: C:/Users/Lukas/esp4/esp-idf/components/freemodbus.
-- Project sdkconfig file D:/Programming/ESP32/esp-eye-test/esp-who/examples/color_detection/lcd/sdkconfig
Loading defaults file D:/Programming/ESP32/esp-eye-test/esp-who/examples/color_detection/lcd/sdkconfig.defaults...
-- Found Python3: C:/Users/Lukas/.espressif4/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "color_detection_lcd" version: v0.9.3-170-g5497ff2
-- Adding linker script D:/Programming/ESP32/esp-eye-test/esp-who/examples/color_detection/lcd/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/Lukas/esp4/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- DEBUG: Use esp-modbus component folder: C:/Users/Lukas/esp4/esp-idf/components/freemodbus.
-- Components: app_trace app_update asio bootloader bootloader_support bt bus cbor cmock coap console cxx driver efuse esp-code-scanner esp-dl esp-sr esp-tls esp32 esp32-camera esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs fb_gfx freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns modules mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread screen sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/Lukas/esp4/esp-idf/components/app_trace C:/Users/Lukas/esp4/esp-idf/components/app_update C:/Users/Lukas/esp4/esp-idf/components/asio C:/Users/Lukas/esp4/esp-idf/components/bootloader C:/Users/Lukas/esp4/esp-idf/components/bootloader_support C:/Users/Lukas/esp4/esp-idf/components/bt D:/Programming/ESP32/esp-eye-test/esp-who/components/bus C:/Users/Lukas/esp4/esp-idf/components/cbor C:/Users/Lukas/esp4/esp-idf/components/cmock C:/Users/Lukas/esp4/esp-idf/components/coap C:/Users/Lukas/esp4/esp-idf/components/console C:/Users/Lukas/esp4/esp-idf/components/cxx C:/Users/Lukas/esp4/esp-idf/components/driver C:/Users/Lukas/esp4/esp-idf/components/efuse D:/Programming/ESP32/esp-eye-test/esp-who/components/esp-code-scanner D:/Programming/ESP32/esp-eye-test/esp-who/components/esp-dl D:/Programming/ESP32/esp-eye-test/esp-who/components/esp-sr C:/Users/Lukas/esp4/esp-idf/components/esp-tls C:/Users/Lukas/esp4/esp-idf/components/esp32 D:/Programming/ESP32/esp-eye-test/esp-who/components/esp32-camera C:/Users/Lukas/esp4/esp-idf/components/esp_adc_cal C:/Users/Lukas/esp4/esp-idf/components/esp_common C:/Users/Lukas/esp4/esp-idf/components/esp_eth C:/Users/Lukas/esp4/esp-idf/components/esp_event C:/Users/Lukas/esp4/esp-idf/components/esp_gdbstub C:/Users/Lukas/esp4/esp-idf/components/esp_hid C:/Users/Lukas/esp4/esp-idf/components/esp_http_client C:/Users/Lukas/esp4/esp-idf/components/esp_http_server C:/Users/Lukas/esp4/esp-idf/components/esp_https_ota C:/Users/Lukas/esp4/esp-idf/components/esp_https_server C:/Users/Lukas/esp4/esp-idf/components/esp_hw_support C:/Users/Lukas/esp4/esp-idf/components/esp_ipc C:/Users/Lukas/esp4/esp-idf/components/esp_lcd C:/Users/Lukas/esp4/esp-idf/components/esp_local_ctrl C:/Users/Lukas/esp4/esp-idf/components/esp_netif C:/Users/Lukas/esp4/esp-idf/components/esp_phy C:/Users/Lukas/esp4/esp-idf/components/esp_pm C:/Users/Lukas/esp4/esp-idf/components/esp_ringbuf C:/Users/Lukas/esp4/esp-idf/components/esp_rom C:/Users/Lukas/esp4/esp-idf/components/esp_serial_slave_link C:/Users/Lukas/esp4/esp-idf/components/esp_system C:/Users/Lukas/esp4/esp-idf/components/esp_timer C:/Users/Lukas/esp4/esp-idf/components/esp_websocket_client C:/Users/Lukas/esp4/esp-idf/components/esp_wifi
C:/Users/Lukas/esp4/esp-idf/components/espcoredump C:/Users/Lukas/esp4/esp-idf/components/esptool_py C:/Users/Lukas/esp4/esp-idf/components/expat C:/Users/Lukas/esp4/esp-idf/components/fatfs D:/Programming/ESP32/esp-eye-test/esp-who/components/fb_gfx C:/Users/Lukas/esp4/esp-idf/components/freemodbus C:/Users/Lukas/esp4/esp-idf/components/freertos C:/Users/Lukas/esp4/esp-idf/components/hal C:/Users/Lukas/esp4/esp-idf/components/heap C:/Users/Lukas/esp4/esp-idf/components/idf_test C:/Users/Lukas/esp4/esp-idf/components/ieee802154 C:/Users/Lukas/esp4/esp-idf/components/jsmn C:/Users/Lukas/esp4/esp-idf/components/json C:/Users/Lukas/esp4/esp-idf/components/libsodium C:/Users/Lukas/esp4/esp-idf/components/log C:/Users/Lukas/esp4/esp-idf/components/lwip D:/Programming/ESP32/esp-eye-test/esp-who/examples/color_detection/lcd/main C:/Users/Lukas/esp4/esp-idf/components/mbedtls C:/Users/Lukas/esp4/esp-idf/components/mdns D:/Programming/ESP32/esp-eye-test/esp-who/components/modules C:/Users/Lukas/esp4/esp-idf/components/mqtt C:/Users/Lukas/esp4/esp-idf/components/newlib C:/Users/Lukas/esp4/esp-idf/components/nghttp C:/Users/Lukas/esp4/esp-idf/components/nvs_flash C:/Users/Lukas/esp4/esp-idf/components/openssl C:/Users/Lukas/esp4/esp-idf/components/openthread C:/Users/Lukas/esp4/esp-idf/components/partition_table C:/Users/Lukas/esp4/esp-idf/components/perfmon C:/Users/Lukas/esp4/esp-idf/components/protobuf-c C:/Users/Lukas/esp4/esp-idf/components/protocomm C:/Users/Lukas/esp4/esp-idf/components/pthread D:/Programming/ESP32/esp-eye-test/esp-who/components/screen C:/Users/Lukas/esp4/esp-idf/components/sdmmc C:/Users/Lukas/esp4/esp-idf/components/soc C:/Users/Lukas/esp4/esp-idf/components/spi_flash C:/Users/Lukas/esp4/esp-idf/components/spiffs C:/Users/Lukas/esp4/esp-idf/components/tcp_transport C:/Users/Lukas/esp4/esp-idf/components/tcpip_adapter C:/Users/Lukas/esp4/esp-idf/components/tinyusb C:/Users/Lukas/esp4/esp-idf/components/ulp C:/Users/Lukas/esp4/esp-idf/components/unity C:/Users/Lukas/esp4/esp-idf/components/usb C:/Users/Lukas/esp4/esp-idf/components/vfs C:/Users/Lukas/esp4/esp-idf/components/wear_levelling C:/Users/Lukas/esp4/esp-idf/components/wifi_provisioning C:/Users/Lukas/esp4/esp-idf/components/wpa_supplicant C:/Users/Lukas/esp4/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Programming/ESP32/esp-eye-test/esp-who/examples/color_detection/lcd/build
PS D:\Programming\ESP32\esp-eye-test\esp-who\examples\color_detection\lcd>
but after cleaning the project(deleting build folder) and executing the command idf.py set-target esp32s3
it does not work!
PS D:\Programming\ESP32\esp-eye-test\esp-who\examples\color_detection\lcd> idf.py set-target esp32s3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'd:\programming\esp32\esp-eye-test\esp-who\examples\color_detection\lcd\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory d:\programming\esp32\esp-eye-test\esp-who\examples\color_detection\lcd\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 d:\programming\esp32\esp-eye-test\esp-who\examples\color_detection\lcd"...
CMake Error at C:/Users/Lukas/esp4/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):
C:/Users/Lukas/esp4/esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:7 (include)
I can set the target to esp32 and build the esp-who example project. But since I use ESP32-S3 board, I need to change target to esp32s3 but it wont let me.
An issue is with the IDF_TARGET IDF_TARGET in CMake cache does not match IDF_TARGET environment variable.
And cleaning the project does not help I have tried 100 times. That is so strange!
I am still confused regarding setting target using vscode Terminal.
How come idf.py set-target esp32 works without any issues:
This happens because the target selector in VS Code extension is set to "esp32", which determines the target setting in the environment. When you try to set the target to a different value in the command line inside VS Code, these two settings are in conflict, which results in an error.
Since you are using VS Code extension to build the project, setting the target in VS Code rather than in the command line is the correct approach.
I am still confused regarding setting target using vscode Terminal.
How come idf.py set-target esp32 works without any issues:
This happens because the target selector in VS Code extension is set to "esp32", which determines the target setting in the environment. When you try to set the target to a different value in the command line inside VS Code, these two settings are in conflict.
Since you are using VS Code extension to build the project, setting the target in VS Code rather than in the command line is the correct approach.
Ahhh it makes sense to me now. Thanks for explaining
@krupis Everything has been solved now? Can this be closed?
@krupis Everything has been solved now? Can this be closed?
Yes lets close it for now! :)
Answers checklist.
General issue report
Hello. I have recently purchased ESP32-S3-EYE and following instructions on how to run the examples: https://github.com/espressif/esp-who/#run-examples
I have downloaded esp-who project.
Step 1 says that I need to open the terminal and go to any example folder in the project:![image](https://github.com/espressif/esp-idf/assets/22237034/f4ecc3db-7b86-4b65-9b57-ff4a38610c5c)
I cannot move past this step as I am facing multiple issues.
Issue 1
idf.py command is acting weird on windows 10.
When I try to execute command
idf.py set-target esp32s3
, instead of executing the set-traget command, Python editor opens automatically. Why would that happen and how to prevent that?Issue 2
I have been playing around and the only way to work around Issue 1 (preventing python editor from opening), I have to open the project using vs-code with esp-idf extension and then click open ESP-IDF terminal:![image](https://github.com/espressif/esp-idf/assets/22237034/a30c7e45-68c9-46e3-aae1-52716f552629)
now here, I can execute
idf.py set-target esp32s3
command without the python editor opening but I get another issue that I cant seem to be able to solve.I cant really understand how am I meant to clean it. What do I need to delete and why it cannot be automatically done?
Appreciate any help!