esp-adf
esp-adf copied to clipboard
ESP32P4 Enable Bluetooth error (AUD-6314)
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 --tagsin $IDF_PATH folder to find it): V5.4.1 - [Required] ADF version (run
git describe --tagsin $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 --versionin 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
- set-target esp32p4
- idf.py menuconfig
- Enable Bluetooth
- 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 We have fixed a Bluetooth build error on 733c188165dfd9ed4cd501940eaedfaf0f378f8b, you can test it.