-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Open
Open
Copy link
Labels
Area: BLEIssues related to BLEIssues related to BLE
Description
Board
ESP32-P4 DevKit
Device Description
ESP32-P4 DevKit with onboard ESP-Hosted Wi-Fi/Bluetooth co-processor
Hardware Configuration
default
Version
v3.3.0
Type
Bug
IDE Name
Arduino CLI
Operating System
Debian Linux
Flash frequency
default
PSRAM enabled
yes
Upload speed
115200
Description
Build of both BLE and SimpleBLE libraries examples for P4 target gives a failure
Sketch
libraries/BLE/examples/Server/Server.ino
libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino
Debug Message
For BLE/examples/Server/Server.ino
-----------------------------------
Compiling sketch...
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/riscv32-esp-elf-g++ -MMD -c @/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/flags/cpp_flags -w -Os -Werror=return-type -DF_CPU=360000000L -DARDUINO=10607 -DARDUINO_ESP32P4_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32P4_DEV\"" "-DARDUINO_VARIANT=\"esp32p4\"" -DARDUINO_PARTITION_no_fs "-DARDUINO_HOST_OS=\"linux\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32p4:PartitionScheme=no_fs,CDCOnBoot=cdc,USBMode=hwcdc,PSRAM=enabled\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/flags/defines -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server -iprefix /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/include/ @/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/flags/includes -I/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/qio_qspi/include -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/cores/esp32 -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/variants/esp32p4 -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/src @/tmp/arduino/build_opt.h @/tmp/arduino/file_opts /tmp/arduino/sketch/Server.ino.cpp -o /tmp/arduino/sketch/Server.ino.cpp.o
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino: In function 'void setup()':
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:21:3: error: 'BLEDevice' has not been declared
21 | BLEDevice::init("Long name works now");
| ^~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:22:3: error: 'BLEServer' was not declared in this scope; did you mean 'Server'?
22 | BLEServer *pServer = BLEDevice::createServer();
| ^~~~~~~~~
| Server
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:22:14: error: 'pServer' was not declared in this scope; did you mean 'Server'?
22 | BLEServer *pServer = BLEDevice::createServer();
| ^~~~~~~
| Server
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:22:24: error: 'BLEDevice' has not been declared
22 | BLEServer *pServer = BLEDevice::createServer();
| ^~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:23:3: error: 'BLEService' was not declared in this scope
23 | BLEService *pService = pServer->createService(SERVICE_UUID);
| ^~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:23:15: error: 'pService' was not declared in this scope
23 | BLEService *pService = pServer->createService(SERVICE_UUID);
| ^~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:24:3: error: 'BLECharacteristic' was not declared in this scope
24 | BLECharacteristic *pCharacteristic =
| ^~~~~~~~~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:24:22: error: 'pCharacteristic' was not declared in this scope
24 | BLECharacteristic *pCharacteristic =
| ^~~~~~~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:25:57: error: 'BLECharacteristic' is not a class, namespace, or enumeration
25 | pService->createCharacteristic(CHARACTERISTIC_UUID, BLECharacteristic::PROPERTY_READ | BLECharacteristic::PROPERTY_WRITE);
| ^~~~~~~~~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:25:92: error: 'BLECharacteristic' is not a class, namespace, or enumeration
25 | pService->createCharacteristic(CHARACTERISTIC_UUID, BLECharacteristic::PROPERTY_READ | BLECharacteristic::PROPERTY_WRITE);
| ^~~~~~~~~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:30:3: error: 'BLEAdvertising' was not declared in this scope
30 | BLEAdvertising *pAdvertising = BLEDevice::getAdvertising();
| ^~~~~~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:30:19: error: 'pAdvertising' was not declared in this scope
30 | BLEAdvertising *pAdvertising = BLEDevice::getAdvertising();
| ^~~~~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:30:34: error: 'BLEDevice' has not been declared
30 | BLEAdvertising *pAdvertising = BLEDevice::getAdvertising();
| ^~~~~~~~~
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE/examples/Server/Server.ino:35:3: error: 'BLEDevice' has not been declared
35 | BLEDevice::startAdvertising();
| ^~~~~~~~~
Using library BLE at version 3.3.0 in folder: /home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE
Used library Version Path
BLE 3.3.0 /home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/BLE
Used platform Version Path
esp32:esp32 3.3.0 /home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0
Error during build: exit status 1
For SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino
-------------------------------------------------------------
/home/codespace/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/riscv32-esp-elf-g++ -c @/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/flags/cpp_flags -w -Os -Werror=return-type -w -x c++ -E -CC -DF_CPU=360000000L -DARDUINO=10607 -DARDUINO_ESP32P4_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32P4_DEV" -DARDUINO_VARIANT="esp32p4" -DARDUINO_PARTITION_no_fs -DARDUINO_HOST_OS="linux" -DARDUINO_FQBN="esp32:esp32:esp32p4:PartitionScheme=no_fs,CDCOnBoot=cdc,USBMode=hwcdc,PSRAM=enabled" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/flags/defines -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/SimpleBLE/examples/SimpleBleDevice -iprefix /home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/include/ @/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/flags/includes -I/home/codespace/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.5-b66b5448-v1/esp32p4/qio_qspi/include -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/cores/esp32 -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/variants/esp32p4 -I/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/SimpleBLE/src @/tmp/arduino/build_opt.h @/tmp/arduino/file_opts /tmp/arduino/sketch/SimpleBleDevice.ino.cpp -o /tmp/4037344591/sketch_merged.cpp
/home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino:22:2: error: #error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
22 | #error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
| ^~~~~
Using library SimpleBLE at version 3.3.0 in folder: /home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/SimpleBLE
Used library Version Path
SimpleBLE 3.3.0 /home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/SimpleBLE
Used platform Version Path
esp32:esp32 3.3.0 /home/codespace/.arduino15/packages/esp32/hardware/esp32/3.3.0
Error during build: exit status 1
Other Steps to Reproduce
$ arduino-cli core install esp32:esp32@3.3.0
$ export BOARD=esp32:esp32:esp32p4:PartitionScheme=no_fs,CDCOnBoot=cdc,USBMode=hwcdc,PSRAM=enabled
$ cd ~/.arduino15/packages/esp32/hardware/esp32/3.3.0/libraries/
$ arduino-cli compile -v --build-path=/tmp/arduino -b "$BOARD" BLE/examples/Server/
$ arduino-cli compile -v --build-path=/tmp/arduino -b "$BOARD" SimpleBLE/examples/SimpleBleDevice/
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Area: BLEIssues related to BLEIssues related to BLE