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

IDF 5.4 release version failed to build libbtdm_app.a for ESP32S3, cannot link (IDFGH-14476) #15249

Open
3 tasks done
aircable opened this issue Jan 21, 2025 · 3 comments
Open
3 tasks done
Assignees
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@aircable
Copy link

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.

IDF version.

v5.4-300-gc8bb53292d

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

Compiling Bluetooth apps for the ESP32S3 target should succeed.

What is the actual behavior?

At the end of the build I get this error:
xtensa-esp-elf/bin/ld: cannot find -lbtdm_app: No such file or directory

Turns out, the files in the ESP-IDF are missing, they have not been compiled for the ESP32S3 target:

components/bt/controller/lib_esp32c3_family/esp32c3/libbtdm_app_flash.a
...esp32c3/libbtdm_app.a
...esp32s3/libbtdm_app.a
...esp32s3/libbtdm_app_flash.a

My previous version v5.4-dev-4375-gf420609c33 does create these files and the link succeeds.

Steps to reproduce.

use a Bluetooth app from the example
idf.py set-target esp32s3
idf.py build
error in linker

Build or installation Logs.

`xtensa-esp-elf/bin/ld: cannot find -lbtdm_app: No such file or directory`

More Information.

Does not work on 5.4 release, does not work on 5.5 master (different error)

@aircable aircable added the Type: Bug bugs in IDF label Jan 21, 2025
@github-actions github-actions bot changed the title IDF 5.4 release version failed to build libbtdm_app.a for ESP32S3, cannot link IDF 5.4 release version failed to build libbtdm_app.a for ESP32S3, cannot link (IDFGH-14476) Jan 21, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 21, 2025
@esp-zhp
Copy link
Collaborator

esp-zhp commented Jan 23, 2025

(base) zhanghaipeng@FA002031:~/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server$ git log
commit c8bb532 (HEAD)
Merge: cf1692c f96a118
Author: Mahavir Jain [email protected]
Date: Mon Jan 13 15:57:45 2025 +0800

Merge branch 'fix/return_esp_err_t_for_httpd_req_get_url_query_str_v5.4' into 'release/v5.4'

feat(https_server): Added checks to verify if uri is empty (v5.4)

See merge request espressif/esp-idf!36286

commit cf1692c
Merge: c6637ae 605fb6e
Author: morris [email protected]
Date: Mon Jan 13 15:12:26 2025 +0800

Merge branch 'bugfix/reset_axi_gdma_gracefully_v5.4' into 'release/v5.4'

fix(gdma): stop the axi gdma gracefully on CPU SW reset (v5.4)

See merge request espressif/esp-idf!36283

commit c6637ae
Merge: 1ceb4e4 3f4dd2b
Author: Rahul Tank [email protected]
Date: Mon Jan 13 13:24:50 2025 +0800
(base) zhanghaipeng@FA002031:~/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server$ idf.py set-target esp32s3;idf.py build
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Executing action: set-target
Set Target to: esp32s3, new sdkconfig will be created.
Running cmake in directory /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/zhanghaipeng/.espressif/python_env/idf5.4_py3.11_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server"...
-- Existing sdkconfig '/home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig' renamed to '/home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.old'.
-- Found Git: /usr/bin/git (found version "2.17.1")
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-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: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig
Loading defaults file /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults...
warning: unknown kconfig symbol 'BT_LE_50_FEATURE_SUPPORT' assigned to 'n' in /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults
Loading defaults file /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3...
warning: unknown kconfig symbol 'BT_LE_50_FEATURE_SUPPORT' assigned to 'n' in /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3
-- Compiler supported targets: xtensa-esp-elf
-- Found Python3: /home/zhanghaipeng/.espressif/python_env/idf5.4_py3.11_env/bin/python (found version "3.11.4") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "gatt_server_demos" version: v5.4-300-gc8bb53292d
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.bt_funcs.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_security esp_system esp_timer esp_vfs_console esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table perfmon protobuf-c protocomm pthread rt sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /home/zhanghaipeng/esp/esp-idf/components/app_trace /home/zhanghaipeng/esp/esp-idf/components/app_update /home/zhanghaipeng/esp/esp-idf/components/bootloader /home/zhanghaipeng/esp/esp-idf/components/bootloader_support /home/zhanghaipeng/esp/esp-idf/components/bt /home/zhanghaipeng/esp/esp-idf/components/cmock /home/zhanghaipeng/esp/esp-idf/components/console /home/zhanghaipeng/esp/esp-idf/components/cxx /home/zhanghaipeng/esp/esp-idf/components/driver /home/zhanghaipeng/esp/esp-idf/components/efuse /home/zhanghaipeng/esp/esp-idf/components/esp-tls /home/zhanghaipeng/esp/esp-idf/components/esp_adc /home/zhanghaipeng/esp/esp-idf/components/esp_app_format /home/zhanghaipeng/esp/esp-idf/components/esp_bootloader_format /home/zhanghaipeng/esp/esp-idf/components/esp_coex /home/zhanghaipeng/esp/esp-idf/components/esp_common /home/zhanghaipeng/esp/esp-idf/components/esp_driver_ana_cmpr /home/zhanghaipeng/esp/esp-idf/components/esp_driver_cam /home/zhanghaipeng/esp/esp-idf/components/esp_driver_dac /home/zhanghaipeng/esp/esp-idf/components/esp_driver_gpio /home/zhanghaipeng/esp/esp-idf/components/esp_driver_gptimer /home/zhanghaipeng/esp/esp-idf/components/esp_driver_i2c /home/zhanghaipeng/esp/esp-idf/components/esp_driver_i2s /home/zhanghaipeng/esp/esp-idf/components/esp_driver_isp /home/zhanghaipeng/esp/esp-idf/components/esp_driver_jpeg /home/zhanghaipeng/esp/esp-idf/components/esp_driver_ledc /home/zhanghaipeng/esp/esp-idf/components/esp_driver_mcpwm /home/zhanghaipeng/esp/esp-idf/components/esp_driver_parlio /home/zhanghaipeng/esp/esp-idf/components/esp_driver_pcnt /home/zhanghaipeng/esp/esp-idf/components/esp_driver_ppa /home/zhanghaipeng/esp/esp-idf/components/esp_driver_rmt /home/zhanghaipeng/esp/esp-idf/components/esp_driver_sdio /home/zhanghaipeng/esp/esp-idf/components/esp_driver_sdm /home/zhanghaipeng/esp/esp-idf/components/esp_driver_sdmmc /home/zhanghaipeng/esp/esp-idf/components/esp_driver_sdspi /home/zhanghaipeng/esp/esp-idf/components/esp_driver_spi /home/zhanghaipeng/esp/esp-idf/components/esp_driver_touch_sens /home/zhanghaipeng/esp/esp-idf/components/esp_driver_tsens /home/zhanghaipeng/esp/esp-idf/components/esp_driver_uart /home/zhanghaipeng/esp/esp-idf/components/esp_driver_usb_serial_jtag /home/zhanghaipeng/esp/esp-idf/components/esp_eth /home/zhanghaipeng/esp/esp-idf/components/esp_event /home/zhanghaipeng/esp/esp-idf/components/esp_gdbstub /home/zhanghaipeng/esp/esp-idf/components/esp_hid /home/zhanghaipeng/esp/esp-idf/components/esp_http_client /home/zhanghaipeng/esp/esp-idf/components/esp_http_server /home/zhanghaipeng/esp/esp-idf/components/esp_https_ota /home/zhanghaipeng/esp/esp-idf/components/esp_https_server /home/zhanghaipeng/esp/esp-idf/components/esp_hw_support /home/zhanghaipeng/esp/esp-idf/components/esp_lcd /home/zhanghaipeng/esp/esp-idf/components/esp_local_ctrl /home/zhanghaipeng/esp/esp-idf/components/esp_mm /home/zhanghaipeng/esp/esp-idf/components/esp_netif /home/zhanghaipeng/esp/esp-idf/components/esp_netif_stack /home/zhanghaipeng/esp/esp-idf/components/esp_partition /home/zhanghaipeng/esp/esp-idf/components/esp_phy /home/zhanghaipeng/esp/esp-idf/components/esp_pm /home/zhanghaipeng/esp/esp-idf/components/esp_psram /home/zhanghaipeng/esp/esp-idf/components/esp_ringbuf /home/zhanghaipeng/esp/esp-idf/components/esp_rom /home/zhanghaipeng/esp/esp-idf/components/esp_security /home/zhanghaipeng/esp/esp-idf/components/esp_system /home/zhanghaipeng/esp/esp-idf/components/esp_timer /home/zhanghaipeng/esp/esp-idf/components/esp_vfs_console /home/zhanghaipeng/esp/esp-idf/components/esp_wifi /home/zhanghaipeng/esp/esp-idf/components/espcoredump /home/zhanghaipeng/esp/esp-idf/components/esptool_py /home/zhanghaipeng/esp/esp-idf/components/fatfs /home/zhanghaipeng/esp/esp-idf/components/freertos /home/zhanghaipeng/esp/esp-idf/components/hal /home/zhanghaipeng/esp/esp-idf/components/heap /home/zhanghaipeng/esp/esp-idf/components/http_parser /home/zhanghaipeng/esp/esp-idf/components/idf_test /home/zhanghaipeng/esp/esp-idf/components/ieee802154 /home/zhanghaipeng/esp/esp-idf/components/json /home/zhanghaipeng/esp/esp-idf/components/log /home/zhanghaipeng/esp/esp-idf/components/lwip /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/main /home/zhanghaipeng/esp/esp-idf/components/mbedtls /home/zhanghaipeng/esp/esp-idf/components/mqtt /home/zhanghaipeng/esp/esp-idf/components/newlib /home/zhanghaipeng/esp/esp-idf/components/nvs_flash /home/zhanghaipeng/esp/esp-idf/components/nvs_sec_provider /home/zhanghaipeng/esp/esp-idf/components/openthread /home/zhanghaipeng/esp/esp-idf/components/partition_table /home/zhanghaipeng/esp/esp-idf/components/perfmon /home/zhanghaipeng/esp/esp-idf/components/protobuf-c /home/zhanghaipeng/esp/esp-idf/components/protocomm /home/zhanghaipeng/esp/esp-idf/components/pthread /home/zhanghaipeng/esp/esp-idf/components/rt /home/zhanghaipeng/esp/esp-idf/components/sdmmc /home/zhanghaipeng/esp/esp-idf/components/soc /home/zhanghaipeng/esp/esp-idf/components/spi_flash /home/zhanghaipeng/esp/esp-idf/components/spiffs /home/zhanghaipeng/esp/esp-idf/components/tcp_transport /home/zhanghaipeng/esp/esp-idf/components/touch_element /home/zhanghaipeng/esp/esp-idf/components/ulp /home/zhanghaipeng/esp/esp-idf/components/unity /home/zhanghaipeng/esp/esp-idf/components/usb /home/zhanghaipeng/esp/esp-idf/components/vfs /home/zhanghaipeng/esp/esp-idf/components/wear_levelling /home/zhanghaipeng/esp/esp-idf/components/wifi_provisioning /home/zhanghaipeng/esp/esp-idf/components/wpa_supplicant /home/zhanghaipeng/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build
Executing action: all (aliases: build)
Running ninja in directory /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build
Executing "ninja all"...
[10/1347] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:


ESP-IDF Partition Table

Name, Type, SubType, Offset, Size, Flags

nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,


[517/1347] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.17.1")
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-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: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.bt_funcs.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_security esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/zhanghaipeng/esp/esp-idf/components/bootloader /home/zhanghaipeng/esp/esp-idf/components/bootloader_support /home/zhanghaipeng/esp/esp-idf/components/efuse /home/zhanghaipeng/esp/esp-idf/components/esp_app_format /home/zhanghaipeng/esp/esp-idf/components/esp_bootloader_format /home/zhanghaipeng/esp/esp-idf/components/esp_common /home/zhanghaipeng/esp/esp-idf/components/esp_hw_support /home/zhanghaipeng/esp/esp-idf/components/esp_rom /home/zhanghaipeng/esp/esp-idf/components/esp_security /home/zhanghaipeng/esp/esp-idf/components/esp_system /home/zhanghaipeng/esp/esp-idf/components/esptool_py /home/zhanghaipeng/esp/esp-idf/components/freertos /home/zhanghaipeng/esp/esp-idf/components/hal /home/zhanghaipeng/esp/esp-idf/components/log /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/zhanghaipeng/esp/esp-idf/components/newlib /home/zhanghaipeng/esp/esp-idf/components/partition_table /home/zhanghaipeng/esp/esp-idf/components/soc /home/zhanghaipeng/esp/esp-idf/components/spi_flash /home/zhanghaipeng/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build/bootloader
[114/115] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build/bootloader/bootloader.bin
[115/115] cd /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blued.../bluetooth/bluedroid/ble/gatt_server/build/bootloader/bootloader.bin
Bootloader binary size 0x5210 bytes. 0x2df0 bytes (36%) free.
[1346/1347] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build/gatt_server_demos.bin
[1347/1347] cd /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blu...ples/bluetooth/bluedroid/ble/gatt_server/build/gatt_server_demos.bin
gatt_server_demos.bin binary size 0xb9cc0 bytes. Smallest app partition is 0x100000 bytes. 0x46340 bytes (27%) free.

Project build complete. To flash, run:
idf.py flash
or
idf.py -p PORT flash
or
python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/gatt_server_demos.bin
or from the "/home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/build" directory
python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
(base) zhanghaipeng@FA002031:~/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server$

@esp-zhp
Copy link
Collaborator

esp-zhp commented Jan 23, 2025

@aircable
It seems like there might be an issue with your IDF environment. Could you try reinstalling the IDF and testing again?
I didn't encounter any issues during compilation on my side. Above is the log from my compilation.

@chegewara
Copy link
Contributor

warning: unknown kconfig symbol 'BT_LE_50_FEATURE_SUPPORT' assigned to 'n' in /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32s3

which depends on

Direct dependencies (=y):
     BT_BLE_ENABLED(=y)
  && (BT_CONTROLLER_ENABLED(=y) && SOC_BLE_50_SUPPORTED(=y)) || BT_CONTROLLER_DISABLED(=n)  (=y)
  && BT_BLUEDROID_ENABLED(=y)

This log is suggesting that BT/BLE is disabled or misconfigured for some reason.
You should check menuconfig settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants