Closed zhy102 closed 2 years ago
You forgot to add information about your operating system and which version of esp-idf you are using.
libsodium is not used directly in this project, so I think this is a problem with your esp-idf install. Are you able to flash example projects from esp-idf?
Have you searched for any solutions so far? For example, does this help (https://github.com/espressif/esp-idf/issues/7195)
You forgot to add information about your operating system and which version of esp-idf you are using.
libsodium is not used directly in this project, so I think this is a problem with your esp-idf install. Are you able to flash example projects from esp-idf?
Have you searched for any solutions so far? For example, does this help (espressif/esp-idf#7195)
The operating system is windows 10 with version of esp-idf v4.3. The first time I burned and ran all operations were fine. Now it reports the errors at the last ran "idf.py -p COM12 flash monitor" command. Should I delete the original file when I compile it again and burn it again? ccache: error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c.obj: No such file or directory [812/970] Building C object esp-idf/freemodbus/CMakeFiles/idf_freemodbus.dir/common/esp_modbus_master_tcp.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1command failed. ninja failed with exit code 1
You forgot to add information about your operating system and which version of esp-idf you are using.
libsodium is not used directly in this project, so I think this is a problem with your esp-idf install. Are you able to flash example projects from esp-idf?
Have you searched for any solutions so far? For example, does this help (espressif/esp-idf#7195) Here is the detailed error message as follows: C:\Users\Administrator.espressif\frameworks\esp-idf-v4.3.2\ESP32-CSI-Tool-master\active_ap>idf.py -p COM12 flash monitor Executing action: flash Running ninja in directory c:\users\administrator.espressif\frameworks\esp-idf-v4.3.2\esp32-csi-tool-master\active_ap\build Executing "ninja flash"... [0/1] Re-running CMake... -- ccache will be used for faster recompilation -- Building ESP-IDF components for target esp32 -- Project sdkconfig file C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/ESP32-CSI-Tool-master/active_ap/sdkconfig -- Could NOT find Perl (missing: PERL_EXECUTABLE) -- App "active-ap" version: v4.3.2 -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/ESP32-CSI-Tool-master/active_ap/build/esp-idf/esp32/esp32_out.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp32/ld/esp32.project.ld.in -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp32/ld/esp32.peripherals.ld -- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 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_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa -- Component paths: C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/app_trace C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/app_update C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/asio C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader_support C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bt C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/cbor C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/cmock C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/coap C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/console C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/cxx C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/driver C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/efuse C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp-tls C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp32 C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_adc_cal C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_common C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_eth C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_event C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_gdbstub C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_hid C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_http_client C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_http_server C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_https_ota C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_https_server C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_hw_support C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_ipc C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_local_ctrl C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_netif C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_pm C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_ringbuf C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_serial_slave_link C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_system C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_timer C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_websocket_client C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_wifi C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/espcoredump C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esptool_py C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/expat C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/fatfs C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/freemodbus C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/freertos C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/hal C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/heap C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/idf_test C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/jsmn C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/json C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/libsodium C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/log C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/lwip C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/ESP32-CSI-Tool-master/active_ap/main C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/mbedtls C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/mdns C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/mqtt C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/newlib C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/nghttp C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/nvs_flash C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/openssl C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/partition_table C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/perfmon C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/protobuf-c C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/protocomm C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/pthread C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/sdmmc C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/soc C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/spi_flash C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/spiffs C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/tcp_transport C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/tcpip_adapter C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/tinyusb C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/ulp C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/unity C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/vfs C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/wear_levelling C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/wifi_provisioning C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/wpa_supplicant C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/ESP32-CSI-Tool-master/active_ap/build [4/150] Building C object esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/l...rc/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.obj FAILED: esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.obj ccache C:\Users\Administrator.espressif\tools\xtensa-esp32-elf\esp-2021r2-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DCONFIGURED -DHAVE_WEAK_SYMBOLS -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DNATIVE_LITTLE_ENDIAN -DSTDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Iconfig -I../../../components/libsodium/libsodium/src/libsodium/include -I../../../components/libsodium/port_include -I../../../components/libsodium/libsodium/src/libsodium/include/sodium -I../../../components/libsodium/port_include/sodium -I../../../components/libsodium/port -I../../../components/newlib/platform_include -I../../../components/freertos/include -I../../../components/freertos/port/xtensa/include -I../../../components/esp_hw_support/include -I../../../components/esp_hw_support/port/esp32/. -I../../../components/heap/include -I../../../components/log/include -I../../../components/lwip/include/apps -I../../../components/lwip/include/apps/sntp -I../../../components/lwip/lwip/src/include -I../../../components/lwip/port/esp32/include -I../../../components/lwip/port/esp32/include/arch -I../../../components/soc/include -I../../../components/soc/esp32/. -I../../../components/soc/esp32/include -I../../../components/hal/esp32/include -I../../../components/hal/include -I../../../components/esp_rom/include -I../../../components/esp_rom/esp32 -I../../../components/esp_rom/include/esp32 -I../../../components/esp_common/include -I../../../components/esp_system/include -I../../../components/esp32/include -I../../../components/driver/include -I../../../components/driver/esp32/include -I../../../components/esp_ringbuf/include -I../../../components/efuse/include -I../../../components/efuse/esp32/include -I../../../components/xtensa/include -I../../../components/xtensa/esp32/include -I../../../components/espcoredump/include -I../../../components/esp_timer/include -I../../../components/esp_ipc/include -I../../../components/esp_pm/include -I../../../components/vfs/include -I../../../components/esp_wifi/include -I../../../components/esp_wifi/esp32/include -I../../../components/esp_event/include -I../../../components/esp_netif/include -I../../../components/esp_eth/include -I../../../components/tcpip_adapter/include -I../../../components/app_trace/include -I../../../components/mbedtls/port/include -I../../../components/mbedtls/mbedtls/include -I../../../components/mbedtls/esp_crt_bundle/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3.2\" -DESP_PLATFORM -Wno-unused-function -MD -MT esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.obj -MF esp-idf\libsodium\CMakeFiles__idf_libsodium.dir\libsodium\src\libsodium\crypto_aead\chacha20poly1305\sodium\aead_chacha20poly1305.c.obj.d -o esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.obj -c C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c ccache: error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.obj: No such file or directory [5/150] Building C object esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/l.../libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c.obj FAILED: esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c.obj ccache C:\Users\Administrator.espressif\tools\xtensa-esp32-elf\esp-2021r2-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DCONFIGURED -DHAVE_WEAK_SYMBOLS -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DNATIVE_LITTLE_ENDIAN -DSTDC_CONSTANT_MACROS -DSTDC_LIMIT_MACROS -Iconfig -I../../../components/libsodium/libsodium/src/libsodium/include -I../../../components/libsodium/port_include -I../../../components/libsodium/libsodium/src/libsodium/include/sodium -I../../../components/libsodium/port_include/sodium -I../../../components/libsodium/port -I../../../components/newlib/platform_include -I../../../components/freertos/include -I../../../components/freertos/port/xtensa/include -I../../../components/esp_hw_support/include -I../../../components/esp_hw_support/port/esp32/. -I../../../components/heap/include -I../../../components/log/include -I../../../components/lwip/include/apps -I../../../components/lwip/include/apps/sntp -I../../../components/lwip/lwip/src/include -I../../../components/lwip/port/esp32/include -I../../../components/lwip/port/esp32/include/arch -I../../../components/soc/include -I../../../components/soc/esp32/. -I../../../components/soc/esp32/include -I../../../components/hal/esp32/include -I../../../components/hal/include -I../../../components/esp_rom/include -I../../../components/esp_rom/esp32 -I../../../components/esp_rom/include/esp32 -I../../../components/esp_common/include -I../../../components/esp_system/include -I../../../components/esp32/include -I../../../components/driver/include -I../../../components/driver/esp32/include -I../../../components/esp_ringbuf/include -I../../../components/efuse/include -I../../../components/efuse/esp32/include -I../../../components/xtensa/include -I../../../components/xtensa/esp32/include -I../../../components/espcoredump/include -I../../../components/esp_timer/include -I../../../components/esp_ipc/include -I../../../components/esp_pm/include -I../../../components/vfs/include -I../../../components/esp_wifi/include -I../../../components/esp_wifi/esp32/include -I../../../components/esp_event/include -I../../../components/esp_netif/include -I../../../components/esp_eth/include -I../../../components/tcpip_adapter/include -I../../../components/app_trace/include -I../../../components/mbedtls/port/include -I../../../components/mbedtls/mbedtls/include -I../../../components/mbedtls/esp_crt_bundle/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3.2\" -DESP_PLATFORM -Wno-unused-function -MD -MT esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c.obj -MF esp-idf\libsodium\CMakeFiles__idf_libsodium.dir\libsodium\src\libsodium\crypto_aead\xchacha20poly1305\sodium\aead_xchacha20poly1305.c.obj.d -o esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c.obj -c C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/libsodium/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c ccache: error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c.obj: No such file or directory [9/150] Performing build step for 'bootloader' [0/1] Re-running CMake... -- Building ESP-IDF components for target esp32 -- Project sdkconfig file C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/ESP32-CSI-Tool-master/active_ap/sdkconfig -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp32/ld/esp32.peripherals.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/main/ld/esp32/bootloader.ld -- Adding linker script C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld -- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py hal log main micro-ecc newlib partition_table soc spi_flash xtensa -- Component paths: C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader_support C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/efuse C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp32 C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_common C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_hw_support C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_rom C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esp_system C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/esptool_py C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/hal C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/log C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/main C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/components/micro-ecc C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/newlib C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/partition_table C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/soc C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/spi_flash C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Administrator/.espressif/frameworks/esp-idf-v4.3.2/ESP32-CSI-Tool-master/active_ap/build/bootloader ninja: no work to do. ninja: build stopped: subcommand failed. ninja failed with exit code 1
"The first time I burned and ran all operations were fine" The project worked before? Did you make any changes at all?
"Should I delete the original file when I compile it again and burn it again?" Sure, go ahead and try this. You do not need to ask permission to try to debug this issue by yourself! :) Let me know what happens.
Yes, I deleted the original file when I compiled it again and burn it again, however, it is still. So I want to rebuild my development environment now, can I use the updated version to extract CSI,for example? For example,esp-idf-v4.4?
You forgot to add information about your operating system and which version of esp-idf you are using. libsodium is not used directly in this project, so I think this is a problem with your esp-idf install. Are you able to flash example projects from esp-idf? Have you searched for any solutions so far? For example, does this help (espressif/esp-idf#7195)
The operating system is windows 10 with version of esp-idf v4.3. The first time I burned and ran all operations were fine. Now it reports the errors at the last ran "idf.py -p COM12 flash monitor" command. Should I delete the original file when I compile it again and burn it again? ccache: error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c.obj: No such file or directory [812/970] Building C object esp-idf/freemodbus/CMakeFiles/idf_freemodbus.dir/common/esp_modbus_master_tcp.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1command failed. ninja failed with exit code 1
Are the version of esp-idf-v4.3.2 and esp-idf-release-v4.3 equally suitable to be able to use this ESP32-CSI-Tool?
Both v4.3 should work the same I believe.
Are you able to run any example from the esp-idf project? You need to get that other project working first before you can get my project working.
Yes, it is ok when i ran firstly the any example project, even the ESP32-csi-tool. However, the errors are coming when i run this same project again. So why?
---Original--- From: "Steven M. @.> Date: Sat, Mar 5, 2022 08:07 AM To: @.>; Cc: @.**@.>; Subject: Re: [StevenMHernandez/ESP32-CSI-Tool] ninja failed with exit code 1(Issue #53)
Both v4.3 should work the same I believe.
Are you able to run any example from the esp-idf project? You need to get that other project working first before you can get my project working.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>
Both v4.3 should work the same I believe.
Are you able to run any example from the esp-idf project? You need to get that other project working first before you can get my project working.
I also found that I had no problem executing the example from the esp-idf project repeatedly. But when I ran the tool, only the first time was correct, after that it all prompted errors as described above. When I reinstalled the whole environment, it still reported no error the first time I ran it, and after that, it reported an error, and the command could not generate a csv file, I was very distressed.
Please do not be distressed. Programming issues, problems with tools and things not working as you expect are all "par for the course" when it comes to "cutting edge research". Your job is to solve these problems. Embrace the unknown!
That being said, this problem is very strange. You say it works the first time you run the project. What command do you run the first time where it works for this project? Also, what is the output of the command? Do you see any CSI data? After you run that command, you say it fails. What command do you run when it fails?
Ignore the CSV file part, it earlier parts of the pipeline are not working, then the CSV file will not work either. You need to break down the problem into the earliest problem first.
Build project(s) ... (active_ap, active_sta, passive) Flash project(s) ... (active_ap, active_sta, passive) External device setup (Eps32-wroom-32u) OS is windows 10.
I recently tried running it under the “”hello_world“” file and he can flash and print normally, but when flashing under the "active_ap" file it reports the following error: C:\Espressif\frameworks\esp-idf-v4.3.2\ESP32-CSI-Tool-master\active_ap>idf.py flash
Executing action: flash
Serial port COM12
Connecting.....
Detecting chip type... ESP32
Running ninja in directory c:\espressif\frameworks\esp-idf-v4.3.2\esp32-csi-tool-master\active_ap\build
Executing "ninja flash"...
[5/114] Building C object esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodi.../crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj
FAILED: esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj
ccache C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DCONFIGURED -DHAVE_WEAK_SYMBOLS -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DNATIVE_LITTLE_ENDIAN -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Iconfig -I../../../components/libsodium/libsodium/src/libsodium/include -I../../../components/libsodium/port_include -I../../../components/libsodium/libsodium/src/libsodium/include/sodium -I../../../components/libsodium/port_include/sodium -I../../../components/libsodium/port -I../../../components/newlib/platform_include -I../../../components/freertos/include -I../../../components/freertos/port/xtensa/include -I../../../components/esp_hw_support/include -I../../../components/esp_hw_support/port/esp32/. -I../../../components/heap/include -I../../../components/log/include -I../../../components/lwip/include/apps -I../../../components/lwip/include/apps/sntp -I../../../components/lwip/lwip/src/include -I../../../components/lwip/port/esp32/include -I../../../components/lwip/port/esp32/include/arch -I../../../components/soc/include -I../../../components/soc/esp32/. -I../../../components/soc/esp32/include -I../../../components/hal/esp32/include -I../../../components/hal/include -I../../../components/esp_rom/include -I../../../components/esp_rom/esp32 -I../../../components/esp_rom/include/esp32 -I../../../components/esp_common/include -I../../../components/esp_system/include -I../../../components/esp32/include -I../../../components/driver/include -I../../../components/driver/esp32/include -I../../../components/esp_ringbuf/include -I../../../components/efuse/include -I../../../components/efuse/esp32/include -I../../../components/xtensa/include -I../../../components/xtensa/esp32/include -I../../../components/espcoredump/include -I../../../components/esp_timer/include -I../../../components/esp_ipc/include -I../../../components/esp_pm/include -I../../../components/vfs/include -I../../../components/esp_wifi/include -I../../../components/esp_wifi/esp32/include -I../../../components/esp_event/include -I../../../components/esp_netif/include -I../../../components/esp_eth/include -I../../../components/tcpip_adapter/include -I../../../components/app_trace/include -I../../../components/mbedtls/port/include -I../../../components/mbedtls/mbedtls/include -I../../../components/mbedtls/esp_crt_bundle/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3.2\" -DESP_PLATFORM -Wno-unused-function -MD -MT esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj -MF esp-idf\libsodium\CMakeFiles\__idf_libsodium.dir\libsodium\src\libsodium\crypto_box\curve25519xchacha20poly1305\box_seal_curve25519xchacha20poly1305.c.obj.d -o esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj -c C:/Espressif/frameworks/esp-idf-v4.3.2/components/libsodium/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c
ccache: error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj: No such file or directory
[7/114] Performing build step for 'bootloader'
ninja: no work to do.
[10/112] Building C object esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_kx/crypto_kx.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Thank you for trying the hello_world
example again. This confirms that ESP-IDF was installed.
Now can you try the scan
example (https://github.com/espressif/esp-idf/blob/1cb31e50943bb757966ca91ed7f4852692a5b0ed/examples/wifi/scan/main/scan.c). This will confirm if ESP-IDF WiFi components are working.
Thank you for formatting the error message. It makes it easier to read. When I search for your error, I found this link (https://esp32.com/viewtopic.php?t=14651). Specifically, they say "Windows is limited to 260 character paths". Have you tried their methods?
I appreciate even more your answer, which is crucial for me. I tried their methods about "Windows is limited to 260 character paths". And i tried the ‘’‘’scan ‘’’ example,it is ok , as follows:
C:\Espressif\frameworks\esp-idf-v4.3.2\examples\wifi\scan>idf.py menuconfig
Executing action: menuconfig
Running ninja in directory c:\espressif\frameworks\esp-idf-v4.3.2\examples\wifi\scan\build
Executing "ninja menuconfig"...
[0/1] cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v4...if/frameworks/esp-idf-v4.3.2/examples/wifi/scan/sdkconfig"
C:/Espressif/frameworks/esp-idf-v4.3.2/Kconfig:14: warning: IDF_ENV_FPGA has 'option env="IDF_ENV_FPGA"', but the environment variable IDF_ENV_FPGA is not set
Loaded configuration 'C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/sdkconfig'
No changes to save (for 'C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/sdkconfig')
C:\Espressif\frameworks\esp-idf-v4.3.2\examples\wifi\scan>idf.py flash
Executing action: flash
Serial port COM13
Connecting....
Detecting chip type... ESP32
Running ninja in directory c:\espressif\frameworks\esp-idf-v4.3.2\examples\wifi\scan\build
Executing "ninja flash"...
[0/1] Re-running CMake...
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/sdkconfig
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "scan" version: v4.3.2
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 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_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Espressif/frameworks/esp-idf-v4.3.2/components/app_trace C:/Espressif/frameworks/esp-idf-v4.3.2/components/app_update C:/Espressif/frameworks/esp-idf-v4.3.2/components/asio C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v4.3.2/components/bt C:/Espressif/frameworks/esp-idf-v4.3.2/components/cbor C:/Espressif/frameworks/esp-idf-v4.3.2/components/cmock C:/Espressif/frameworks/esp-idf-v4.3.2/components/coap C:/Espressif/frameworks/esp-idf-v4.3.2/components/console C:/Espressif/frameworks/esp-idf-v4.3.2/components/cxx C:/Espressif/frameworks/esp-idf-v4.3.2/components/driver C:/Espressif/frameworks/esp-idf-v4.3.2/components/efuse C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp-tls C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp32 C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_adc_cal C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_common C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_eth C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_event C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_gdbstub C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_hid C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_http_client C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_http_server C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_https_ota C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_https_server C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_ipc C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_local_ctrl C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_netif C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_pm C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_ringbuf C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_serial_slave_link C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_system C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_timer C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_websocket_client C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_wifi C:/Espressif/frameworks/esp-idf-v4.3.2/components/espcoredump C:/Espressif/frameworks/esp-idf-v4.3.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v4.3.2/components/expat C:/Espressif/frameworks/esp-idf-v4.3.2/components/fatfs C:/Espressif/frameworks/esp-idf-v4.3.2/components/freemodbus C:/Espressif/frameworks/esp-idf-v4.3.2/components/freertos C:/Espressif/frameworks/esp-idf-v4.3.2/components/hal C:/Espressif/frameworks/esp-idf-v4.3.2/components/heap C:/Espressif/frameworks/esp-idf-v4.3.2/components/idf_test C:/Espressif/frameworks/esp-idf-v4.3.2/components/jsmn C:/Espressif/frameworks/esp-idf-v4.3.2/components/json C:/Espressif/frameworks/esp-idf-v4.3.2/components/libsodium C:/Espressif/frameworks/esp-idf-v4.3.2/components/log C:/Espressif/frameworks/esp-idf-v4.3.2/components/lwip C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/main C:/Espressif/frameworks/esp-idf-v4.3.2/components/mbedtls C:/Espressif/frameworks/esp-idf-v4.3.2/components/mdns C:/Espressif/frameworks/esp-idf-v4.3.2/components/mqtt C:/Espressif/frameworks/esp-idf-v4.3.2/components/newlib C:/Espressif/frameworks/esp-idf-v4.3.2/components/nghttp C:/Espressif/frameworks/esp-idf-v4.3.2/components/nvs_flash C:/Espressif/frameworks/esp-idf-v4.3.2/components/openssl C:/Espressif/frameworks/esp-idf-v4.3.2/components/partition_table C:/Espressif/frameworks/esp-idf-v4.3.2/components/perfmon C:/Espressif/frameworks/esp-idf-v4.3.2/components/protobuf-c C:/Espressif/frameworks/esp-idf-v4.3.2/components/protocomm C:/Espressif/frameworks/esp-idf-v4.3.2/components/pthread C:/Espressif/frameworks/esp-idf-v4.3.2/components/sdmmc C:/Espressif/frameworks/esp-idf-v4.3.2/components/soc C:/Espressif/frameworks/esp-idf-v4.3.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v4.3.2/components/spiffs C:/Espressif/frameworks/esp-idf-v4.3.2/components/tcp_transport C:/Espressif/frameworks/esp-idf-v4.3.2/components/tcpip_adapter C:/Espressif/frameworks/esp-idf-v4.3.2/components/tinyusb C:/Espressif/frameworks/esp-idf-v4.3.2/components/ulp C:/Espressif/frameworks/esp-idf-v4.3.2/components/unity C:/Espressif/frameworks/esp-idf-v4.3.2/components/vfs C:/Espressif/frameworks/esp-idf-v4.3.2/components/wear_levelling C:/Espressif/frameworks/esp-idf-v4.3.2/components/wifi_provisioning C:/Espressif/frameworks/esp-idf-v4.3.2/components/wpa_supplicant C:/Espressif/frameworks/esp-idf-v4.3.2/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/build
[3/970] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[579/970] Performing configure step for 'bootloader'
-- Found Git: C:/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- 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:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/sdkconfig
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v4.3.2/components/efuse C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp32 C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_common C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v4.3.2/components/esp_system C:/Espressif/frameworks/esp-idf-v4.3.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v4.3.2/components/hal C:/Espressif/frameworks/esp-idf-v4.3.2/components/log C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/main C:/Espressif/frameworks/esp-idf-v4.3.2/components/bootloader/subproject/components/micro-ecc C:/Espressif/frameworks/esp-idf-v4.3.2/components/newlib C:/Espressif/frameworks/esp-idf-v4.3.2/components/partition_table C:/Espressif/frameworks/esp-idf-v4.3.2/components/soc C:/Espressif/frameworks/esp-idf-v4.3.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v4.3.2/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/build/bootloader
[627/970] Performing build step for 'bootloader'
[1/87] Generating project_elf_src_esp32.c
[2/87] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[3/87] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[4/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[5/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[6/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/memory_layout_utils.c.obj
[7/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj
[8/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj
[9/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[10/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj
[11/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj
[12/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj
[13/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[14/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj
[15/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[16/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj
[17/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj
[18/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj
[19/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj
[20/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj
[21/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[22/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj
[23/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj
[24/87] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/soc_memory_layout.c.obj
[25/87] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[26/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[27/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[28/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj
[29/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[30/87] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj
[31/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[32/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[33/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[34/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[35/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[36/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[37/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[38/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[39/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj
[40/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj
[41/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[42/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[43/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[44/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[45/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[46/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[47/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[48/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/flash_encrypt.c.obj
[49/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[50/87] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_soc.c.obj
[51/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[52/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_api.c.obj
[53/87] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj
[54/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_fields.c.obj
[55/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[56/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[57/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[58/87] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_utility.c.obj
[59/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[60/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[61/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj
[62/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj
[63/87] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[64/87] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[65/87] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[66/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj
[67/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj
[68/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj
[69/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj
[70/87] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj
[71/87] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[72/87] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[73/87] Linking C static library esp-idf\log\liblog.a
[74/87] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[75/87] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[76/87] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[77/87] Linking C static library esp-idf\esp_rom\libesp_rom.a
[78/87] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[79/87] Linking C static library esp-idf\efuse\libefuse.a
[80/87] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[81/87] Linking C static library esp-idf\spi_flash\libspi_flash.a
[82/87] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[83/87] Linking C static library esp-idf\soc\libsoc.a
[84/87] Linking C static library esp-idf\hal\libhal.a
[85/87] Linking C static library esp-idf\main\libmain.a
[86/87] Linking C executable bootloader.elf
[87/87] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/build/bootloader/bootloader.bin
[969/970] Generating binary image from built executable
esptool.py v3.2-dev
Merged 2 ELF sections
Generated C:/Espressif/frameworks/esp-idf-v4.3.2/examples/wifi/scan/build/scan.bin
[969/970] cmd.exe /C "cd /D C:\Espressif\frameworks\esp-id...sp-idf-v4.3.2/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32 -p COM13 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 scan.bin
esptool.py v3.2-dev
Serial port COM13
Connecting....
Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:d9:ca:40
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x000a8fff...
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 488.9 kbit/s)...
Hash of data verified.
Compressed 26144 bytes to 16017...
Writing at 0x00001000... (100 %)
Wrote 26144 bytes (16017 compressed) at 0x00001000 in 0.7 seconds (effective 303.1 kbit/s)...
Hash of data verified.
Compressed 622704 bytes to 395751...
Writing at 0x00010000... (4 %)
Writing at 0x0001cd4c... (8 %)
Writing at 0x000275de... (12 %)
Writing at 0x0002d394... (16 %)
Writing at 0x00033064... (20 %)
Writing at 0x000388c1... (24 %)
Writing at 0x0003e157... (28 %)
Writing at 0x00043658... (32 %)
Writing at 0x00048dae... (36 %)
Writing at 0x0004e68f... (40 %)
Writing at 0x00053f16... (44 %)
Writing at 0x00059641... (48 %)
Writing at 0x0005e8b3... (52 %)
Writing at 0x00063bf5... (56 %)
Writing at 0x0006908e... (60 %)
Writing at 0x0006e6cd... (64 %)
Writing at 0x00073ef1... (68 %)
Writing at 0x00079b7d... (72 %)
Writing at 0x0007f394... (76 %)
Writing at 0x00084f03... (80 %)
Writing at 0x0008b80b... (84 %)
Writing at 0x0009548c... (88 %)
Writing at 0x0009c1d4... (92 %)
Writing at 0x000a1c24... (96 %)
Writing at 0x000a6fa9... (100 %)
Wrote 622704 bytes (395751 compressed) at 0x00010000 in 9.1 seconds (effective 547.9 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Done
However, '''ninja: build stopped: subcommand failed. ninja failed with exit code 1''' in the issue above is still.
Both scan
and active_ap
seem to use libsodium, so it does not make sense that it works with scan
and not with active_ap
.
Can you try to run idf.py fullclean
in your active_ap
and then run idf.py build
again?
Closing old issues.
To Reproduce Steps to reproduce the behavior:
...
(active_ap, active_sta, passive)...
(active_ap, active_sta, passive)help me,please.