Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Build error FAILED: FeaturedFreeRTOSIoTIntegration.elf #49

Closed
Youhana-Hana opened this issue Sep 18, 2023 · 24 comments
Closed

[BUG] Build error FAILED: FeaturedFreeRTOSIoTIntegration.elf #49

Youhana-Hana opened this issue Sep 18, 2023 · 24 comments

Comments

@Youhana-Hana
Copy link

Describe the bug
Please provide a clear and concise description explaining the bug.
Error building the project with error FAILED: FeaturedFreeRTOSIoTIntegration.elf

Bootloader binary size 0x6860 bytes. 0x37a0 bytes (35%) free.
[4/6] Linking CXX executable FeaturedFreeRTOSIoTIntegration.elf
FAILED: FeaturedFreeRTOSIoTIntegration.elf
: && /Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -mlongcalls -Wno-frame-address -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32=0 -Wl,--Map=/Users/ymaher/projects/iot-reference-esp32c3/build/FeaturedFreeRTOSIoTIntegration.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-funcs.ld -T memory.ld -T sections.ld CMakeFiles/FeaturedFreeRTOSIoTIntegration.elf.dir/project_elf_src_esp32.c.obj -o FeaturedFreeRTOSIoTIntegration.elf -L/Users/ymaher/esp/esp-idf/components/soc/esp32/ld -L/Users/ymaher/esp/esp-idf/components/esp_rom/esp32/ld -L/Users/ymaher/projects/iot-reference-esp32c3/build/esp-idf/esp_system/ld -L/Users/ymaher/esp/esp-idf/components/esp_phy/lib/esp32 -L/Users/ymaher/esp/esp-idf/components/esp_coex/lib/esp32 -L/Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32 -L/Users/ymaher/esp/esp-idf/components/bt/controller/lib_esp32/esp32 esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/esp_pm/libesp_pm.a esp-idf/mbedtls/libmbedtls.a esp-idf/esp_app_format/libesp_app_format.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/esp_partition/libesp_partition.a esp-idf/app_update/libapp_update.a esp-idf/esp_mm/libesp_mm.a esp-idf/spi_flash/libspi_flash.a esp-idf/pthread/libpthread.a esp-idf/esp_system/libesp_system.a esp-idf/esp_rom/libesp_rom.a esp-idf/hal/libhal.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/soc/libsoc.a esp-idf/esp_hw_support/libesp_hw_support.a esp-idf/freertos/libfreertos.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/esp_common/libesp_common.a esp-idf/esp_timer/libesp_timer.a esp-idf/app_trace/libapp_trace.a esp-idf/esp_event/libesp_event.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_phy/libesp_phy.a esp-idf/vfs/libvfs.a esp-idf/lwip/liblwip.a esp-idf/esp_netif/libesp_netif.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_coex/libesp_coex.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/bt/libbt.a esp-idf/unity/libunity.a esp-idf/cmock/libcmock.a esp-idf/console/libconsole.a esp-idf/http_parser/libhttp_parser.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc/libesp_adc.a esp-idf/esp_eth/libesp_eth.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/esp_hid/libesp_hid.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/esp_lcd/libesp_lcd.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/protocomm/libprotocomm.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/espcoredump/libespcoredump.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/fatfs/libfatfs.a esp-idf/json/libjson.a esp-idf/mqtt/libmqtt.a esp-idf/perfmon/libperfmon.a esp-idf/spiffs/libspiffs.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/qrcode/libqrcode.a esp-idf/coreMQTT/libcoreMQTT.a esp-idf/coreMQTT-Agent/libcoreMQTT-Agent.a esp-idf/corePKCS11/libcorePKCS11.a esp-idf/coreJSON/libcoreJSON.a esp-idf/backoffAlgorithm/libbackoffAlgorithm.a esp-idf/espressif__esp_secure_cert_mgr/libespressif__esp_secure_cert_mgr.a esp-idf/espressif__cbor/libespressif__cbor.a esp-idf/ota-for-aws-iot-embedded-sdk/libota-for-aws-iot-embedded-sdk.a esp-idf/coreHTTP/libcoreHTTP.a esp-idf/FreeRTOS-Libraries-Integration-Tests/libFreeRTOS-Libraries-Integration-Tests.a esp-idf/espressif__led_strip/libespressif__led_strip.a esp-idf/main/libmain.a esp-idf/Device-Defender-for-AWS-IoT-embedded-sdk/libDevice-Defender-for-AWS-IoT-embedded-sdk.a esp-idf/Device-Shadow-for-AWS-IoT-embedded-sdk/libDevice-Shadow-for-AWS-IoT-embedded-sdk.a esp-idf/Fleet-Provisioning-for-AWS-IoT-embedded-sdk/libFleet-Provisioning-for-AWS-IoT-embedded-sdk.a esp-idf/Jobs-for-AWS-IoT-embedded-sdk/libJobs-for-AWS-IoT-embedded-sdk.a esp-idf/app_trace/libapp_trace.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/sdmmc/libsdmmc.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/protocomm/libprotocomm.a esp-idf/bt/libbt.a -lbtdm_app -u ld_include_hli_vectors_bt esp-idf/console/libconsole.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/json/libjson.a esp-idf/qrcode/libqrcode.a esp-idf/coreMQTT-Agent/libcoreMQTT-Agent.a esp-idf/backoffAlgorithm/libbackoffAlgorithm.a esp-idf/espressif__esp_secure_cert_mgr/libespressif__esp_secure_cert_mgr.a esp-idf/FreeRTOS-Libraries-Integration-Tests/libFreeRTOS-Libraries-Integration-Tests.a esp-idf/unity/libunity.a esp-idf/coreMQTT/libcoreMQTT.a esp-idf/ota-for-aws-iot-embedded-sdk/libota-for-aws-iot-embedded-sdk.a esp-idf/corePKCS11/libcorePKCS11.a esp-idf/espressif__cbor/libespressif__cbor.a esp-idf/coreHTTP/libcoreHTTP.a esp-idf/espressif__led_strip/libespressif__led_strip.a esp-idf/coreJSON/libcoreJSON.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/esp_pm/libesp_pm.a esp-idf/mbedtls/libmbedtls.a esp-idf/esp_app_format/libesp_app_format.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/esp_partition/libesp_partition.a esp-idf/app_update/libapp_update.a esp-idf/esp_mm/libesp_mm.a esp-idf/spi_flash/libspi_flash.a esp-idf/pthread/libpthread.a esp-idf/esp_system/libesp_system.a esp-idf/esp_rom/libesp_rom.a esp-idf/hal/libhal.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/soc/libsoc.a esp-idf/esp_hw_support/libesp_hw_support.a esp-idf/freertos/libfreertos.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/esp_common/libesp_common.a esp-idf/esp_timer/libesp_timer.a esp-idf/esp_event/libesp_event.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_phy/libesp_phy.a esp-idf/vfs/libvfs.a esp-idf/lwip/liblwip.a esp-idf/esp_netif/libesp_netif.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_coex/libesp_coex.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/http_parser/libhttp_parser.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc/libesp_adc.a esp-idf/esp_eth/libesp_eth.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /Users/ymaher/esp/esp-idf/components/esp_coex/lib/esp32/libcoexist.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libwapi.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/esp_pm/libesp_pm.a esp-idf/mbedtls/libmbedtls.a esp-idf/esp_app_format/libesp_app_format.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/esp_partition/libesp_partition.a esp-idf/app_update/libapp_update.a esp-idf/esp_mm/libesp_mm.a esp-idf/spi_flash/libspi_flash.a esp-idf/pthread/libpthread.a esp-idf/esp_system/libesp_system.a esp-idf/esp_rom/libesp_rom.a esp-idf/hal/libhal.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/soc/libsoc.a esp-idf/esp_hw_support/libesp_hw_support.a esp-idf/freertos/libfreertos.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/esp_common/libesp_common.a esp-idf/esp_timer/libesp_timer.a esp-idf/esp_event/libesp_event.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_phy/libesp_phy.a esp-idf/vfs/libvfs.a esp-idf/lwip/liblwip.a esp-idf/esp_netif/libesp_netif.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_coex/libesp_coex.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/http_parser/libhttp_parser.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc/libesp_adc.a esp-idf/esp_eth/libesp_eth.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /Users/ymaher/esp/esp-idf/components/esp_coex/lib/esp32/libcoexist.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libwapi.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/esp_pm/libesp_pm.a esp-idf/mbedtls/libmbedtls.a esp-idf/esp_app_format/libesp_app_format.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/esp_partition/libesp_partition.a esp-idf/app_update/libapp_update.a esp-idf/esp_mm/libesp_mm.a esp-idf/spi_flash/libspi_flash.a esp-idf/pthread/libpthread.a esp-idf/esp_system/libesp_system.a esp-idf/esp_rom/libesp_rom.a esp-idf/hal/libhal.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/soc/libsoc.a esp-idf/esp_hw_support/libesp_hw_support.a esp-idf/freertos/libfreertos.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/esp_common/libesp_common.a esp-idf/esp_timer/libesp_timer.a esp-idf/esp_event/libesp_event.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_phy/libesp_phy.a esp-idf/vfs/libvfs.a esp-idf/lwip/liblwip.a esp-idf/esp_netif/libesp_netif.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_coex/libesp_coex.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/http_parser/libhttp_parser.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc/libesp_adc.a esp-idf/esp_eth/libesp_eth.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /Users/ymaher/esp/esp-idf/components/esp_coex/lib/esp32/libcoexist.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libwapi.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/esp_pm/libesp_pm.a esp-idf/mbedtls/libmbedtls.a esp-idf/esp_app_format/libesp_app_format.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/esp_partition/libesp_partition.a esp-idf/app_update/libapp_update.a esp-idf/esp_mm/libesp_mm.a esp-idf/spi_flash/libspi_flash.a esp-idf/pthread/libpthread.a esp-idf/esp_system/libesp_system.a esp-idf/esp_rom/libesp_rom.a esp-idf/hal/libhal.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/soc/libsoc.a esp-idf/esp_hw_support/libesp_hw_support.a esp-idf/freertos/libfreertos.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/esp_common/libesp_common.a esp-idf/esp_timer/libesp_timer.a esp-idf/esp_event/libesp_event.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_phy/libesp_phy.a esp-idf/vfs/libvfs.a esp-idf/lwip/liblwip.a esp-idf/esp_netif/libesp_netif.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_coex/libesp_coex.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/http_parser/libhttp_parser.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc/libesp_adc.a esp-idf/esp_eth/libesp_eth.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /Users/ymaher/esp/esp-idf/components/esp_coex/lib/esp32/libcoexist.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libwapi.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/esp_pm/libesp_pm.a esp-idf/mbedtls/libmbedtls.a esp-idf/esp_app_format/libesp_app_format.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/esp_partition/libesp_partition.a esp-idf/app_update/libapp_update.a esp-idf/esp_mm/libesp_mm.a esp-idf/spi_flash/libspi_flash.a esp-idf/pthread/libpthread.a esp-idf/esp_system/libesp_system.a esp-idf/esp_rom/libesp_rom.a esp-idf/hal/libhal.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/soc/libsoc.a esp-idf/esp_hw_support/libesp_hw_support.a esp-idf/freertos/libfreertos.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/esp_common/libesp_common.a esp-idf/esp_timer/libesp_timer.a esp-idf/esp_event/libesp_event.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/esp_phy/libesp_phy.a esp-idf/vfs/libvfs.a esp-idf/lwip/liblwip.a esp-idf/esp_netif/libesp_netif.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_coex/libesp_coex.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/http_parser/libhttp_parser.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc/libesp_adc.a esp-idf/esp_eth/libesp_eth.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /Users/ymaher/esp/esp-idf/components/esp_coex/lib/esp32/libcoexist.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /Users/ymaher/esp/esp-idf/components/esp_wifi/lib/esp32/libwapi.a /Users/ymaher/esp/esp-idf/components/xtensa/esp32/libxt_hal.a -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u pthread_include_pthread_semaphore_impl -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u esp_dport_access_reg_read -Wl,--undefined=uxTopUsedPriority -Wl,--undefined=FreeRTOS_openocd_params -u app_main -lc -lm esp-idf/newlib/libnewlib.a -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting -Wl,--wrap=__register_frame_info_bases -Wl,--wrap=__register_frame_info -Wl,--wrap=__register_frame -Wl,--wrap=__register_frame_info_table_bases -Wl,--wrap=__register_frame_info_table -Wl,--wrap=__register_frame_table -Wl,--wrap=__deregister_frame_info_bases -Wl,--wrap=__deregister_frame_info -Wl,--wrap=_Unwind_Find_FDE -Wl,--wrap=_Unwind_GetGR -Wl,--wrap=_Unwind_GetCFA -Wl,--wrap=_Unwind_GetIP -Wl,--wrap=_Unwind_GetIPInfo -Wl,--wrap=_Unwind_GetRegionStart -Wl,--wrap=_Unwind_GetDataRelBase -Wl,--wrap=_Unwind_GetTextRelBase -Wl,--wrap=_Unwind_SetIP -Wl,--wrap=_Unwind_SetGR -Wl,--wrap=_Unwind_GetLanguageSpecificData -Wl,--wrap=_Unwind_FindEnclosingFunction -Wl,--wrap=_Unwind_Resume -Wl,--wrap=_Unwind_RaiseException -Wl,--wrap=_Unwind_DeleteException -Wl,--wrap=_Unwind_ForcedUnwind -Wl,--wrap=_Unwind_Resume_or_Rethrow -Wl,--wrap=_Unwind_Backtrace -Wl,--wrap=__cxa_call_unexpected -Wl,--wrap=__gxx_personality_v0 -u __cxa_guard_dummy -lstdc++ esp-idf/pthread/libpthread.a -lgcc esp-idf/cxx/libcxx.a -u __cxx_fatal_exception -u include_esp_phy_override -lphy -lrtc esp-idf/esp_phy/libesp_phy.a -lphy -lrtc esp-idf/esp_phy/libesp_phy.a -lphy -lrtc -u vfs_include_syscalls_impl && :
/Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: FeaturedFreeRTOSIoTIntegration.elf section .dram0.bss' will not fit in region dram0_0_seg'
/Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 640 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

System information

  • Hardware board: [ ESP32-CAM]
  • IDE used: [ Visual Studio Code]
  • Operating System: [MacOS ]
  • Code version: (run git describe --tags to find it) : v202212.00-23-gd25036b
  • Project/Demo: [ mqtt_demo_mutual_auth | shadow_demo | custom application | etc... ] shadow_demo
  • If your project is a custom application, please add the relevant code snippet(s) in the section titled "Code to reproduce bug".

Expected behavior
A clear description of the expected behavior.

Screenshots or console output
If appropriate, please paste the console output/error log explaining the issue. If possible, include the call stack.

Steps to reproduce bug
Example:
1. "I am using project [ ... ], and have configured with [ ... ]"
2. "When run on [ ... ], I observed that [ ... ]"

Code to reproduce bug
The code should be wrapped in the cpp tag in order to be displayed clearly. For example:

printf("Hello World")

Additional context
Include any additional context relevant to the issue here.

@kstribrnAmzn
Copy link
Member

/Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: FeaturedFreeRTOSIoTIntegration.elf section .dram0.bss' will not fit in region dram0_0_seg'
/Users/ymaher/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 640 bytes

Are suggesting that you've run out of RAM when building your application. The ESP-IDF documentation provides suggested ways around this

@puneet-arora15
Copy link

I'm having the same issue as @Youhana-Hana in ESP5.1 and wanted to see if someone can help solve the IRAM issue with the repo code. As I'm getting RAM issues with the repo code without any changes.

@Skptak I have seen that you offered help to one of the previous PR and wanted to see if you could help here in the same request.

@kstribrnAmzn
Copy link
Member

@puneet-arora15 that's not good to hear. Our demos should build out of the box with no issues. Can you tell me which demo you are building? I'd like to try and duplicate it on my end.

@puneet-arora15
Copy link

puneet-arora15 commented Sep 26, 2023

Yeah sure @kstribrnAmzn, I'm trying to setup the ota_over_mqtt_demo and sub_pub_unsub_demo together. It works perfectly fine on the v5.0 ESP IDF although the same code doesn't compile and errors on overflow on RAM. I'm new to ESP world, so having a bit of difficulties with resolving the issue.

I tried following the ESP doc on it, but didn't have much luck with it. Hopefully you can help with it

ESP version - 5.1
ESP device - esp32

@rawalexe
Copy link
Member

rawalexe commented Oct 1, 2023

Hello @puneet-arora15 and @Youhana-Hana
For esp32 chip you can try reducing the coreMQTT-Agent network buffer size that is under idf.py menuconfig ->Featured FreeRTOS IoT Integration -> coreMQTT-Agent Manager Configurations. Some of the task size configuration under Featured FreeRTOS IoT Integration request more size than what's needed for them to run, hence, you may try reducing them to where ever works best for you.

Hopefully this helps out

Best Regards.
AR

@ran202
Copy link

ran202 commented Dec 30, 2023

I also see the same compilation error. I also followed the suggestion above to reduce "coreMQTT-Agent network buffer size" but that didnot help (reduced to 1000 from 10000).

My setup-

  • Hardware board: ESP32 WROOM Dev board
  • IDE used: ESP IDF v5.1.2
  • Operating System: Windows
  • Code version: v202212.00-29-g19888ff
  • Project/Demo: OTA over mqtt and LED on/off

Will highly appreciate your help on this.
Regards.

@gamename
Copy link

gamename commented Jan 9, 2024

@kstribrnAmzn @rawalexe

I'm getting the same error as well. Will provide any diagnostics you like from my environment.

Hardware: esp32-wroom-32d (DevKitC v4)
IDE: vscode 1.85.1
ESP-IDF: v5.3-dev-796-g30870c819f
OS: MacOS 14.2.1 (23C71)

Log:
flash-and-monitor.log

@kstribrnAmzn
Copy link
Member

kstribrnAmzn commented Jan 23, 2024

Both of you are having dram0_0_seg overflowing. From what I'm seeing online this looks common when a static variable is too large. I'm going to try to build the OTA over MQTT demo and will post my map file details.

https://esp32.com/viewtopic.php?t=3059

@Skptak Skptak mentioned this issue Jan 26, 2024
2 tasks
@Skptak
Copy link
Member

Skptak commented Jan 26, 2024

Hey @gamename and @ran202 , I've started working on the issues you're hitting in #68.

I don't have a ESP32-C2 to verify they work on hardware, but am going to be trying the various demos in this repo on the C3 and S3 when I can.

If you'd be able to try checking out my branch and running them yourself that'd be extremely helpful though!

Thanks!

@gamename
Copy link

gamename commented Jan 26, 2024

@Skptak
Thanks for looking at this. No problem. Will be happy to try your code. Let me know when its ready for testing and I'll pull a copy.

PS. My hardware is esp32-wroom-32d. Still want me to try it?

@gamename
Copy link

@Skptak

When trying to compile without any modification, I get the following error (see attached)

compile.log

@Skptak
Copy link
Member

Skptak commented Jan 26, 2024

Hey @gamename, thanks for trying out my branch! I really appreciate you taking the time to do that! That error was actually the exact reason I made this commit to remove the v4.4.3 build from the CI-CD

From what I can tell this file doesn't exist for the ESP32 default device target. A link to a GitHub action log showing this error is here

I updated the GettingStartedGuide.md to mark that the 4.4.3 version of esp-idf is out of support now, and marked that this repository now only will support v5+ as well.

Would you be willing to try updating your idf.py to version 5 or above and trying again?

I was just able to validate this demo on my esp32-c3 using this branch. Where was going to start looking into #45, #44 and the related coreMQTT-Agent issue #104

@gamename
Copy link

gamename commented Jan 26, 2024

@Skptak

Would you be willing to try updating your idf.py to version 5 or above and trying again?

Sure. Np. Will do that and get back to you.

@gamename
Copy link

@Skptak

Actually, I'm already on ESP-IDF version v5.3-dev-796-g30870c819f

@Skptak
Copy link
Member

Skptak commented Jan 29, 2024

Hey @gamename,

Actually, I'm already on ESP-IDF version v5.3-dev-796-g30870c819f

I believe v5.3 is still in the development phase and as such does not have an official tag to use for it. As such I don't know if we can make any promises to support that version. I've added v5.2, as the latest officially released version of ESP-IDF to the CI-CD Builds in this commit

PS. My hardware is esp32-wroom-32d. Still want me to try it?

I also know that this repo maintains that it only officially supports the ESP32-C3, ESP32-S3, and ESP32-C2. I'm not sure if that chip is close enough to the ESP32 default target that is supplied in the espressif/esp-idf-ci-action

@gamename
Copy link

Hi @Skptak

Understood. I'll give it a try anyway and get back to you with any results. No worries if it isn't really supported. Will let you know what happens just for the sake of interest. :)

@Skptak
Copy link
Member

Skptak commented Jan 30, 2024

Thanks @gamename, we've just merged #68, so will wait to hear back from you how it goes

@paulbartell
Copy link
Contributor

I believe this issue has been addressed. Feel free to reopen this issue if build failures persist.

@gamename
Copy link

gamename commented Feb 9, 2024

@Skptak

I got an esp32-s3-wroom-1 board and tried it again. Bearing in mind that I'm using a dev version of IDF 5, and that it is a superset of 4, it might be worth nothing.

FYI

Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: FeaturedFreeRTOSIoTIntegration.elf section `.iram0.text' will not fit in region `iram0_0_seg'
/Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: FeaturedFreeRTOSIoTIntegration.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
/Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: DRAM segment data does not fit.
/Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: IRAM0 segment data does not fit.
/Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: DRAM segment data does not fit.
/Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: region `iram0_0_seg' overflowed by 760 bytes
/Users/tennis/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: region `dram0_0_seg' overflowed by 2384 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
HINT: The applications static IRAM usage is larger than the available IRAM size.
For more information on how to reduze IRAM usage run 'idf.py docs -sp api-guides/performance/ram-usage.html#optimizing-iram-usage' 
ninja failed with exit code 1, output of the command is in the /Users/tennis/src/iot-reference-esp32c3/build/log/idf_py_stderr_output_29238 and /Users/tennis/src/iot-reference-esp32c3/build/log/idf_py_stdout_output_29238
╭─tennis@tennismbp2019.local ~/src/iot-reference-esp32c3  ‹main*› 
╰─➤  idf --version                                                                                                                                                                                         2 ↵
ESP-IDF v5.3-dev-1353-gb3f7e2c8a4

@kstribrnAmzn
Copy link
Member

I was able to reproduce your issue with an ESP32 C3 board once in an afternoon of trying. It appears my ESP-IDF setup is really in a bad state OR the plugin doesn't like me. I don't think this issue is resolved and so I'll reopen it.

I will have to do a bit further of a dive. I suspect part of this will be fixing my ESP-IDF installation.

@kstribrnAmzn kstribrnAmzn reopened this Feb 13, 2024
@kstribrnAmzn
Copy link
Member

My ESP-IDF installation was certainly in a weird state. I was able to flash both an ESP32-C3 and ESP32-S3 today without either showing a memory sizing issue. I used ESP-IDF 5.1.2.

Would you be able to try with an officially release ESP-IDF version?

@gamename
Copy link

@kstribrnAmzn
OK. I'll give it a try and get back to you.

@gamename
Copy link

@kstribrnAmzn
It worked! I tried it with v5.2 and it compiled and loaded on my esp32-s3-wroom-1 (ESP32-S3-DevKitC-1-N8R2)

@ActoryOu
Copy link
Member

ActoryOu commented Mar 25, 2024

closing since it's confirmed fixed by officially release ESP-IDF version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants