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

libcoexist functions missing (IDFGH-12049) #13113

Closed
3 tasks done
KaeLL opened this issue Feb 5, 2024 · 10 comments
Closed
3 tasks done

libcoexist functions missing (IDFGH-12049) #13113

KaeLL opened this issue Feb 5, 2024 · 10 comments
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally

Comments

@KaeLL
Copy link
Contributor

KaeLL commented Feb 5, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Building my app on v5.1.2-684-g7cbee80fb9, I get the error

/esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x0): undefined reference to `btdm_rf_bb_reg_init'
/esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x16): undefined reference to `btdm_rf_bb_reg_init'
defconfig
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF=y
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
CONFIG_BOOTLOADER_SKIP_VALIDATE_ALWAYS=y
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_AFTER_NORESET=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_ota.csv"
CONFIG_PARTITION_TABLE_OFFSET=0xC000
CONFIG_COMPILER_WARN_WRITE_STRINGS=y
CONFIG_BT_ENABLED=y
CONFIG_BT_BTU_TASK_STACK_SIZE=4096
CONFIG_BT_BLE_SMP_ENABLE=n
CONFIG_BT_STACK_NO_LOG=y
CONFIG_BT_ACL_CONNECTIONS=1
CONFIG_BT_MULTI_CONNECTION_ENBALE=n
CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=y
CONFIG_BT_BLE_HOST_QUEUE_CONG_CHECK=y
CONFIG_BTDM_CTRL_BLE_MAX_CONN=1
CONFIG_BTDM_CTRL_MODEM_SLEEP=n
CONFIG_BTDM_BLE_SCAN_DUPL=n
CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP=n
CONFIG_SPI_MASTER_IN_IRAM=y
CONFIG_SPI_SLAVE_ISR_IN_IRAM=n
CONFIG_TWAI_ERRATA_FIX_BUS_OFF_REC=n
CONFIG_TWAI_ERRATA_FIX_TX_INTR_LOST=n
CONFIG_TWAI_ERRATA_FIX_RX_FRAME_INVALID=n
CONFIG_TWAI_ERRATA_FIX_RX_FIFO_CORRUPT=n
CONFIG_TWAI_ERRATA_FIX_LISTEN_ONLY_DOM=n
CONFIG_GPTIMER_SUPPRESS_DEPRECATE_WARN=y
CONFIG_ESP_TLS_INSECURE=y
CONFIG_ESP_TLS_SKIP_SERVER_CERT_VERIFY=y
CONFIG_ETH_DMA_BUFFER_SIZE=256
CONFIG_ETH_DMA_RX_BUFFER_NUM=3
CONFIG_ETH_DMA_TX_BUFFER_NUM=3
CONFIG_ETH_USE_SPI_ETHERNET=n
CONFIG_ESP_EVENT_POST_FROM_ISR=n
CONFIG_ESP_HTTP_CLIENT_ENABLE_BASIC_AUTH=y
CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP=y
CONFIG_ESP32_REV_MIN_1=y
CONFIG_RTC_CLK_SRC_INT_8MD256=y
CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE=n
CONFIG_ESP_PHY_REDUCE_TX_POWER=y
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
CONFIG_ESP_MAIN_TASK_STACK_SIZE=10240
CONFIG_ESP_CONSOLE_UART_CUSTOM=y
CONFIG_ESP_CONSOLE_UART_BAUDRATE=921600
CONFIG_ESP_INT_WDT_TIMEOUT_MS=30
CONFIG_ESP_TASK_WDT_PANIC=y
CONFIG_ESP_TASK_WDT_TIMEOUT_S=10
CONFIG_ESP_DEBUG_OCDAWARE=n
CONFIG_ESP_IPC_TASK_STACK_SIZE=1536
CONFIG_ESP_WIFI_NVS_ENABLED=n
CONFIG_ESP_WIFI_IRAM_OPT=n
CONFIG_ESP_WIFI_RX_IRAM_OPT=n
CONFIG_FREERTOS_HZ=200
CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=n
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
CONFIG_FREERTOS_ISR_STACKSIZE=2096
CONFIG_FREERTOS_CORETIMER_1=y
CONFIG_HEAP_ABORT_WHEN_ALLOCATION_FAILS=y
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=5744
CONFIG_LWIP_TCP_WND_DEFAULT=5744
CONFIG_LWIP_SNTP_MAX_SERVERS=4
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y
CONFIG_MBEDTLS_TLS_CLIENT_ONLY=y
CONFIG_MQTT_TRANSPORT_WEBSOCKET=n
CONFIG_NVS_ASSERT_ERROR_CHECK=y
CONFIG_SPI_FLASH_ENABLE_ENCRYPTED_READ_WRITE=n
CONFIG_ULP_COPROC_ENABLED=y
CONFIG_ULP_COPROC_RESERVE_MEM=128
CONFIG_WIFI_PROV_BLE_BONDING=y
CONFIG_WIFI_PROV_BLE_FORCE_ENCRYPTION=y
CONFIG_EMAC_RECV_TASK_CORE=0
@github-actions github-actions bot changed the title libcoexist functions missing libcoexist functions missing (IDFGH-12049) Feb 5, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Feb 5, 2024
@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Feb 6, 2024
@esp-lrh
Copy link
Collaborator

esp-lrh commented Feb 6, 2024

Hi, @KaeLL
Please run git submodule update and git status in IDF directory, make sure that there is no change in the subrepository components/bt/controller/lib_esp32.

Run git log in directory components/bt/controller/lib_esp32, the first commit should be b0f132f1.

@KaeLL
Copy link
Contributor Author

KaeLL commented Feb 6, 2024

Just updated the branch, btw.

$ git describe --tags && git status && git submodule status
v5.1.2-691-g7380f96017
On branch release/v5.1
Your branch is up to date with 'origin/release/v5.1'.

nothing to commit, working tree clean
 24c60e243580c7868f4334a1ba3123481fe1aa48 components/bootloader/subproject/components/micro-ecc/micro-ecc (v1.1)
 b0f132f17ed48553a4638344023d44af61b7c20a components/bt/controller/lib_esp32 (remotes/origin/HEAD)
 7f3eb5f5568439cdb32dfe9dbf69d99e9c72e69f components/bt/controller/lib_esp32c2/esp32c2-bt-lib (remotes/origin/HEAD)
 9d40b3bc0ac38d72b66fe0f612a8dda64c7330d7 components/bt/controller/lib_esp32c3_family (heads/master-21-g9d40b3b)
 14bb72fed1ec294cf9373005c13d2d9979c72a09 components/bt/controller/lib_esp32c6/esp32c6-bt-lib (heads/main-45-g14bb72f)
 ec71faf431106c29c05f553c7c8719542208c561 components/bt/controller/lib_esp32h2/esp32h2-bt-lib (remotes/origin/HEAD)
 31335a5a4fd0e063edc086d3c268399404db3bfd components/bt/host/nimble/nimble (remotes/origin/master-1547-g31335a5a)
 eeecc49ce8af123cf8ad40efdb9673e37b56230f components/cmock/CMock (v2.5.2-2-geeecc49)
 496ee81e168881cad93f9a813802e7f7a6daec92 components/esp_coex/lib (remotes/origin/HEAD)
 2d319a382336cf0522ea4bb5a3fbd6701a8633c6 components/esp_phy/lib (remotes/origin/HEAD)
 0a25c10a587df080550995e18fc10c996abc7ecf components/esp_wifi/lib (remotes/origin/release/v5.1)
 d2e28f872472ffc6a704faae65ddee1f24e2dfba components/heap/tlsf (heads/idf-2-gd2e28f8)
 87d8f0961a01bf09bef98ff89bae9fdec42181ee components/json/cJSON (v1.7.15-21-g87d8f09)
 542ba2997f6cc14fe9c3d781bf9b0d890cd70bb1 components/lwip/lwip (remotes/origin/master-281-g542ba299)
 dd91f30058dfad68d80267cc82cd8472c4aa54b5 components/mbedtls/mbedtls (mbedtls-3.5.0-5-gdd91f3005)
 e6afdb4025fe018ae0add44e3c45249ea1974774 components/mqtt/esp-mqtt (ESP-MQTT_FOR_IDF_4.x-227-ge6afdb4)
 fcee30db4b7342de4df9105bdd049a09d2d63187 components/openthread/lib (heads/master-21-gfcee30d)
 456c448284486abe2a9118a9fdaa468fe2383fcd components/openthread/openthread (thread-reference-20230706-340-g456c44828)
 abc67a11c6db271bedbb9f58be85d6f4e2ea8389 components/protobuf-c/protobuf-c (v1.4.1)
 0dbb3f71c5f6fae3747a9d935372773762baf852 components/spiffs/spiffs (0.2-255-g0dbb3f7)
 7d2bf62b7e6afaf38153041a9d53c21aeeca9a25 components/unity/unity (v2.4.3-51-g7d2bf62)

@esp-lrh
Copy link
Collaborator

esp-lrh commented Feb 7, 2024

Run idf.py fullclean and build your app again, paste the full log here.

In addition, please try to build examples/bluetooth/nimble/bleprph_wifi_coex for esp32, if build failed, paste the full log here too.

The two missing functions were added in commit b0f132f1 of components/bt/controller/lib_esp32, I remove that commit and build the coexist example, got the same error with you.

If your app build failed and the examples/bluetooth/nimble/bleprph_wifi_coex build success, checkout idf to db1e54a0, run git submodule update and build your app again, this version of idf will not include any reference to the two missing functions.

@KaeLL
Copy link
Contributor Author

KaeLL commented Feb 7, 2024

Run idf.py fullclean and build your app again, paste the full log here.

$ idf.py fullclean all
$ idf.py fullclean all
Executing action: fullclean
Executing action: remove_managed_components
Executing action: all (aliases: build)
Running cmake in directory /project/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/tools/python_env/idf5.1_py3.11_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 /project"...
-- IDF_TARGET is not set, guessed 'esp32' from sdkconfig '/project/sdkconfig'
-- Found Git: /usr/bin/git (found version "2.40.1") 
-- Component directory /project/components/config_ar does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - 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: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /project/sdkconfig
/project/sdkconfig:749 CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY was replaced with CONFIG_ESP_SLEEP_WAIT_FLASH_READY_EXTRA_DELAY
Compiler supported targets: xtensa-esp32-elf

-- 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: /tools/python_env/idf5.1_py3.11_env/bin/python (found version "3.11.6") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "ACCESSRUN_ATS_FIRMWARE" version: 1.1.0
-- Adding linker script /project/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Adding linker script /project/build/esp-idf/ar_ulp_reset/ulp_ar_ulp_reset/ulp_ar_ulp_reset.ld
-- Components: access_request app_trace app_update ar-access-req ar-cfg-page ar-config ar-log ar-mqtt ar-wifi ar_relay ar_ulp_reset bootloader bootloader_support bsp bt cmock console crypt_ar cxx driver efuse emergency_button error_check_ar esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_client_ar esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos gpi_ar gpio_ext gpio_user hal heap http_ar http_parser http_parser_ar i2c id_bio idf_test ieee802154 json json_utils log lwip main mbedtls memory_tracer mqtt network newlib nfc nvs_flash openthread ota partition_table perfmon protobuf-c protocomm pthread qr_code_ar remote_board remote_relay remote_relay_array request requests_ar sdmmc secboard soc spi spi_flash spiffs sys_control task_monitor_ar task_tracker tcp_transport telemetry uart_ar_esp32 ulp unity usb utils utils_ar vcnl4040 vfs w5100 watchdog_ar wear_levelling webserver_ar wifi_provisioning wpa_supplicant xtensa
-- Component paths: /project/components/access_request /esp-idf/components/app_trace /esp-idf/components/app_update /project/components/ar-access-req /project/components/ar-cfg-page /project/components/ar-config /project/components/ar-log /project/components/ar-mqtt /project/components/ar-wifi /project/components/ar_relay /project/components/ar_ulp_reset /esp-idf/components/bootloader /esp-idf/components/bootloader_support /project/components/bsp /esp-idf/components/bt /esp-idf/components/cmock /esp-idf/components/console /project/components/crypt_ar /esp-idf/components/cxx /esp-idf/components/driver /esp-idf/components/efuse /project/components/emergency_button /project/components/error_check_ar /esp-idf/components/esp-tls /esp-idf/components/esp_adc /esp-idf/components/esp_app_format /esp-idf/components/esp_coex /esp-idf/components/esp_common /esp-idf/components/esp_eth /esp-idf/components/esp_event /esp-idf/components/esp_gdbstub /esp-idf/components/esp_hid /esp-idf/components/esp_http_client /project/components/esp_http_client_ar /esp-idf/components/esp_http_server /esp-idf/components/esp_https_ota /esp-idf/components/esp_https_server /esp-idf/components/esp_hw_support /esp-idf/components/esp_lcd /esp-idf/components/esp_local_ctrl /esp-idf/components/esp_mm /esp-idf/components/esp_netif /esp-idf/components/esp_netif_stack /esp-idf/components/esp_partition /esp-idf/components/esp_phy /esp-idf/components/esp_pm /esp-idf/components/esp_psram /esp-idf/components/esp_ringbuf /esp-idf/components/esp_rom /esp-idf/components/esp_system /esp-idf/components/esp_timer /esp-idf/components/esp_wifi /esp-idf/components/espcoredump /esp-idf/components/esptool_py /esp-idf/components/fatfs /esp-idf/components/freertos /project/components/gpi_ar /project/components/gpio_ext /project/components/gpio_user /esp-idf/components/hal /esp-idf/components/heap /project/components/http_ar /esp-idf/components/http_parser /project/components/http_parser_ar /project/components/i2c /project/components/id_bio /esp-idf/components/idf_test /esp-idf/components/ieee802154 /esp-idf/components/json /project/components/json_utils /esp-idf/components/log /esp-idf/components/lwip /project/main /esp-idf/components/mbedtls /project/components/memory_tracer /esp-idf/components/mqtt /project/components/network /esp-idf/components/newlib /project/components/nfc /esp-idf/components/nvs_flash /esp-idf/components/openthread /project/components/ota /esp-idf/components/partition_table /esp-idf/components/perfmon /esp-idf/components/protobuf-c /esp-idf/components/protocomm /esp-idf/components/pthread /project/components/qr_code_ar /project/components/remote_board /project/components/remote_relay /project/components/remote_relay_array /project/components/request /project/components/requests_ar /esp-idf/components/sdmmc /project/components/secboard /esp-idf/components/soc /project/components/spi /esp-idf/components/spi_flash /esp-idf/components/spiffs /project/components/sys_control /project/components/task_monitor_ar /project/components/task_tracker /esp-idf/components/tcp_transport /project/components/telemetry /project/components/uart_ar_esp32 /esp-idf/components/ulp /esp-idf/components/unity /esp-idf/components/usb /project/components/utils /project/components/utils_ar /project/components/vcnl4040 /esp-idf/components/vfs /project/components/w5100 /project/components/watchdog_ar /esp-idf/components/wear_levelling /project/components/webserver_ar /esp-idf/components/wifi_provisioning /esp-idf/components/wpa_supplicant /esp-idf/components/xtensa
-- Configuring done (2.2s)
-- Generating done (0.3s)
-- Build files have been written to: /project/build
Running ninja in directory /project/build
Executing "ninja all"...
[202/1343] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0xd000,16K,
otadata,data,ota,0x11000,8K,
phy_init,data,phy,0x13000,4K,
ota_0,app,ota_0,0x20000,1600K,
ota_1,app,ota_1,0x1b0000,1600K,
coredump,data,coredump,0x340000,64K,
*******************************************************************************
[689/1343] Performing configure step for 'ulp_ar_ulp_reset'-- Found Git: /usr/bin/git (found version "2.40.1") 
-- The ASM compiler identification is GNU
-- Found assembler: /tools/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin/esp32ulp-elf-as
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Building ULP app ulp_ar_ulp_reset
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /project/build/esp-idf/ar_ulp_reset/ulp_ar_ulp_reset
[1335/1343] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.40.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - 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: /tools/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /project/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- 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 /esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- App "bootloader" version: v5.1.2-691-g7380f96017
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /esp-idf/components/bootloader/subproject/main/ld/esp32/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 soc spi_flash xtensa
-- Component paths: /esp-idf/components/bootloader /esp-idf/components/bootloader_support /esp-idf/components/efuse /esp-idf/components/esp_app_format /esp-idf/components/esp_common /esp-idf/components/esp_hw_support /esp-idf/components/esp_rom /esp-idf/components/esp_system /esp-idf/components/esptool_py /esp-idf/components/freertos /esp-idf/components/hal /esp-idf/components/log /esp-idf/components/bootloader/subproject/main /esp-idf/components/bootloader/subproject/components/micro-ecc /esp-idf/components/newlib /esp-idf/components/partition_table /esp-idf/components/soc /esp-idf/components/spi_flash /esp-idf/components/xtensa
-- Configuring done (1.1s)
-- Generating done (0.0s)
-- Build files have been written to: /project/build/bootloader
[103/104] Generating binary image from built executableesptool.py v4.7.0
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated /project/build/bootloader/bootloader.bin
[104/104] cd /project/build/bootloader/esp-idf/esptool_py && /tools/python_env/idf5.1_py3.11_env/bin/python /esp-idf/components/partition_table/check_sizes.py --offset 0xc000 bootloader 0x1000 /project/build/bootloader/bootloader.binBootloader binary size 0x5410 bytes. 0x5bf0 bytes (52%) free.
[1341/1343] Linking CXX executable ACCESSRUN_ATS_FIRMWARE.elfFAILED: ACCESSRUN_ATS_FIRMWARE.elf 
: && /tools/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=/project/build/ACCESSRUN_ATS_FIRMWARE.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 -T ulp_ar_ulp_reset.ld CMakeFiles/ACCESSRUN_ATS_FIRMWARE.elf.dir/project_elf_src_esp32.c.obj -o ACCESSRUN_ATS_FIRMWARE.elf -L/esp-idf/components/soc/esp32/ld   -L/esp-idf/components/esp_rom/esp32/ld   -L/project/build/esp-idf/esp_system/ld   -L/esp-idf/components/esp_phy/lib/esp32   -L/esp-idf/components/esp_coex/lib/esp32   -L/esp-idf/components/esp_wifi/lib/esp32   -L/esp-idf/components/bt/controller/lib_esp32/esp32   -L/project/build/esp-idf/ar_ulp_reset/ulp_ar_ulp_reset 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/ulp/libulp.a  esp-idf/wifi_provisioning/libwifi_provisioning.a  esp-idf/main/libmain.a  esp-idf/http_parser_ar/libhttp_parser_ar.a  esp-idf/task_monitor_ar/libtask_monitor_ar.a  esp-idf/task_tracker/libtask_tracker.a  esp-idf/utils/libutils.a  esp-idf/utils_ar/libutils_ar.a  esp-idf/ar-config/libar-config.a  esp-idf/gpio_ext/libgpio_ext.a  esp-idf/json_utils/libjson_utils.a  esp-idf/ar_ulp_reset/libar_ulp_reset.a  esp-idf/watchdog_ar/libwatchdog_ar.a  esp-idf/webserver_ar/libwebserver_ar.a  esp-idf/ar-mqtt/libar-mqtt.a  esp-idf/spi/libspi.a  esp-idf/w5100/libw5100.a  esp-idf/network/libnetwork.a  esp-idf/telemetry/libtelemetry.a  esp-idf/ar-cfg-page/libar-cfg-page.a  esp-idf/sys_control/libsys_control.a  esp-idf/error_check_ar/liberror_check_ar.a  esp-idf/memory_tracer/libmemory_tracer.a  esp-idf/esp_http_client_ar/libesp_http_client_ar.a  esp-idf/http_ar/libhttp_ar.a  esp-idf/i2c/libi2c.a  esp-idf/remote_board/libremote_board.a  esp-idf/remote_relay/libremote_relay.a  esp-idf/ar_relay/libar_relay.a  esp-idf/gpi_ar/libgpi_ar.a  esp-idf/emergency_button/libemergency_button.a  esp-idf/gpio_user/libgpio_user.a  esp-idf/ota/libota.a  esp-idf/vcnl4040/libvcnl4040.a  esp-idf/secboard/libsecboard.a  esp-idf/requests_ar/librequests_ar.a  esp-idf/uart_ar_esp32/libuart_ar_esp32.a  esp-idf/id_bio/libid_bio.a  esp-idf/request/librequest.a  esp-idf/nfc/libnfc.a  esp-idf/crypt_ar/libcrypt_ar.a  esp-idf/qr_code_ar/libqr_code_ar.a  esp-idf/access_request/libaccess_request.a  esp-idf/ar-access-req/libar-access-req.a  esp-idf/ar-wifi/libar-wifi.a  esp-idf/remote_relay_array/libremote_relay_array.a  esp-idf/app_trace/libapp_trace.a  esp-idf/app_trace/libapp_trace.a  esp-idf/cmock/libcmock.a  esp-idf/unity/libunity.a  esp-idf/esp_hid/libesp_hid.a  esp-idf/esp_lcd/libesp_lcd.a  esp-idf/esp_local_ctrl/libesp_local_ctrl.a  esp-idf/espcoredump/libespcoredump.a  esp-idf/fatfs/libfatfs.a  esp-idf/wear_levelling/libwear_levelling.a  esp-idf/sdmmc/libsdmmc.a  esp-idf/perfmon/libperfmon.a  esp-idf/spiffs/libspiffs.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/nfc/libnfc.a  esp-idf/crypt_ar/libcrypt_ar.a  esp-idf/qr_code_ar/libqr_code_ar.a  esp-idf/webserver_ar/libwebserver_ar.a  esp-idf/spi/libspi.a  esp-idf/w5100/libw5100.a  esp-idf/network/libnetwork.a  esp-idf/telemetry/libtelemetry.a  esp-idf/ar-cfg-page/libar-cfg-page.a  esp-idf/sys_control/libsys_control.a  esp-idf/error_check_ar/liberror_check_ar.a  esp-idf/memory_tracer/libmemory_tracer.a  esp-idf/http_ar/libhttp_ar.a  esp-idf/i2c/libi2c.a  esp-idf/remote_board/libremote_board.a  esp-idf/remote_relay/libremote_relay.a  esp-idf/ar_relay/libar_relay.a  esp-idf/emergency_button/libemergency_button.a  esp-idf/gpio_user/libgpio_user.a  esp-idf/vcnl4040/libvcnl4040.a  esp-idf/secboard/libsecboard.a  esp-idf/requests_ar/librequests_ar.a  esp-idf/uart_ar_esp32/libuart_ar_esp32.a  esp-idf/id_bio/libid_bio.a  esp-idf/request/librequest.a  esp-idf/webserver_ar/libwebserver_ar.a  esp-idf/spi/libspi.a  esp-idf/w5100/libw5100.a  esp-idf/network/libnetwork.a  esp-idf/telemetry/libtelemetry.a  esp-idf/ar-cfg-page/libar-cfg-page.a  esp-idf/sys_control/libsys_control.a  esp-idf/error_check_ar/liberror_check_ar.a  esp-idf/memory_tracer/libmemory_tracer.a  esp-idf/http_ar/libhttp_ar.a  esp-idf/i2c/libi2c.a  esp-idf/remote_board/libremote_board.a  esp-idf/remote_relay/libremote_relay.a  esp-idf/ar_relay/libar_relay.a  esp-idf/emergency_button/libemergency_button.a  esp-idf/gpio_user/libgpio_user.a  esp-idf/vcnl4040/libvcnl4040.a  esp-idf/secboard/libsecboard.a  esp-idf/requests_ar/librequests_ar.a  esp-idf/uart_ar_esp32/libuart_ar_esp32.a  esp-idf/id_bio/libid_bio.a  esp-idf/request/librequest.a  esp-idf/json_utils/libjson_utils.a  esp-idf/json/libjson.a  esp-idf/http_parser_ar/libhttp_parser_ar.a  esp-idf/esp_http_client_ar/libesp_http_client_ar.a  esp-idf/utils_ar/libutils_ar.a  esp-idf/gpio_ext/libgpio_ext.a  esp-idf/gpi_ar/libgpi_ar.a  esp-idf/watchdog_ar/libwatchdog_ar.a  esp-idf/ar_ulp_reset/libar_ulp_reset.a  esp-idf/task_tracker/libtask_tracker.a  esp-idf/utils/libutils.a  esp-idf/task_monitor_ar/libtask_monitor_ar.a  esp-idf/ar-mqtt/libar-mqtt.a  esp-idf/mqtt/libmqtt.a  esp-idf/ar-config/libar-config.a  esp-idf/ota/libota.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/ulp/libulp.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a  esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a  /esp-idf/components/esp_coex/lib/esp32/libcoexist.a  /esp-idf/components/esp_wifi/lib/esp32/libcore.a  /esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /esp-idf/components/esp_wifi/lib/esp32/libpp.a  /esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /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/ulp/libulp.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a  esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a  /esp-idf/components/esp_coex/lib/esp32/libcoexist.a  /esp-idf/components/esp_wifi/lib/esp32/libcore.a  /esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /esp-idf/components/esp_wifi/lib/esp32/libpp.a  /esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /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/ulp/libulp.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a  esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a  /esp-idf/components/esp_coex/lib/esp32/libcoexist.a  /esp-idf/components/esp_wifi/lib/esp32/libcore.a  /esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /esp-idf/components/esp_wifi/lib/esp32/libpp.a  /esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /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/ulp/libulp.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a  esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a  /esp-idf/components/esp_coex/lib/esp32/libcoexist.a  /esp-idf/components/esp_wifi/lib/esp32/libcore.a  /esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /esp-idf/components/esp_wifi/lib/esp32/libpp.a  /esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /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/ulp/libulp.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a  esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a  /esp-idf/components/esp_coex/lib/esp32/libcoexist.a  /esp-idf/components/esp_wifi/lib/esp32/libcore.a  /esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /esp-idf/components/esp_wifi/lib/esp32/libpp.a  /esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /esp-idf/components/esp_wifi/lib/esp32/libwapi.a  /esp-idf/components/xtensa/esp32/libxt_hal.a  -u esp_app_desc  -u pthread_include_pthread_impl  -u pthread_include_pthread_cond_var_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  -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 && :
/tools/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: /esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x0): undefined reference to `btdm_rf_bb_reg_init'
/tools/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: /esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x16): undefined reference to `btdm_rf_bb_reg_init'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /project/build/log/idf_py_stderr_output_7550 and /project/build/log/idf_py_stdout_output_7550

try to build examples/bluetooth/nimble/bleprph_wifi_coex for esp32, if build failed, paste the full log here too.

It succeeded.

checkout idf to db1e54a, run git submodule update and build your app again

Now it works. Seems we're having opposite results. Check below.

$ cd $IDF_PATH && git submodule deinit --all -f && git checkout db1e54a && git submodule update --init --recursive --recommend-shallow && cd - && idf.py fullclean all
Cleared directory 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
Submodule 'components/bootloader/subproject/components/micro-ecc/micro-ecc' (../../kmackay/micro-ecc.git) unregistered for path 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
Cleared directory 'components/bt/controller/lib_esp32'
Submodule 'components/bt/controller/lib_esp32' (../../espressif/esp32-bt-lib.git) unregistered for path 'components/bt/controller/lib_esp32'
Cleared directory 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib'
Submodule 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib' (../../espressif/esp32c2-bt-lib.git) unregistered for path 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib'
Cleared directory 'components/bt/controller/lib_esp32c3_family'
Submodule 'components/bt/controller/lib_esp32c3_family' (../../espressif/esp32c3-bt-lib.git) unregistered for path 'components/bt/controller/lib_esp32c3_family'
Cleared directory 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib'
Submodule 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib' (../../espressif/esp32c6-bt-lib.git) unregistered for path 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib'
Cleared directory 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib'
Submodule 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib' (../../espressif/esp32h2-bt-lib.git) unregistered for path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib'
Cleared directory 'components/bt/host/nimble/nimble'
Submodule 'components/bt/host/nimble/nimble' (../../espressif/esp-nimble.git) unregistered for path 'components/bt/host/nimble/nimble'
Cleared directory 'components/cmock/CMock'
Submodule 'components/cmock/CMock' (../../ThrowTheSwitch/CMock.git) unregistered for path 'components/cmock/CMock'
Cleared directory 'components/esp_coex/lib'
Submodule 'components/esp_coex/lib' (../../espressif/esp-coex-lib.git) unregistered for path 'components/esp_coex/lib'
Cleared directory 'components/esp_phy/lib'
Submodule 'components/esp_phy/lib' (../../espressif/esp-phy-lib.git) unregistered for path 'components/esp_phy/lib'
Cleared directory 'components/esp_wifi/lib'
Submodule 'components/esp_wifi/lib' (../../espressif/esp32-wifi-lib.git) unregistered for path 'components/esp_wifi/lib'
Cleared directory 'components/heap/tlsf'
Submodule 'components/heap/tlsf' (../../espressif/tlsf.git) unregistered for path 'components/heap/tlsf'
Cleared directory 'components/json/cJSON'
Submodule 'components/json/cJSON' (../../DaveGamble/cJSON.git) unregistered for path 'components/json/cJSON'
Cleared directory 'components/lwip/lwip'
Submodule 'components/lwip/lwip' (../../espressif/esp-lwip.git) unregistered for path 'components/lwip/lwip'
Cleared directory 'components/mbedtls/mbedtls'
Submodule 'components/mbedtls/mbedtls' (../../espressif/mbedtls.git) unregistered for path 'components/mbedtls/mbedtls'
Cleared directory 'components/mqtt/esp-mqtt'
Submodule 'components/mqtt/esp-mqtt' (../../espressif/esp-mqtt.git) unregistered for path 'components/mqtt/esp-mqtt'
Cleared directory 'components/openthread/lib'
Submodule 'components/openthread/lib' (../../espressif/esp-thread-lib.git) unregistered for path 'components/openthread/lib'
Cleared directory 'components/openthread/openthread'
Submodule 'components/openthread/openthread' (../../espressif/openthread.git) unregistered for path 'components/openthread/openthread'
Cleared directory 'components/protobuf-c/protobuf-c'
Submodule 'components/protobuf-c/protobuf-c' (../../protobuf-c/protobuf-c.git) unregistered for path 'components/protobuf-c/protobuf-c'
Cleared directory 'components/spiffs/spiffs'
Submodule 'components/spiffs/spiffs' (../../pellepl/spiffs.git) unregistered for path 'components/spiffs/spiffs'
Cleared directory 'components/unity/unity'
Submodule 'components/unity/unity' (../../ThrowTheSwitch/Unity.git) unregistered for path 'components/unity/unity'
Note: switching to 'db1e54a0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at db1e54a0c5 Merge branch 'fix/esp32h2_rssi_positive_issue_5.1' into 'release/v5.1'
Submodule 'components/bootloader/subproject/components/micro-ecc/micro-ecc' (git@github.com:kmackay/micro-ecc.git) registered for path 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
Submodule 'components/bt/controller/lib_esp32' (git@github.com:espressif/esp32-bt-lib.git) registered for path 'components/bt/controller/lib_esp32'
Submodule 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib' (git@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' (git@github.com:espressif/esp32c3-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c3_family'
Submodule 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib' (git@github.com:espressif/esp32c6-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib'
Submodule 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib' (git@github.com:espressif/esp32h2-bt-lib.git) registered for path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib'
Submodule 'components/bt/host/nimble/nimble' (git@github.com:espressif/esp-nimble.git) registered for path 'components/bt/host/nimble/nimble'
Submodule 'components/cmock/CMock' (git@github.com:ThrowTheSwitch/CMock.git) registered for path 'components/cmock/CMock'
Submodule 'components/esp_coex/lib' (git@github.com:espressif/esp-coex-lib.git) registered for path 'components/esp_coex/lib'
Submodule 'components/esp_phy/lib' (git@github.com:espressif/esp-phy-lib.git) registered for path 'components/esp_phy/lib'
Submodule 'components/esp_wifi/lib' (git@github.com:espressif/esp32-wifi-lib.git) registered for path 'components/esp_wifi/lib'
Submodule 'components/heap/tlsf' (git@github.com:espressif/tlsf.git) registered for path 'components/heap/tlsf'
Submodule 'components/ieee802154/lib' (git@github.com:espressif/esp-ieee802154-lib.git) registered for path 'components/ieee802154/lib'
Submodule 'components/json/cJSON' (git@github.com:DaveGamble/cJSON.git) registered for path 'components/json/cJSON'
Submodule 'components/lwip/lwip' (git@github.com:espressif/esp-lwip.git) registered for path 'components/lwip/lwip'
Submodule 'components/mbedtls/mbedtls' (git@github.com:espressif/mbedtls.git) registered for path 'components/mbedtls/mbedtls'
Submodule 'components/mqtt/esp-mqtt' (git@github.com:espressif/esp-mqtt.git) registered for path 'components/mqtt/esp-mqtt'
Submodule 'components/openthread/lib' (git@github.com:espressif/esp-thread-lib.git) registered for path 'components/openthread/lib'
Submodule 'components/openthread/openthread' (git@github.com:espressif/openthread.git) registered for path 'components/openthread/openthread'
Submodule 'components/protobuf-c/protobuf-c' (git@github.com:protobuf-c/protobuf-c.git) registered for path 'components/protobuf-c/protobuf-c'
Submodule 'components/spiffs/spiffs' (git@github.com:pellepl/spiffs.git) registered for path 'components/spiffs/spiffs'
Submodule 'components/unity/unity' (git@github.com:ThrowTheSwitch/Unity.git) registered for path 'components/unity/unity'
Submodule path 'components/bootloader/subproject/components/micro-ecc/micro-ecc': checked out '24c60e243580c7868f4334a1ba3123481fe1aa48'
Submodule path 'components/bt/controller/lib_esp32': checked out '7ef2b1dffc6f1f7845013980aa136bfe76ce5af0'
Submodule path 'components/bt/controller/lib_esp32c2/esp32c2-bt-lib': checked out '909c8bca55acdcbba1c32620482a7d1a10c28a07'
Submodule path 'components/bt/controller/lib_esp32c3_family': checked out '393ac4c33b419226aac9d1e8f1b5d553b7f3bc97'
Submodule path 'components/bt/controller/lib_esp32c6/esp32c6-bt-lib': checked out 'c832dbc04d6894a380fe7b92c303602a5241ef16'
Submodule path 'components/bt/controller/lib_esp32h2/esp32h2-bt-lib': checked out '49a90d0ad509a1ec95fcacfc67d578a97de4c1ee'
Submodule path 'components/bt/host/nimble/nimble': checked out 'c3e0414b280911c5be56896d5159f6e54a0a52b4'
Submodule path 'components/cmock/CMock': checked out 'eeecc49ce8af123cf8ad40efdb9673e37b56230f'
Submodule path 'components/esp_coex/lib': checked out '667353cc7a0520924135ce50b798f495cd308e47'
Submodule path 'components/esp_phy/lib': checked out '98617ae683c7456706c7de6e27b7f0355c77dc9b'
Submodule path 'components/esp_wifi/lib': checked out 'efd78a6ea06829988a335b1914b5399fdef191f1'
Submodule path 'components/heap/tlsf': checked out 'd2e28f872472ffc6a704faae65ddee1f24e2dfba'
Submodule path 'components/ieee802154/lib': checked out '102b03c8095de8a337c293f79dce189be63186f3'
Submodule path 'components/json/cJSON': checked out 'cb8693b058ba302f4829ec6d03f609ac6f848546'
Submodule path 'components/lwip/lwip': checked out '542ba2997f6cc14fe9c3d781bf9b0d890cd70bb1'
Submodule path 'components/mbedtls/mbedtls': checked out 'dd91f30058dfad68d80267cc82cd8472c4aa54b5'
Submodule path 'components/mqtt/esp-mqtt': checked out 'e6afdb4025fe018ae0add44e3c45249ea1974774'
Submodule path 'components/openthread/lib': checked out 'e0969fc15c1991d91446a0dc5e4625ed2c0bb014'
Submodule path 'components/openthread/openthread': checked out '41ef80717f4b757440125932723cc8721ef42f7f'
Submodule path 'components/protobuf-c/protobuf-c': checked out 'abc67a11c6db271bedbb9f58be85d6f4e2ea8389'
Submodule path 'components/spiffs/spiffs': checked out '0dbb3f71c5f6fae3747a9d935372773762baf852'
Submodule path 'components/unity/unity': checked out '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25'
/project
Executing action: fullclean
Executing action: remove_managed_components
Executing action: all (aliases: build)
Running cmake in directory /project/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/python_env/idf5.1_py3.11_env/bin/python -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 /project"...
-- IDF_TARGET is not set, guessed 'esp32' from sdkconfig '/project/sdkconfig'
-- Found Git: /usr/bin/git (found version "2.40.1") 
-- Component directory /project/components/config_ar does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - 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: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /project/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- 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: /python_env/idf5.1_py3.11_env/bin/python (found version "3.11.6") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "ACCESSRUN_ATS_FIRMWARE" version: 1.1.0
-- Adding linker script /project/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Adding linker script /project/build/esp-idf/ar_ulp_reset/ulp_ar_ulp_reset/ulp_ar_ulp_reset.ld
-- Components: access_request app_trace app_update ar-access-req ar-cfg-page ar-config ar-log ar-mqtt ar-wifi ar_relay ar_ulp_reset bootloader bootloader_support bsp bt cmock console crypt_ar cxx driver efuse emergency_button error_check_ar esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_client_ar esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos gpi_ar gpio_ext gpio_user hal heap http_ar http_parser http_parser_ar i2c id_bio idf_test ieee802154 json json_utils log lwip main mbedtls memory_tracer mqtt network newlib nfc nvs_flash openthread ota partition_table perfmon protobuf-c protocomm pthread qr_code_ar remote_board remote_relay remote_relay_array request requests_ar sdmmc secboard soc spi spi_flash spiffs sys_control task_monitor_ar task_tracker tcp_transport telemetry uart_ar_esp32 ulp unity usb utils utils_ar vcnl4040 vfs w5100 watchdog_ar wear_levelling webserver_ar wifi_provisioning wpa_supplicant xtensa
-- Component paths: /project/components/access_request /esp-idf/components/app_trace /esp-idf/components/app_update /project/components/ar-access-req /project/components/ar-cfg-page /project/components/ar-config /project/components/ar-log /project/components/ar-mqtt /project/components/ar-wifi /project/components/ar_relay /project/components/ar_ulp_reset /esp-idf/components/bootloader /esp-idf/components/bootloader_support /project/components/bsp /esp-idf/components/bt /esp-idf/components/cmock /esp-idf/components/console /project/components/crypt_ar /esp-idf/components/cxx /esp-idf/components/driver /esp-idf/components/efuse /project/components/emergency_button /project/components/error_check_ar /esp-idf/components/esp-tls /esp-idf/components/esp_adc /esp-idf/components/esp_app_format /esp-idf/components/esp_coex /esp-idf/components/esp_common /esp-idf/components/esp_eth /esp-idf/components/esp_event /esp-idf/components/esp_gdbstub /esp-idf/components/esp_hid /esp-idf/components/esp_http_client /project/components/esp_http_client_ar /esp-idf/components/esp_http_server /esp-idf/components/esp_https_ota /esp-idf/components/esp_https_server /esp-idf/components/esp_hw_support /esp-idf/components/esp_lcd /esp-idf/components/esp_local_ctrl /esp-idf/components/esp_mm /esp-idf/components/esp_netif /esp-idf/components/esp_netif_stack /esp-idf/components/esp_partition /esp-idf/components/esp_phy /esp-idf/components/esp_pm /esp-idf/components/esp_psram /esp-idf/components/esp_ringbuf /esp-idf/components/esp_rom /esp-idf/components/esp_system /esp-idf/components/esp_timer /esp-idf/components/esp_wifi /esp-idf/components/espcoredump /esp-idf/components/esptool_py /esp-idf/components/fatfs /esp-idf/components/freertos /project/components/gpi_ar /project/components/gpio_ext /project/components/gpio_user /esp-idf/components/hal /esp-idf/components/heap /project/components/http_ar /esp-idf/components/http_parser /project/components/http_parser_ar /project/components/i2c /project/components/id_bio /esp-idf/components/idf_test /esp-idf/components/ieee802154 /esp-idf/components/json /project/components/json_utils /esp-idf/components/log /esp-idf/components/lwip /project/main /esp-idf/components/mbedtls /project/components/memory_tracer /esp-idf/components/mqtt /project/components/network /esp-idf/components/newlib /project/components/nfc /esp-idf/components/nvs_flash /esp-idf/components/openthread /project/components/ota /esp-idf/components/partition_table /esp-idf/components/perfmon /esp-idf/components/protobuf-c /esp-idf/components/protocomm /esp-idf/components/pthread /project/components/qr_code_ar /project/components/remote_board /project/components/remote_relay /project/components/remote_relay_array /project/components/request /project/components/requests_ar /esp-idf/components/sdmmc /project/components/secboard /esp-idf/components/soc /project/components/spi /esp-idf/components/spi_flash /esp-idf/components/spiffs /project/components/sys_control /project/components/task_monitor_ar /project/components/task_tracker /esp-idf/components/tcp_transport /project/components/telemetry /project/components/uart_ar_esp32 /esp-idf/components/ulp /esp-idf/components/unity /esp-idf/components/usb /project/components/utils /project/components/utils_ar /project/components/vcnl4040 /esp-idf/components/vfs /project/components/w5100 /project/components/watchdog_ar /esp-idf/components/wear_levelling /project/components/webserver_ar /esp-idf/components/wifi_provisioning /esp-idf/components/wpa_supplicant /esp-idf/components/xtensa
-- Configuring done (2.4s)
-- Generating done (0.3s)
-- Build files have been written to: /project/build
Running ninja in directory /project/build
Executing "ninja all"...
[244/1343] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0xd000,16K,
otadata,data,ota,0x11000,8K,
phy_init,data,phy,0x13000,4K,
ota_0,app,ota_0,0x20000,1600K,
ota_1,app,ota_1,0x1b0000,1600K,
coredump,data,coredump,0x340000,64K,
*******************************************************************************
[1228/1343] Performing configure step for 'ulp_ar_ulp_reset'-- Found Git: /usr/bin/git (found version "2.40.1") 
-- The ASM compiler identification is GNU
-- Found assembler: /tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin/esp32ulp-elf-as
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Building ULP app ulp_ar_ulp_reset
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /project/build/esp-idf/ar_ulp_reset/ulp_ar_ulp_reset
[1335/1343] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.40.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - 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: /tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /project/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- 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 /esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- App "bootloader" version: v5.1.2-602-gdb1e54a0c5
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /esp-idf/components/bootloader/subproject/main/ld/esp32/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 soc spi_flash xtensa
-- Component paths: /esp-idf/components/bootloader /esp-idf/components/bootloader_support /esp-idf/components/efuse /esp-idf/components/esp_app_format /esp-idf/components/esp_common /esp-idf/components/esp_hw_support /esp-idf/components/esp_rom /esp-idf/components/esp_system /esp-idf/components/esptool_py /esp-idf/components/freertos /esp-idf/components/hal /esp-idf/components/log /esp-idf/components/bootloader/subproject/main /esp-idf/components/bootloader/subproject/components/micro-ecc /esp-idf/components/newlib /esp-idf/components/partition_table /esp-idf/components/soc /esp-idf/components/spi_flash /esp-idf/components/xtensa
-- Configuring done (1.4s)
-- Generating done (0.0s)
-- Build files have been written to: /project/build/bootloader
[103/104] Generating binary image from built executableesptool.py v4.7.0
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated /project/build/bootloader/bootloader.bin
[104/104] cd /project/build/bootloader/esp-idf/esptool_py && /python_env/idf5.1_py3.11_env/bin/python /esp-idf/components/partition_table/check_sizes.py --offset 0xc000 bootloader 0x1000 /project/build/bootloader/bootloader.binBootloader binary size 0x5410 bytes. 0x5bf0 bytes (52%) free.
[1342/1343] Generating binary image from built executableesptool.py v4.7.0
Creating esp32 image...
Merged 27 ELF sections
Successfully created esp32 image.
Generated /project/build/ACCESSRUN_ATS_FIRMWARE.bin
[1343/1343] cd /project/build/esp-idf/esptool_py && /python_env/idf5.1_py3.11_env/bin/python /esp-id...s.py --offset 0xc000 partition --type app /project/build/partition_table/partition-table.bin /project/build/ACCESSRUN_ATS_FIRMWARE.binACCESSRUN_ATS_FIRMWARE.bin binary size 0xefed0 bytes. Smallest app partition is 0x190000 bytes. 0xa0130 bytes (40%) free.

Project build complete. To flash, run this command:
/python_env/idf5.1_py3.11_env/bin/python ../esp_idf/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 921600 --before default_reset --after no_reset --chip esp32  write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x1000 build/bootloader/bootloader.bin 0xc000 build/partition_table/partition-table.bin 0x11000 build/ota_data_initial.bin 0x20000 build/ACCESSRUN_ATS_FIRMWARE.bin
or run 'idf.py -p /dev/ttyUSB0 flash'

@esp-lrh
Copy link
Collaborator

esp-lrh commented Feb 8, 2024

Hi, @KaeLL
This issue is caused by circular dependency between coexist lib and bluetooth lib.

Are you enable wifi and bluetooth in menuconfig, but only initialize wifi? (I can reproduce this issue in such scenarios)

To fix this issue, you can

  • Initialize bluetooth too.

or

We will fix this issue in subsequent versions, thanks for your report.

@KaeLL
Copy link
Contributor Author

KaeLL commented Feb 8, 2024

Are you enable wifi and bluetooth in menuconfig, but only initialize wifi? (I can reproduce this issue in such scenarios)

Yes.

We will fix this issue in subsequent versions, thanks for your report.

You're welcome.

@KaeLL
Copy link
Contributor Author

KaeLL commented Feb 15, 2024

@esp-lrh have you got an ETA for this? What about the backports?

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: In Progress Work is in progress labels Feb 19, 2024
@esp-lrh
Copy link
Collaborator

esp-lrh commented Feb 19, 2024

@KaeLL Master branch need one or two days, backports need additional days.

@RoKu-HTS
Copy link

RoKu-HTS commented May 2, 2024

Hi, @KaeLL This issue is caused by circular dependency between coexist lib and bluetooth lib.

Are you enable wifi and bluetooth in menuconfig, but only initialize wifi? (I can reproduce this issue in such scenarios)

To fix this issue, you can

* Initialize bluetooth too.

or

* Apply the following patch
  [fix-circular-dependency-issue-on-esp32.PATCH](https://github.com/espressif/esp-idf/files/14204426/fix-circular-dependency-issue-on-esp32.PATCH)

We will fix this issue in subsequent versions, thanks for your report.

Hey @esp-lrh, What do you exactly mean by "Initialize Bluetooth too" and what would be the minimal code to achieve this?

@esp-lrh
Copy link
Collaborator

esp-lrh commented May 7, 2024

Hi, @RoKu-HTS
This issue has been fixed.

About "Initialize Bluetooth too":
The reason for this bug is that the user enable WIFI and BT in the sdkconfig, but did not call any BT functions, so the functions in the BT lib could not be found during linking coexist module. if user want to use BT, initialize BT will workaround this issue, if not, just disable BT in sdkconfig, this issue will not occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

6 participants