Skip to content

[get-started/pipeline_a2dp_sink_and_hfp] [ESP-IDF v5.5.3][ESP-ADF v2.8] Build failed #1597

@liuxue0905

Description

@liuxue0905

Environment

  • Audio development kit: [ESP32-S3-BOX-3]
  • Audio kit version (ESP32-S3-BOX-3]
  • [Required] Module or chip used: [ESP32-S3-BOX-3]
  • [Required] IDF version:
% git describe --tags
v5.5.3   
  • [Required] ADF version:
% git describe --tags
v2.8
  • Build system: [VSCode get-started/pipeline_a2dp_sink_and_hfp Default Build system]
  • [Required] Running log: All logs from power-on to problem recurrence
  • Compiler version :
    xtensa-esp-elf-gcc (crosstool-NG esp-14.2.0_20251107) 14.2.0
  • Operating system: [macOS]
  • Using an IDE?: [VS Code]
  • Power supply: [USB]

Problem Description

get-started/pipeline_a2dp_sink_and_hfp Build failed.

[4/10] Completed 'bootloader'
ninja: build stopped: subcommand failed.
The terminal process "ninja" terminated with exit code: 1.

get-started/pipeline_tcp_client Build Success
get-started/play_mp3_control Build Success

Expected Behavior

build success

Actual Behavior

[4/10] Completed 'bootloader'
ninja: build stopped: subcommand failed.
The terminal process "ninja" terminated with exit code: 1.

Steps to Reproduce

  1. VS Code - Open Folder
  2. Select get-started/pipeline_a2dp_sink_and_hfp
  3. Select Current ESP-IDF Version: v5.5.3
  4. Set Device Target: esp32s3
  5. menuconfig did not change any thing, or chang Audio HAL to ESP32-S3-BOX-3, the error happened during build project, not after flash.
  6. Build Project

Code to Reproduce This Issue

get-started/pipeline_a2dp_sink_and_hfp did not change any code

Debug Logs

log1.txt

...
[122/123] Generating binary image from built executable
esptool.py v4.12.dev1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /Users/liuxue/dev/espressif/esp-adf-projects/examples/get-started/pipeline_a2dp_sink_and_hfp/build/bootloader/bootloader.bin
[123/123] cd /Users/liuxue/dev/espressif/esp-adf-projects/examples/get-started/pipeline_a2dp_sink_and_hfp/build/bootloader/esp-idf/esptool_py && /Users/liuxue/.espressif/python_env/idf5.5_py3.14_env/bin/python /Users/liuxue/esp/v5.5.3/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/liuxue/dev/espressif/esp-adf-projects/examples/get-started/pipeline_a2dp_sink_and_hfp/build/bootloader/bootloader.bin
Bootloader binary size 0x5160 bytes. 0x2ea0 bytes (36%) free.
ninja: build stopped: subcommand failed.

 *  The terminal process "ninja" terminated with exit code: 1. 

If i deleted the code related of PERIPH_BLUETOOTH_DISCONNECTED, Build failed did not solved:

            // if (msg.cmd == PERIPH_BLUETOOTH_DISCONNECTED) {
            //     ESP_LOGW(TAG, "[ * ] Bluetooth disconnected");
            //     break;
            // }
log2.txt

...
./../../../xtensa-esp-elf/bin/ld: /Users/liuxue/dev/espressif/esp-adf-projects/examples/get-started/pipeline_a2dp_sink_and_hfp/main/a2dp_sink_and_hfp_example.c:548:(.text.app_main+0x674): undefined reference to `bluetooth_service_destroy'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

 *  The terminal process "ninja" terminated with exit code: 1. 

log1.txt
log2.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions