Page 1 of 1

Error compiling code version 4.0 ESP - IDF

Posted: Thu Apr 09, 2020 10:08 pm
by Lion866
I have an error that I am not able to solve, the code below does not generate the elf file to write to esp32, can someone help me with this?

Using Python in C:\Users\LEONE\AppData\Local\Programs\Python\Python37\
Python 3.7.7
Using Git in C:\Program Files\Git\cmd\
git version 2.25.1.windows.1
Setting IDF_PATH: C:\Users\LEONE\Desktop\esp-idf

Adding ESP-IDF tools to PATH...
C:\Users\LEONE\.espressif\tools\xtensa-esp32-elf\esp-2019r2-8.2.0\xtensa-esp32-elf\bin
C:\Users\LEONE\.espressif\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin
C:\Users\LEONE\.espressif\tools\cmake\3.13.4\bin
C:\Users\LEONE\.espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin
C:\Users\LEONE\.espressif\tools\mconf\v4.6.0.0-idf-20190628\
C:\Users\LEONE\.espressif\tools\ninja\1.9.0\
C:\Users\LEONE\.espressif\tools\idf-exe\1.0.1\
C:\Users\LEONE\.espressif\tools\ccache\3.7\
C:\Users\LEONE\.espressif\python_env\idf4.0_py3.7_env\Scripts
C:\Users\LEONE\Desktop\esp-idf\tools

Checking if Python packages are up to date...
Python requirements from C:\Users\LEONE\Desktop\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


C:\Users\LEONE\Desktop\esp-idf>cd "C:\Users\LEONE\Desktop\esp-idf\examples\02- PROJETOS_ESP32_FREERTOS\EX01"

C:\Users\LEONE\Desktop\esp-idf\examples\02- PROJETOS_ESP32_FREERTOS\EX01>idf.py build
Checking Python dependencies...
Python requirements from C:\Users\LEONE\Desktop\esp-idf\requirements.txt are satisfied.
Executing action: all (aliases: build)
Running cmake in directory 'c:\users\leone\desktop\esp-idf\examples\02- projetos_esp32_freertos\ex01\build'
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=0 'c:\users\leone\desktop\esp-idf\examples\02- projetos_esp32_freertos\ex01'"...
Warn about uninitialized values.
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.25.1.windows.1")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.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:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.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
-- Project version: v4.0-dirty
-- Building ESP-IDF components for target esp32
-- Found PythonInterp: C:/Users/LEONE/.espressif/python_env/idf4.0_py3.7_env/Scripts/python.exe (found version "3.7.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/examples/02- PROJETOS_ESP32_FREERTOS/EX01/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_ringbuf esp_rom esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/LEONE/Desktop/esp-idf/components/app_trace C:/Users/LEONE/Desktop/esp-idf/components/app_update C:/Users/LEONE/Desktop/esp-idf/components/asio C:/Users/LEONE/Desktop/esp-idf/components/bootloader C:/Users/LEONE/Desktop/esp-idf/components/bootloader_support C:/Users/LEONE/Desktop/esp-idf/components/bt C:/Users/LEONE/Desktop/esp-idf/components/coap C:/Users/LEONE/Desktop/esp-idf/components/console C:/Users/LEONE/Desktop/esp-idf/components/cxx C:/Users/LEONE/Desktop/esp-idf/components/driver C:/Users/LEONE/Desktop/esp-idf/components/efuse C:/Users/LEONE/Desktop/esp-idf/components/esp-tls C:/Users/LEONE/Desktop/esp-idf/components/esp32 C:/Users/LEONE/Desktop/esp-idf/components/esp_adc_cal C:/Users/LEONE/Desktop/esp-idf/components/esp_common C:/Users/LEONE/Desktop/esp-idf/components/esp_eth C:/Users/LEONE/Desktop/esp-idf/components/esp_event C:/Users/LEONE/Desktop/esp-idf/components/esp_gdbstub C:/Users/LEONE/Desktop/esp-idf/components/esp_http_client C:/Users/LEONE/Desktop/esp-idf/components/esp_http_server C:/Users/LEONE/Desktop/esp-idf/components/esp_https_ota C:/Users/LEONE/Desktop/esp-idf/components/esp_https_server C:/Users/LEONE/Desktop/esp-idf/components/esp_local_ctrl C:/Users/LEONE/Desktop/esp-idf/components/esp_ringbuf C:/Users/LEONE/Desktop/esp-idf/components/esp_rom C:/Users/LEONE/Desktop/esp-idf/components/esp_websocket_client C:/Users/LEONE/Desktop/esp-idf/components/esp_wifi C:/Users/LEONE/Desktop/esp-idf/components/espcoredump C:/Users/LEONE/Desktop/esp-idf/components/esptool_py C:/Users/LEONE/Desktop/esp-idf/components/expat C:/Users/LEONE/Desktop/esp-idf/components/fatfs C:/Users/LEONE/Desktop/esp-idf/components/freemodbus C:/Users/LEONE/Desktop/esp-idf/components/freertos C:/Users/LEONE/Desktop/esp-idf/components/heap C:/Users/LEONE/Desktop/esp-idf/components/idf_test C:/Users/LEONE/Desktop/esp-idf/components/jsmn C:/Users/LEONE/Desktop/esp-idf/components/json C:/Users/LEONE/Desktop/esp-idf/components/libsodium C:/Users/LEONE/Desktop/esp-idf/components/log C:/Users/LEONE/Desktop/esp-idf/components/lwip C:/Users/LEONE/Desktop/esp-idf/components/mbedtls C:/Users/LEONE/Desktop/esp-idf/components/mdns C:/Users/LEONE/Desktop/esp-idf/components/mqtt C:/Users/LEONE/Desktop/esp-idf/components/newlib C:/Users/LEONE/Desktop/esp-idf/components/nghttp C:/Users/LEONE/Desktop/esp-idf/components/nvs_flash C:/Users/LEONE/Desktop/esp-idf/components/openssl C:/Users/LEONE/Desktop/esp-idf/components/partition_table C:/Users/LEONE/Desktop/esp-idf/components/protobuf-c C:/Users/LEONE/Desktop/esp-idf/components/protocomm C:/Users/LEONE/Desktop/esp-idf/components/pthread C:/Users/LEONE/Desktop/esp-idf/components/sdmmc C:/Users/LEONE/Desktop/esp-idf/components/soc C:/Users/LEONE/Desktop/esp-idf/components/spi_flash C:/Users/LEONE/Desktop/esp-idf/components/spiffs C:/Users/LEONE/Desktop/esp-idf/components/tcp_transport C:/Users/LEONE/Desktop/esp-idf/components/tcpip_adapter C:/Users/LEONE/Desktop/esp-idf/components/ulp C:/Users/LEONE/Desktop/esp-idf/components/unity C:/Users/LEONE/Desktop/esp-idf/components/vfs C:/Users/LEONE/Desktop/esp-idf/components/wear_levelling C:/Users/LEONE/Desktop/esp-idf/components/wifi_provisioning C:/Users/LEONE/Desktop/esp-idf/components/wpa_supplicant C:/Users/LEONE/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LEONE/Desktop/esp-idf/examples/02- PROJETOS_ESP32_FREERTOS/EX01/build
Running ninja in directory 'c:\users\leone\desktop\esp-idf\examples\02- projetos_esp32_freertos\ex01\build'
Executing "ninja all"...
[811/818] Performing configure step for 'bootloader'
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.25.1.windows.1")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.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:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/LEONE/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.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
-- Project version: v4.0-dirty
-- Building ESP-IDF components for target esp32
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/bootloader/subproject/main/esp32.bootloader.ld
-- Adding linker script C:/Users/LEONE/Desktop/esp-idf/components/bootloader/subproject/main/esp32.bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_rom esptool_py log main micro-ecc partition_table soc spi_flash xtensa
-- Component paths: C:/Users/LEONE/Desktop/esp-idf/components/bootloader C:/Users/LEONE/Desktop/esp-idf/components/bootloader_support C:/Users/LEONE/Desktop/esp-idf/components/efuse C:/Users/LEONE/Desktop/esp-idf/components/esp32 C:/Users/LEONE/Desktop/esp-idf/components/esp_common C:/Users/LEONE/Desktop/esp-idf/components/esp_rom C:/Users/LEONE/Desktop/esp-idf/components/esptool_py C:/Users/LEONE/Desktop/esp-idf/components/log C:/Users/LEONE/Desktop/esp-idf/components/bootloader/subproject/main C:/Users/LEONE/Desktop/esp-idf/components/bootloader/subproject/components/micro-ecc C:/Users/LEONE/Desktop/esp-idf/components/partition_table C:/Users/LEONE/Desktop/esp-idf/components/soc C:/Users/LEONE/Desktop/esp-idf/components/spi_flash C:/Users/LEONE/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/LEONE/Desktop/esp-idf/examples/02- PROJETOS_ESP32_FREERTOS/EX01/build/bootloader
[812/818] Performing build step for 'bootloader'
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map
cmd.exe /C "cd /D "C:\Users\LEONE\Desktop\esp-idf\examples\02- PROJETOS_ESP32_FREERTOS\EX01\build\bootloader" && C:\Users\LEONE\.espressif\tools\cmake\3.13.4\bin\cmake.exe --build ."
[1/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[2/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/cpu_util.c.obj
[3/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_clk.c.obj
[4/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_clk_init.c.obj
[5/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_init.c.obj
[6/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_pm.c.obj
[7/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_sleep.c.obj
[8/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_periph.c.obj
[9/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_wdt.c.obj
[10/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_time.c.obj
[11/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[12/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_hal.c.obj
[13/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/memory_layout_utils.c.obj
[14/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[15/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/lldesc.c.obj
[16/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/soc_memory_layout.c.obj
[17/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[18/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_hal_iram.c.obj
[19/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_slave_hal.c.obj
[20/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_flash_hal.c.obj
[21/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_slave_hal_iram.c.obj
[22/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/soc_include_legacy_warn.c.obj
[23/62] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/src/hal/spi_flash_hal_iram.c.obj
[24/62] Generating project_elf_src.c
[25/62] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[26/62] Building ASM object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/debug_helpers_asm.S.obj
[27/62] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/trax.c.obj
[28/62] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/debug_helpers.c.obj
[29/62] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[30/62] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/spi_flash_rom_patch.c.obj
[31/62] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[32/62] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[33/62] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[34/62] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[35/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock.c.obj
[36/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[37/62] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src.c.obj
[38/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[39/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config.c.obj
[40/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[41/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/secure_boot.c.obj
[42/62] Linking C static library esp-idf\log\liblog.a
[43/62] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/micro-ecc/uECC.c.obj
[44/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/flash_encrypt.c.obj
[45/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/secure_boot_signatures.c.obj
[46/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[47/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[48/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[49/62] Linking C static library esp-idf\xtensa\libxtensa.a
[50/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[51/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[52/62] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[53/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[54/62] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[55/62] Linking C static library esp-idf\soc\libsoc.a
[56/62] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[57/62] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[58/62] Linking C static library esp-idf\efuse\libefuse.a
[59/62] Linking C static library esp-idf\spi_flash\libspi_flash.a
[60/62] Linking C static library esp-idf\main\libmain.a
[61/62] Linking C executable bootloader.elf
FAILED: bootloader.elf
cmd.exe /C "cd . && C:\Users\LEONE\.espressif\tools\xtensa-esp32-elf\esp-2019r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address -nostdlib CMakeFiles/bootloader.elf.dir/project_elf_src.c.obj -o bootloader.elf esp-idf/soc/libsoc.a esp-idf/xtensa/libxtensa.a esp-idf/log/liblog.a esp-idf/micro-ecc/libmicro-ecc.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/main/libmain.a -Wl,--cref -Wl,--Map=C:/Users/LEONE/Desktop/esp-idf/examples/02- PROJETOS_ESP32_FREERTOS/EX01/build/bootloader/bootloader.map -fno-rtti -fno-lto esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/spi_flash/libspi_flash.a esp-idf/efuse/libefuse.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/micro-ecc/libmicro-ecc.a esp-idf/soc/libsoc.a esp-idf/xtensa/libxtensa.a esp-idf/log/liblog.a esp-idf/soc/libsoc.a esp-idf/xtensa/libxtensa.a esp-idf/log/liblog.a -L C:/Users/LEONE/Desktop/esp-idf/components/esp32/ld -T esp32.peripherals.ld C:/Users/LEONE/Desktop/esp-idf/components/xtensa/esp32/libhal.a -Wl,--gc-sections -L C:/Users/LEONE/Desktop/esp-idf/components/esp_rom/esp32/ld -T esp32.rom.ld -T esp32.rom.newlib-funcs.ld -T esp32.rom.libgcc.ld -L C:/Users/LEONE/Desktop/esp-idf/components/bootloader/subproject/main -T esp32.bootloader.ld -T esp32.bootloader.rom.ld && cd ."
xtensa-esp32-elf-gcc.exe: error: PROJETOS_ESP32_FREERTOS/EX01/build/bootloader/bootloader.map: No such file or directory
ninja: build stopped: subcommand failed.
[813/818] Generating ld/esp32.project.ld
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

C:\Users\LEONE\Desktop\esp-idf\examples\02- PROJETOS_ESP32_FREERTOS\EX01>


FILE : https://drive.google.com/file/d/1ZMqLz5 ... sp=sharing

Re: Error compiling code version 4.0 ESP - IDF

Posted: Fri Nov 19, 2021 9:27 am
by RichPiano
This happens sometimes if you switch the repo in between builds.

Run idf.py fullclean and idf.py build again. This solved the problem for me.