A2lm24
November 18, 2023, 6:51pm
#1
When I try to use the ESP32-BLE-MIDI library sample sketch on my XIAO ESP32S3, I can pair it, but it keeps connecting and disconnecting randomly. Moreover, no notes are sent.
The following is the message output to the serial monitor ↓
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4204f662
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
Initializing bluetooth
Waiting for connections…
I’m translating from Japanese, so there may be some sentence errors, sorry.
A2lm24
November 19, 2023, 4:32pm
#2
https://wiki.seeedstudio.com/xiao_esp32s3_bluetooth/
The BLE server/client code listed here also did not execute correctly.
//Server Code
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b"
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8"
void setup() {
Serial.begin(115200);
Serial.println("Starting BLE work!");
BLEDevice::init("XIAO_ESP32S3");
BLEServer *pServer = BLEDevice::createServer();
BLEService *pService = pServer->createService(SERVICE_UUID);
BLECharacteristic *pCharacteristic = pService->createCharacteristic(
CHARACTERISTIC_UUID,
BLECharacteristic::PROPERTY_READ |
BLECharacteristic::PROPERTY_WRITE
);
pCharacteristic->setValue("Hello World");
pService->start();
// BLEAdvertising *pAdvertising = pServer->getAdvertising(); // this still is working for backward compatibility
BLEAdvertising *pAdvertising = BLEDevice::getAdvertising();
pAdvertising->addServiceUUID(SERVICE_UUID);
pAdvertising->setScanResponse(true);
pAdvertising->setMinPreferred(0x06); // functions that help with iPhone connections issue
pAdvertising->setMinPreferred(0x12);
BLEDevice::startAdvertising();
Serial.println("Characteristic defined! Now you can read it in your phone!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(2000);
}
I used the nRF Connect app on Android, but could not connect.
Below is the statement output to the serial monitor and a screenshot of the nRF Connect app.
Starting BLE work!
Characteristic defined! Now you can read it in your phone!
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x42092f86
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
Starting BLE work!
Characteristic defined! Now you can read it in your phone!
Hi there,
I was able to download your code and compile and run it no issue’s
I could connect with Nrf Desktop & mobile app.
Both allowed me to connect and read the Hello world Text.
I suspect it’s your device or compiled LIB’s
Here’s some output
FQBN: esp32:esp32:XIAO_ESP32S3
Using board 'XIAO_ESP32S3' from platform in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14
Using core 'esp32' from platform in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14
cmd /c if exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\partitions.csv" COPY /y "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\partitions.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\partitions.csv"
cmd /c if not exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\partitions.csv" if exist "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\variants\\XIAO_ESP32S3\\partitions.csv" COPY "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\variants\\XIAO_ESP32S3\\partitions.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\partitions.csv"
cmd /c if not exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\partitions.csv" COPY "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\tools\\partitions\\default_8MB.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\partitions.csv"
cmd /c IF EXIST "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\bootloader.bin" ( COPY /y "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\bootloader.bin" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\sketch_nov19a.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\variants\\XIAO_ESP32S3\\bootloader.bin" ( COPY "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\variants\\XIAO_ESP32S3\\bootloader.bin" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\sketch_nov19a.ino.bootloader.bin" ) ELSE ( "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.5.1/esptool.exe" --chip esp32s3 elf2image --flash_mode dio --flash_freq 80m --flash_size 8MB -o "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\sketch_nov19a.ino.bootloader.bin" "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\tools\\sdk\\esp32s3\\bin\\bootloader_qio_80m.elf" ) )
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
cmd /c if exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\build_opt.h" COPY /y "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\build_opt.h" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\build_opt.h"
cmd /c if not exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\build_opt.h" type nul > "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\build_opt.h"
cmd /c type nul > "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/file_opts"
Detecting libraries used...
C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32s3-elf-g++ -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE -DIDF_VER="v4.4.6-dirty" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/newlib/platform_include -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/freertos/include -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/freertos/include/esp_additions/freertos -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/freertos/port/xtensa/include -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/freertos/include/esp_additions -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/include -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/include/soc -IC:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/include/soc/esp32s3 -IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/include/soc" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/include/soc/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/port/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_hw_support/port/esp32s3/private_include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/heap/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/log/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/lwip/include/apps" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/lwip/include/apps/sntp" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/lwip/lwip/src/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/lwip/port/esp32/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/lwip/port/esp32/include/arch" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/soc/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/soc/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/soc/esp32s3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/hal/esp32s3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/hal/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/hal/platform_port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_rom/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_rom/include/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_rom/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_common/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_system/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_system/port/soc" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_system/port/public_compat" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/xtensa/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/xtensa/esp32s3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/driver/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/driver/esp32s3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_pm/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_ringbuf/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/efuse/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/efuse/esp32s3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/vfs/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_wifi/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_event/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_netif/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_eth/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/tcpip_adapter/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_phy/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_phy/esp32s3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_ipc/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/app_trace/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_timer/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/mbedtls/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/mbedtls/mbedtls/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/mbedtls/esp_crt_bundle/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/app_update/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/spi_flash/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bootloader_support/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/nvs_flash/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/pthread/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_gdbstub/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_gdbstub/xtensa" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_gdbstub/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/espcoredump/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/espcoredump/include/port/xtensa" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/wpa_supplicant/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/wpa_supplicant/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/wpa_supplicant/esp_supplicant/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/ieee802154/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/console" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/asio/asio/asio/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/asio/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/common/osi/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/include/esp32c3/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/common/api/include/api" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/common/btc/profile/esp/blufi/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/common/btc/profile/esp/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/host/bluedroid/api/include/api" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_common/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_common/tinycrypt/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_core" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_core/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_core/storage" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/btc/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_models/common/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_models/client/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_models/server/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/api/core/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/api/models/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/bt/esp_ble_mesh/api" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/cbor/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/unity/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/unity/unity/src" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/cmock/CMock/src" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/coap/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/coap/libcoap/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/nghttp/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/nghttp/nghttp2/lib/includes" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp-tls" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp-tls/esp-tls-crypto" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_adc_cal/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_hid/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/tcp_transport/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_http_client/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_http_server/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_https_ota/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_https_server/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_lcd/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_lcd/interface" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/protobuf-c/protobuf-c" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/protocomm/include/common" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/protocomm/include/security" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/protocomm/include/transports" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/mdns/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_local_ctrl/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/sdmmc/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_serial_slave_link/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_websocket_client/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/expat/expat/expat/lib" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/expat/port/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/wear_levelling/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/fatfs/diskio" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/fatfs/vfs" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/fatfs/src" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/freemodbus/freemodbus/common/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/idf_test/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/idf_test/include/esp32s3" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/jsmn/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/json/cJSON" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/libsodium/libsodium/src/libsodium/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/libsodium/port_include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/mqtt/esp-mqtt/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/openssl/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/perfmon/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/spiffs/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/usb/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/ulp/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/wifi_provisioning/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/rmaker_common/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_diagnostics/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/rtc_store/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_insights/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/json_parser/upstream/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/json_parser/upstream" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/json_generator/upstream" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_schedule/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/espressif__esp_secure_cert_mgr/include" "-IC:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/sdk/esp32s3/include/esp_rainmaker/include" "--lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls_2 -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls_2 -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls_2 -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls_2 -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lphy -lbtbb -lesp_phy -lphy -lbtbb -lesp_phy -lphy -lbtbb -lxt_hal -lc -lm -lnewlib -lstdc++ -lpthread -lgcc -lcxx -Wl,--end-group -Wl,-EL -o "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.elf"
"C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.5.1/esptool.exe" --chip esp32s3 elf2image --flash_mode dio --flash_freq 80m --flash_size 8MB --elf-sha256-offset 0xb0 -o
EDIT___ for brevity___
"C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.bin" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.elf"
esptool.py v4.5.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
"C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/gen_esp32part.exe" -q "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/partitions.csv" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.partitions.bin"
cmd /c if exist "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271\\libraries\\Insights" "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14/tools/gen_insights_package.exe" "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271" sketch_nov19a.ino "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a"
cmd /c IF 0==1 COPY /y "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\openocd-esp32\\v0.12.0-esp32-20230419\\share\\openocd\\scripts\\board\\esp32s3-builtin.cfg" "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\debug.cfg"
cmd /c IF 0==1 COPY /y "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\tools\\ide-debug\\esp32s3.json" "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\debug_custom.json"
cmd /c IF 0==1 COPY /y "C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.14\\tools\\ide-debug\\svd\\esp32s3.svd" "C:\\Users\\Dude\\AppData\\Local\\Temp\\.arduinoIDE-unsaved20231019-6280-wjncis.o0ql\\sketch_nov19a\\debug.svd"
Multiple libraries were found for "BLEDevice.h"
Used: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BLE
Not used: D:\Arduino_projects\libraries\arduino-BLEPeripheral-master
Using library ESP32 BLE Arduino at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BLE
"C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32s3-elf-size" -A "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.elf"
Sketch uses 870469 bytes (26%) of program storage space. Maximum is 3342336 bytes.
Global variables use 43272 bytes (13%) of dynamic memory, leaving 284408 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1/esptool.exe" --chip esp32s3 --port "COM23" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 "C:\Users\Dude\AppData\Local\Temp\arduino\sketches\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.bootloader.bin" 0x8000 "C:\Users\Dude\AppData\Local\Temp\arduino\sketches\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.partitions.bin" 0xe000 "C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Dude\AppData\Local\Temp\arduino\sketches\DF59A27C3AD07973F64C9F66F8BB8271/sketch_nov19a.ino.bin"
esptool.py v4.5.1
Serial port COM23
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 84:fc:e6:6a:d0:f0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000e4fff...
Compressed 15104 bytes to 10399...
Writing at 0x00000000... (100 %)
Wrote 15104 bytes (10399 compressed) at 0x00000000 in 0.2 seconds (effective 508.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 571.9 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 770.4 kbit/s)...
Hash of data verified.
Compressed 870832 bytes to 526459...
HTH
GL PJ
1 Like
A2lm24
November 20, 2023, 5:47pm
#4
Thank you for your research!
I have been operating the nRF Connect app incorrectly, and I was able to check Hello World here as well!
However, I cannot pair it.
output
最大3342336バイトのフラッシュメモリのうち、スケッチが877209バイト(26%)を使っています。
最大327680バイトのRAMのうち、グローバル変数が43272バイト(13%)を使っていて、ローカル変数で284408バイト使うことができます。
esptool.py v4.5.1
Serial port COM11
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 34:85:18:8d:87:98
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.7s
Compressed 15104 bytes to 10399...
Writing at 0x00000000... (100 %)
Wrote 15104 bytes (10399 compressed) at 0x00000000 in 0.2 seconds (effective 739.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 958.9 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 1340.3 kbit/s)...
Hash of data verified.
Compressed 877568 bytes to 529786...
Writing at 0x00010000... (3 %)
Writing at 0x0001b370... (6 %)
Writing at 0x00028a9d... (9 %)
Writing at 0x0003619f... (12 %)
Writing at 0x00042c8a... (15 %)
Writing at 0x00048f47... (18 %)
Writing at 0x0004e549... (21 %)
Writing at 0x00053a39... (24 %)
Writing at 0x00059660... (27 %)
Writing at 0x0005ea33... (30 %)
Writing at 0x00063f09... (33 %)
Writing at 0x0006904f... (36 %)
Writing at 0x0006e352... (39 %)
Writing at 0x000742c0... (42 %)
Writing at 0x00079539... (45 %)
Writing at 0x0007f223... (48 %)
Writing at 0x00084c28... (51 %)
Writing at 0x0008a02c... (54 %)
Writing at 0x0008f97d... (57 %)
Writing at 0x000956d8... (60 %)
Writing at 0x0009c0b0... (63 %)
Writing at 0x000a18d9... (66 %)
Writing at 0x000a71a7... (69 %)
Writing at 0x000ac923... (72 %)
Writing at 0x000b1df7... (75 %)
Writing at 0x000b752f... (78 %)
Writing at 0x000bcea3... (81 %)
Writing at 0x000c323d... (84 %)
Writing at 0x000cb670... (87 %)
Writing at 0x000d3d84... (90 %)
Writing at 0x000d9225... (93 %)
Writing at 0x000de905... (96 %)
Writing at 0x000e4344... (100 %)
Wrote 877568 bytes (529786 compressed) at 0x00010000 in 5.5 seconds (effective 1288.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
serial monitor
Starting BLE work!
Characteristic defined! Now you can read it in your phone!
E (422995) BT_SMP: smp_calculate_link_key_from_long_term_key failed to update link_key. Sec Mode = 2, sm4 = 0x00
E (422995) BT_SMP: smp_derive_link_key_from_long_term_key failed
E (423001) BT_BTM: btm_proc_smp_cback received for unknown device
E (426008) BT_BTM: Device not found`
If you don’t mind, could you also try to reproduce the pairing part?
Thank you in advance.
Hi there, NO Not with that code it won’t. If you like, you can give the library from that fork a try. The download is here:
https://github.com/unknownconstant/ArduinoBLE/archive/refs/heads/master.zip
There’s no BLE Security Manager. that is needed to do bonding or pairing and the encryption in some cases, You can experiment with this LIB, probably get you the basic setup worked out.
here’s some background.
HTH
GL PJ
1 Like
A2lm24
November 21, 2023, 6:28pm
#6
It appears that I have a long way to go, and I appreciate your thoughtful advice. Thank you very much.
A2lm24
November 27, 2023, 4:30pm
#7
Resolved! Thank you very much.
How did you resolve it ? I have the same thing with ESP32C3