esp-adf icon indicating copy to clipboard operation
esp-adf copied to clipboard

ESP32P4 Enable Bluetooth error (AUD-6314)

Open hbs2001 opened this issue 7 months ago • 1 comments

Environment

  • Audio development kit: ESP32-P4-Function-EV-Board
  • Audio kit version (for ESP32-LyraT/ESP32-LyraT-Mini/ESP32-S3-Korvo-2): 1.4
  • [Required] Module or chip used: ESP32-P4
  • [Required] IDF version (run git describe --tags in $IDF_PATH folder to find it): V5.4.1
  • [Required] ADF version (run git describe --tags in $ADF_PATH folder to find it): v2.7-67-g317d07e5
  • Build system: idf.py
  • [Required] Running log:
    buildlog.txt

All logs from power-on to problem recurrence

  • Compiler version (run xtensa-esp32-elf-gcc --version in your project folder to find it): esp-14.2.0_20241119
  • Operating system: Windows
  • (Windows only) Environment type: PowerShell
  • Using an IDE?: Yes (Trae)
  • Power supply: [USB]

Problem Description

I need to use the "esp-hosted-mcu" component to use BLE on the ESP32P4 platform. However, enabling Bluetooth in idf.py menconfig includes components like blufi in the esp_peripherals folder of adf, causing compilation errors.

Steps to Reproduce

In any ADF example, such as play_mp3_control_example

  1. set-target esp32p4
  2. idf.py menuconfig
  3. Enable Bluetooth
  4. idf.py build

Debug Logs

C:/Users/hbs/.espressif/esp-adf/components/wifi_service/blufi_config/blufi_security.c:41:10: fatal error: esp32/rom/crc.h: No such file or directory
   41 | #include "esp32/rom/crc.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

C:/Users/hbs/.espressif/esp-adf/components/wifi_service/blufi_config/blufi_config.c:41:10: fatal error: esp_bt.h: No such file or directory
   41 | #include "esp_bt.h"
      |          ^~~~~~~~~~
compilation terminated.
[28/193] Building C object esp-idf/audio_stream/CMakeFiles/__idf_audio_stream.dir/http_stream.c.obj
ninja: build stopped: subcommand failed.

hbs2001 avatar Apr 30 '25 09:04 hbs2001

@hbs2001 We have fixed a Bluetooth build error on 733c188165dfd9ed4cd501940eaedfaf0f378f8b, you can test it.

jason-mao avatar May 19 '25 03:05 jason-mao