Page 1 of 1

Error compiling esp-AT project using commands from python

Posted: Thu May 25, 2023 3:53 pm
by Demetrio Magrin
Hello,

I tried to compile the esp-at project downloaded from GitHub through commands via python.
Before doing this I performed all the updates that were asked of me by PowerSheel and that is:
- pip install colorama
- pip install xlrd
- python -m pip install --upgrade pip
- pip3 install kconfiglib

After trying to run commands from powershell from esp-at folder: python build.py install or python build.py build I finally get below:

PS D:\Work\esp-at> python build.py build
Platform name:
1. PLATFORM_ESP32
2. PLATFORM_ESP32C3
3. PLATFORM_ESP32C2
choose(range[1,3]):2
Module name:
1. MINI-1 (description: TX:7 RX:6)
2. ESP32C3-SPI
3. ESP32C3_RAINMAKER (description: TX:7 RX:6)
choose(range[1,3]):1
Enable silence mode to remove some logs and reduce the firmware size?
0. No
1. Yes
choose(range[0,1]):1
Platform name:ESP32C3 Module name:MINI-1 Silence:1
Cloning into submodule:"esp-idf" from "https://github.com/espressif/esp-idf.git" (This may take some time)..
Cloning into 'esp-idf'...
remote: Enumerating objects: 460125, done.
remote: Counting objects: 100% (59599/59599), done.
remote: Compressing objects: 100% (1579/1579), done.
remote: Total 460125 (delta 58536), reused 58077 (delta 58015), pack-reused 400526
Receiving objects: 100% (460125/460125), 211.14 MiB | 10.47 MiB/s, done.
Resolving deltas: 100% (345540/345540), done.
Updating files: 100% (9989/9989), done.
Synchronizing submodule:"esp-idf" from "https://github.com/espressif/esp-idf.git" (This may take time)..
old commit: de419dbe0b5694db95446ce6ed4fe65bc215b1e7
checkout commit: 885e501d993f9d543f86ad1ea9fc3b7cbd627051
From https://github.com/espressif/esp-idf
* branch release/v5.0 -> FETCH_HEAD
Already up to date.
Submodule 'components/bootloader/subproject/components/micro-ecc/micro-ecc' (https://github.com/kmackay/micro-ecc.git) registered for path 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
Submodule 'components/bt/controller/lib_esp32' (https://github.com/espressif/esp32-bt-lib.git) registered for path 'components/bt/controller/lib_esp32'
Submodule 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib' (https://github.com/espressif/esp32c2-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib'
Submodule 'components/bt/controller/lib_esp32c3_family' (https://github.com/espressif/esp32c3-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c3_family'
Submodule 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib' (https://github.com/espressif/esp32h2-bt-lib.git) registered for path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib'
Submodule 'components/bt/host/nimble/nimble' (https://github.com/espressif/esp-nimble.git) registered for path 'components/bt/host/nimble/nimble'
Submodule 'components/cmock/CMock' (https://github.com/ThrowTheSwitch/CMock.git) registered for path 'components/cmock/CMock'
Submodule 'components/esp_phy/lib' (https://github.com/espressif/esp-phy-lib.git) registered for path 'components/esp_phy/lib'
Submodule 'components/esp_wifi/lib' (https://github.com/espressif/esp32-wifi-lib.git) registered for path 'components/esp_wifi/lib'
Submodule 'components/heap/tlsf' (https://github.com/espressif/tlsf.git) registered for path 'components/heap/tlsf'
Submodule 'components/ieee802154/lib' (https://github.com/espressif/esp-ieee802154-lib.git) registered for path 'components/ieee802154/lib'
Submodule 'components/json/cJSON' (https://github.com/DaveGamble/cJSON.git) registered for path 'components/json/cJSON'
Submodule 'components/lwip/lwip' (https://github.com/espressif/esp-lwip.git) registered for path 'components/lwip/lwip'
Submodule 'components/mbedtls/mbedtls' (https://github.com/espressif/mbedtls.git) registered for path 'components/mbedtls/mbedtls'
Submodule 'components/mqtt/esp-mqtt' (https://github.com/espressif/esp-mqtt.git) registered for path 'components/mqtt/esp-mqtt'
Submodule 'components/openthread/lib' (https://github.com/espressif/esp-thread-lib.git) registered for path 'components/openthread/lib'
Submodule 'components/openthread/openthread' (https://github.com/espressif/openthread.git) registered for path 'components/openthread/openthread'
Submodule 'components/protobuf-c/protobuf-c' (https://github.com/protobuf-c/protobuf-c.git) registered for path 'components/protobuf-c/protobuf-c'
Submodule 'components/spiffs/spiffs' (https://github.com/pellepl/spiffs.git) registered for path 'components/spiffs/spiffs'
Submodule 'components/unity/unity' (https://github.com/ThrowTheSwitch/Unity.git) registered for path 'components/unity/unity'
Cloning into 'D:/Work/esp-at/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
Cloning into 'D:/Work/esp-at/esp-idf/components/bt/controller/lib_esp32'...
Cloning into 'D:/Work/esp-at/esp-idf/components/bt/controller/lib_esp32c2/esp32c2-bt-lib'...
Cloning into 'D:/Work/esp-at/esp-idf/components/bt/controller/lib_esp32c3_family'...
Cloning into 'D:/Work/esp-at/esp-idf/components/bt/controller/lib_esp32h2/esp32h2-bt-lib'...
Cloning into 'D:/Work/esp-at/esp-idf/components/bt/host/nimble/nimble'...
Cloning into 'D:/Work/esp-at/esp-idf/components/cmock/CMock'...
Cloning into 'D:/Work/esp-at/esp-idf/components/esp_phy/lib'...
Cloning into 'D:/Work/esp-at/esp-idf/components/esp_wifi/lib'...
Cloning into 'D:/Work/esp-at/esp-idf/components/heap/tlsf'...
Cloning into 'D:/Work/esp-at/esp-idf/components/ieee802154/lib'...
Cloning into 'D:/Work/esp-at/esp-idf/components/json/cJSON'...
Cloning into 'D:/Work/esp-at/esp-idf/components/lwip/lwip'...
Cloning into 'D:/Work/esp-at/esp-idf/components/mbedtls/mbedtls'...
Cloning into 'D:/Work/esp-at/esp-idf/components/mqtt/esp-mqtt'...
Cloning into 'D:/Work/esp-at/esp-idf/components/openthread/lib'...
Cloning into 'D:/Work/esp-at/esp-idf/components/openthread/openthread'...
Cloning into 'D:/Work/esp-at/esp-idf/components/protobuf-c/protobuf-c'...
Cloning into 'D:/Work/esp-at/esp-idf/components/spiffs/spiffs'...
Cloning into 'D:/Work/esp-at/esp-idf/components/unity/unity'...
Submodule path 'components/bootloader/subproject/components/micro-ecc/micro-ecc': checked out 'd037ec89546fad14b5c4d5456c2e23a71e554966'
Submodule path 'components/bt/controller/lib_esp32': checked out 'd4a224c5d682d6b5a76542c6918b6a59dd0b2f8c'
Submodule path 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib': checked out '2d0c9d0d5df1fa825ed3c48df968e3c9b8c434ee'
Submodule path 'components/bt/controller/lib_esp32c3_family': checked out 'bba9af9259e0999ef246426d31a793fe0a3ff4db'
Submodule path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib': checked out 'f502278684195b9c20626ec8bb25430030d2ff23'
Submodule path 'components/bt/host/nimble/nimble': checked out '9a355b2b597a66868aed37e1ebccb0c274aaa252'
Submodule path 'components/cmock/CMock': checked out 'eeecc49ce8af123cf8ad40efdb9673e37b56230f'
Submodule 'vendor/c_exception' (https://github.com/throwtheswitch/cexception.git) registered for path 'components/cmock/CMock/vendor/c_exception'
Submodule 'vendor/unity' (https://github.com/throwtheswitch/unity.git) registered for path 'components/cmock/CMock/vendor/unity'
Cloning into 'D:/Work/esp-at/esp-idf/components/cmock/CMock/vendor/c_exception'...
Cloning into 'D:/Work/esp-at/esp-idf/components/cmock/CMock/vendor/unity'...
Submodule path 'components/cmock/CMock/vendor/c_exception': checked out '71b47be7c950f1bf5f7e5303779fa99a16224bb6'
Submodule path 'components/cmock/CMock/vendor/unity': checked out 'cf949f45ca6d172a177b00da21310607b97bc7a7'
Submodule path 'components/esp_phy/lib': checked out '3daf842446056002dcdb12866001c3d567f1abd9'
Submodule path 'components/esp_wifi/lib': checked out '41d098bdad1d854e2cb90062d50a1aacb8fb8061'
Submodule path 'components/heap/tlsf': checked out '8c9cd0517adf99e363812e9a295dfe3898fdd345'
Submodule path 'components/ieee802154/lib': checked out '2b52a261fef2ad7b630e11866dca567d17170401'
Submodule path 'components/json/cJSON': checked out 'd348621ca93571343a56862df7de4ff3bc9b5667'
Submodule path 'components/lwip/lwip': checked out '705dd71d46779bf29653f1f1d7b1af5a09fb2aa7'
Submodule path 'components/mbedtls/mbedtls': checked out '7b428b1bf260ce1fec4e3ffb6494070d439a3a67'
Submodule path 'components/mqtt/esp-mqtt': checked out 'ae53d799da294f03ef65c33e88fa33648e638134'
Submodule path 'components/openthread/lib': checked out '698e8386c31f2c34e167b65f72a6b2553e838dd9'
Submodule path 'components/openthread/openthread': checked out 'e64ba13faa865aa7febd5cb7dc7eb52ff19a2c5c'
Submodule path 'components/protobuf-c/protobuf-c': checked out 'f224ab2eeb648a818eb20687d7150a285442c907'
Submodule path 'components/spiffs/spiffs': checked out '0dbb3f71c5f6fae3747a9d935372773762baf852'
Submodule path 'components/unity/unity': checked out '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25'
submodules check completed for updates.
patches check completed for updates.
Ready to set up environment variables..
PATH is C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Kerio\Outlook Connector (Offline Edition)\;C:\Program Files (x86)\VMware\VMware Player\bin\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Xilinx\10.1\ISE\bin\nt64;C:\Xilinx\10.1\ISE\lib\nt64;C:\Xilinx\10.1\ISE\smartmodel\nt\installed_nt\lib\pcnt.lib;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\dotnet\;C:\Program Files (x86)\HP\Common\HPDestPlgIn\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Users\demetrio.magrin\AppData\Local\Microsoft\WindowsApps;c:\Users\demetrio.magrin\AppData\Local\Programs\Python\Python310\Scripts\;c:\Users\demetrio.magrin\AppData\Local\Programs\Python\Python310\;C:\Users\demetrio.magrin\.dotnet\tools;C:\Program Files (x86)\HP\Common\HPDestPlgIn\
IDF_PYTHON_ENV_PATH is None
sys.platform is win32
export str is OPENOCD_SCRIPTS=C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\share\openocd\scripts
IDF_CCACHE_ENABLE=1
ESP_ROM_ELF_DIR=C:\Espressif\tools\esp-rom-elfs\20220823\
IDF_PYTHON_ENV_PATH=C:\Espressif\python_env\idf5.0_py3.10_env
ESP_IDF_VERSION=5.0
PATH=C:\Espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\bin;C:\Espressif\tools\ninja\1.10.2\;C:\Espressif\tools\idf-exe\1.0.3\;C:\Espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64;C:\Espressif\python_env\idf5.0_py3.10_env\Scripts;D:\Work\esp-at\esp-idf\tools;%PATH%
IDF_DEACTIVATE_FILE_PATH=C:\Users\DEMETR~1.MAG\AppData\Local\Temp\tmpwo3d1_zmidf_7960
PATH is C:\Espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\bin;C:\Espressif\tools\ninja\1.10.2\;C:\Espressif\tools\idf-exe\1.0.3\;C:\Espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-
x86_64;C:\Espressif\python_env\idf5.0_py3.10_env\Scripts;D:\Work\esp-at\esp-idf\tools;%PATH%;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Kerio\Outlook Connector (Offline Edition)\;C:\Program Files (x86)\VMware\VMware Player\bin\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Xilinx\10.1\ISE\bin\nt64;C:\Xilinx\10.1\ISE\lib\nt64;C:\Xilinx\10.1\ISE\smartmodel\nt\installed_nt\lib\pcnt.lib;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\dotnet\;C:\Program Files (x86)\HP\Common\HPDestPlgIn\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Users\demetrio.magrin\AppData\Local\Microsoft\WindowsApps;c:\Users\demetrio.magrin\AppData\Local\Programs\Python\Python310\Scripts\;c:\Users\demetrio.magrin\AppData\Local\Programs\Python\Python310\;C:\Users\demetrio.magrin\.dotnet\tools;C:\Program Files (x86)\HP\Common\HPDestPlgIn\
IDF_PYTHON_ENV_PATH is C:\Espressif\python_env\idf5.0_py3.10_env
Executing action: all (aliases: build)
Running cmake in directory d:\work\esp-at\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 d:\work\esp-at"...
silence:1 sdkconfig:D:/Work/esp-at/module_config/module_esp32c3_default/sdkconfig_silence.defaults
esp-at branch: master
esp-at docs version: latest
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.35.1.windows.2")
-- Component directory D:/Work/esp-at/components/fs_image does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c3
Solving dependencies requirements
Updating lock file at D:/Work/esp-at\dependencies.lock
Processing 3 dependencies:
[1/3] espressif/esp_websocket_client (0.0.4)
[2/3] espressif/mdns (1.0.5)
[3/3] idf (5.0.0)
-- Project sdkconfig file D:/Work/esp-at/sdkconfig
Loading defaults file D:/Work/esp-at/module_config/module_esp32c3_default/sdkconfig_silence.defaults...
-- 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/demetrio.magrin/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0/python.exe (found version "3.10.11") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "esp-at" version: v3.0.0.0-154-g9c671f57
-- Adding linker script D:/Work/esp-at/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_system/ld/esp32c3/sections.ld.in
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
silence:1, ld core:D:/Work/esp-at/components/at/lib/libesp32c3_at_core_silence.a
Parsing CSV input...
Verifying table...
-- Components: app_trace app_update at bootloader bootloader_support bt cmock console customized_partitions 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 espressif__esp_websocket_client espressif__mdns esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: D:/Work/esp-at/esp-idf/components/app_trace D:/Work/esp-at/esp-idf/components/app_update D:/Work/esp-at/components/at D:/Work/esp-at/esp-idf/components/bootloader D:/Work/esp-at/esp-idf/components/bootloader_support D:/Work/esp-at/esp-idf/components/bt D:/Work/esp-at/esp-idf/components/cmock D:/Work/esp-at/esp-idf/components/console D:/Work/esp-at/components/customized_partitions D:/Work/esp-at/esp-idf/components/cxx D:/Work/esp-at/esp-idf/components/driver D:/Work/esp-at/esp-idf/components/efuse D:/Work/esp-at/esp-idf/components/esp-tls D:/Work/esp-at/esp-idf/components/esp_adc D:/Work/esp-at/esp-idf/components/esp_app_format D:/Work/esp-at/esp-idf/components/esp_common D:/Work/esp-at/esp-idf/components/esp_eth D:/Work/esp-at/esp-idf/components/esp_event D:/Work/esp-at/esp-idf/components/esp_gdbstub D:/Work/esp-at/esp-idf/components/esp_hid D:/Work/esp-at/esp-idf/components/esp_http_client D:/Work/esp-at/esp-idf/components/esp_http_server D:/Work/esp-at/esp-idf/components/esp_https_ota D:/Work/esp-at/esp-idf/components/esp_https_server D:/Work/esp-at/esp-idf/components/esp_hw_support D:/Work/esp-at/esp-idf/components/esp_lcd D:/Work/esp-at/esp-idf/components/esp_local_ctrl D:/Work/esp-at/esp-idf/components/esp_netif D:/Work/esp-at/esp-idf/components/esp_partition D:/Work/esp-at/esp-idf/components/esp_phy D:/Work/esp-at/esp-idf/components/esp_pm D:/Work/esp-at/esp-idf/components/esp_psram D:/Work/esp-at/esp-idf/components/esp_ringbuf D:/Work/esp-at/esp-idf/components/esp_rom D:/Work/esp-at/esp-idf/components/esp_system D:/Work/esp-at/esp-idf/components/esp_timer D:/Work/esp-at/esp-idf/components/esp_wifi D:/Work/esp-at/esp-idf/components/espcoredump D:/Work/esp-at/managed_components/espressif__esp_websocket_client D:/Work/esp-at/managed_components/espressif__mdns D:/Work/esp-at/esp-idf/components/esptool_py D:/Work/esp-at/esp-idf/components/fatfs D:/Work/esp-at/esp-idf/components/freertos D:/Work/esp-at/esp-idf/components/hal D:/Work/esp-at/esp-idf/components/heap D:/Work/esp-at/esp-
idf/components/http_parser D:/Work/esp-at/esp-idf/components/idf_test D:/Work/esp-at/esp-idf/components/ieee802154 D:/Work/esp-at/esp-idf/components/json D:/Work/esp-at/esp-idf/components/log D:/Work/esp-at/esp-idf/components/lwip D:/Work/esp-at/main D:/Work/esp-at/esp-idf/components/mbedtls D:/Work/esp-at/esp-idf/components/mqtt D:/Work/esp-at/esp-idf/components/newlib D:/Work/esp-at/esp-idf/components/nvs_flash D:/Work/esp-at/esp-idf/components/openthread D:/Work/esp-at/esp-idf/components/partition_table D:/Work/esp-at/esp-idf/components/protobuf-c D:/Work/esp-at/esp-idf/components/protocomm D:/Work/esp-at/esp-idf/components/pthread D:/Work/esp-at/esp-idf/components/riscv D:/Work/esp-at/esp-idf/components/sdmmc D:/Work/esp-at/esp-idf/components/soc D:/Work/esp-at/esp-idf/components/spi_flash D:/Work/esp-at/esp-idf/components/spiffs D:/Work/esp-at/esp-idf/components/tcp_transport D:/Work/esp-at/esp-idf/components/ulp D:/Work/esp-at/esp-idf/components/unity D:/Work/esp-at/esp-idf/components/usb D:/Work/esp-at/esp-idf/components/vfs D:/Work/esp-at/esp-idf/components/wear_levelling D:/Work/esp-at/esp-idf/components/wifi_provisioning D:/Work/esp-at/esp-idf/components/wpa_supplicant
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Work/esp-at/build
Running ninja in directory d:\work\esp-at\build
Executing "ninja all"...
[4/1136] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
nvs,data,nvs,0x10000,56K,
at_customize,64,0,0x1e000,264K,
ota_0,app,ota_0,0x60000,1856K,
ota_1,app,ota_1,0x230000,1856K,
*******************************************************************************
[8/1136] Running utility command for customized_bin
Creating NVS binary with version: V2 - Multipage Blob Support Enabled
Created NVS binary: ===> D:/Work/esp-at/build/customized_partitions\mfg_nvs.bin
[130/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/crypto/sha256-tlsprf.c.obj←[[135/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/crypto/sha384-
tlsprf.c.obj←[[136/1136] Building C object esp-idf/wpa_supplicant/CMakeF..._idf_wpa_supplicant.dir/src/common/ieee802_11_common.c.obj←[137/1136] Building C object esp-idf/wpa_supplicant/CMakeF...idf_wpa_supplicant.dir/src/eap_common/eap_wsc_common.c.obj←[139/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/crypto/md4-internal.c.obj←[K[140/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/eap_peer/eap_mschapv2.c.obj←[144/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/eap_peer/eap_common.c.obj←[K[145/1136] Building C object esp-idf/wpa_supplicant/CMakeF..._idf_wpa_supplicant.dir/src/eap_peer/eap_peap_common.c.obj←[146/1136] Building C object esp-idf/wpa_supplicant/CMakeF..._idf_wpa_supplicant.dir/src/eap_peer/eap_fast_common.c.obj←[147/1136] Building C object esp-idf/wpa_supplicant/CMakeF...__idf_wpa_supplicant.dir/src/eap_peer/eap_tls_common.c.obj←[151/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/eap_peer/eap_fast_pac.c.obj←[154/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/rsn_supp/pmksa_cache.c.obj←[[165/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/wps/wps_attr_process.c.obj←[[170/1136] Building C object esp-idf/wpa_supplicant/CMakeF...f_wpa_supplicant.dir/esp_supplicant/src/esp_wpa_main.c.obj←[171/1136] Building C object esp-idf/wpa_supplicant/CMakeF...idf_wpa_supplicant.dir/esp_supplicant/src/esp_common.c.obj←[172/1136] Building C object esp-idf/wpa_supplicant/CMakeF.../__idf_wpa_supplicant.dir/esp_supplicant/src/esp_owe.c.obj←[173/1136] Building C object esp-idf/wpa_supplicant/CMakeF..._wpa_supplicant.dir/esp_supplicant/src/esp_wpas_glue.c.obj←[174/1136] Building C object esp-idf/wpa_supplicant/CMakeF.../__idf_wpa_supplicant.dir/esp_supplicant/src/esp_wps.c.obj←[175/1136] Building C object esp-idf/wpa_supplicant/CMakeF...__idf_wpa_supplicant.dir/esp_supplicant/src/esp_wpa2.c.obj←[176/1136] Building C object esp-idf/wpa_supplicant/CMakeF...idf_wpa_supplicant.dir/esp_supplicant/src/esp_hostap.c.obj←[177/1136] Building C object esp-idf/wpa_supplicant/CMakeF...__idf_wpa_supplicant.dir/esp_supplicant/src/esp_wpa3.c.obj←[181/1136] Building C object esp-idf/wpa_supplicant/CMakeF...supplicant.dir/esp_supplicant/src/crypto/tls_mbedtls.c.obj←[182/1136] Building C object esp-idf/wpa_supplicant/CMakeF....dir/esp_supplicant/src/crypto/crypto_mbedtls-bignum.c.obj←[185/1136] Building C object esp-idf/wpa_supplicant/CMakeF...plicant.dir/esp_supplicant/src/crypto/crypto_mbedtls.c.obj←[186/1136] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/crypto/des-internal.c.obj←[K[187/1136] Building C object esp-idf/wpa_supplicant/CMakeF...ant.dir/esp_supplicant/src/crypto/crypto_mbedtls-rsa.c.obj←[189/1136] Building C object esp-idf/wpa_supplicant/CMakeF...cant.dir/esp_supplicant/src/crypto/crypto_mbedtls-ec.c.obj←[210/1136] Building C object esp-idf/esp_adc/CMakeFiles/__idf_esp_adc.dir/deprecated/esp32c3/esp_adc_cal_legacy.c.obj←[K[233/1136]
Performing configure step for 'bootloader'-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.35.1.windows.2")
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file D:/Work/esp-at/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
-- Adding linker script D:/Work/esp-at/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
-- App "bootloader" version: v5.0-541-g885e501d99-dirty
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/bootloader/subproject/main/ld/esp32c3/bootloader.ld
-- Adding linker script D:/Work/esp-at/esp-idf/components/bootloader/subproject/main/ld/esp32c3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table riscv soc spi_flash
-- Component paths: D:/Work/esp-at/esp-idf/components/bootloader D:/Work/esp-at/esp-idf/components/bootloader_support D:/Work/esp-at/esp-idf/components/efuse D:/Work/esp-at/esp-idf/components/esp_app_format D:/Work/esp-at/esp-idf/components/esp_common D:/Work/esp-at/esp-idf/components/esp_hw_support D:/Work/esp-at/esp-idf/components/esp_rom D:/Work/esp-at/esp-idf/components/esp_system D:/Work/esp-at/esp-idf/components/esptool_py D:/Work/esp-at/esp-idf/components/freertos D:/Work/esp-at/esp-idf/components/hal D:/Work/esp-at/esp-idf/components/log D:/Work/esp-at/esp-idf/components/bootloader/subproject/main D:/Work/esp-at/esp-idf/components/bootloader/subproject/components/micro-ecc D:/Work/esp-at/esp-idf/components/newlib D:/Work/esp-at/esp-idf/components/partition_table D:/Work/esp-at/esp-idf/components/riscv D:/Work/esp-at/esp-idf/components/soc D:/Work/esp-at/esp-idf/components/spi_flash
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Work/esp-at/build/bootloader
[292/1136] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_slot_management.c.obj←[303/1136] Performing build step for 'bootloader'←[31mFAILED: ←[0mbootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map D:/Work/esp-at/build/bootloader-prefix/src/bootloader-stamp/bootloader-build D:/Work/esp-at/build/bootloader/bootloader.elf D:/Work/esp-at/build/bootloader/bootloader.bin D:/Work/esp-at/build/bootloader/bootloader.map
cmd.exe /C "cd /D D:\Work\esp-at\build\bootloader && C:\Espressif\tools\cmake\3.24.0\bin\cmake.exe --build ."
[25/94] Building C object esp-idf/bootloader_support/CMake...idf_bootloader_support.dir/src/bootloader_clock_init.c.obj←[27/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj←[28/94] Building C object esp-idf/bootloader_support/CMake...bootloader_support.dir/src/bootloader_console_loader.c.obj←[30/94] Building C object esp-idf/bootloader_support/CMake...bootloader_flash/src/bootloader_flash_config_esp32c3.c.obj←[31/94] Building C object esp-idf/bootloader_support/CMake...s/__idf_bootloader_support.dir/src/bootloader_random.c.obj←[33/94] Building C object esp-idf/bootloader_support/CMake...bootloader_support.dir/src/bootloader_random_esp32c3.c.obj←[34/94]
Building C object esp-idf/bootloader_support/CMake...f_bootloader_support.dir/src/bootloader_clock_loader.c.obj←[35/94] Building C object esp-idf/bootloader_support/CMake...ader_support.dir/bootloader_flash/src/flash_qio_mode.c.obj←[36/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj←[K[37/94] Building C object esp-idf/bootloader_support/CMake..._bootloader_support.dir/src/bootloader_common_loader.c.obj←[38/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj←[39/94] Building C object esp-idf/bootloader_support/CMake.../__idf_bootloader_support.dir/src/bootloader_console.c.obj←[40/94] Building C object esp-idf/bootloader_support/CMake...s/__idf_bootloader_support.dir/src/bootloader_common.c.obj←[41/94] Building C object esp-idf/bootloader_support/CMake...df_bootloader_support.dir/src/esp32c3/bootloader_soc.c.obj←[42/94] Building C object esp-idf/bootloader_support/CMake...er_support.dir/bootloader_flash/src/bootloader_flash.c.obj←[43/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj←[45/94] Building C object esp-idf/bootloader_support/CMake...df_bootloader_support.dir/src/esp32c3/bootloader_sha.c.obj←[47/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj←[48/94] Building C object esp-idf/efuse/CMakeFiles/__idf_e..._controller/keys/with_key_purposes/esp_efuse_api_key.c.obj←[51/94] Building C object esp-idf/bootloader_support/CMake.../__idf_bootloader_support.dir/src/bootloader_utility.c.obj←[55/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj←[[62/94] Building C object esp-idf/bootloader_support/CMake...ootloader_support.dir/src/esp32c3/bootloader_esp32c3.c.obj←[93/94] Generating binary image from built executable←[31mFAILED: ←[0m.bin_timestamp D:/Work/esp-at/build/bootloader/.bin_timestamp
cmd.exe /C "cd /D D:\Work\esp-at\build\bootloader && C:\Users\demetrio.magrin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe D:/Work/esp-at/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32c3 elf2image --flash_mode dio --flash_freq 40m --flash_size 4MB --min-rev 3 --min-rev-full 3 --max-rev-full 99 -o D:/Work/esp-at/build/bootloader/bootloader.bin D:/Work/esp-at/build/bootloader/bootloader.elf && C:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -E echo "Generated D:/Work/esp-at/build/bootloader/bootloader.bin" && C:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -E md5sum D:/Work/esp-at/build/bootloader/bootloader.bin > D:/Work/esp-at/build/bootloader/.bin_timestamp"
C:\Users\demetrio.magrin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe: No module named esptool
ninja: build stopped: subcommand failed.
[314/1136] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_driver_wrappers.c.obj←[320/1136] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto.c.objninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the d:\work\esp-at\build\log\idf_py_stderr_output_20368 and d:\work\esp-at\build\log\idf_py_stdout_output_20368
A fatal error occurred: idf.py build failed
PS D:\Work\esp-at>


How can I solve this problem ?
I await help.
Thank you

Demetrio Magrin

Re: Error compiling esp-AT project using commands from python

Posted: Mon May 29, 2023 4:04 am
by esp-at
could you please provide the d:\work\esp-at\build\log here.

btw, the ESP-IDF version has a update, from de419dbe0b5694db95446ce6ed4fe65bc215b1e7 to 885e501d993f9d543f86ad1ea9fc3b7cbd627051. the right version is 885e501d993f9d543f86ad1ea9fc3b7cbd627051.
could you please backup ESP-IDF directory, and delete it. just let's the esp-at project clones it.

And one more, have you complete the first hello_world example according to https://docs.espressif.com/projects/esp ... th-esp-idf