From 1dc41840ad345bac1eb37dc24ccf993c7146ba3c Mon Sep 17 00:00:00 2001 From: "Michael.B" Date: Sun, 26 Apr 2026 14:35:06 +0800 Subject: [PATCH] fix(examples): enlarge BT example partitions for esp32s31 CI builds build_non_test_related_apps failed on esp32s31: Bluedroid_GATT_Server and ble_spp_client binaries exceeded the default 1MiB factory partition; esp_hid_host with sdkconfig.ci.test exceeded 1.5MiB single-app-large. Use PARTITION_TABLE_SINGLE_APP_LARGE for the Bluedroid examples. For esp_hid_host, switch to a custom single-factory table with a 1700KiB app slot (same size unit as partitions_two_ota_large.csv). --- .../bluedroid/Bluedroid_GATT_Server/sdkconfig.defaults | 1 + .../bluedroid/ble/ble_spp_client/sdkconfig.defaults | 1 + examples/bluetooth/esp_hid_host/partitions.csv | 5 +++++ examples/bluetooth/esp_hid_host/sdkconfig.defaults | 3 ++- 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 examples/bluetooth/esp_hid_host/partitions.csv diff --git a/examples/bluetooth/ble_get_started/bluedroid/Bluedroid_GATT_Server/sdkconfig.defaults b/examples/bluetooth/ble_get_started/bluedroid/Bluedroid_GATT_Server/sdkconfig.defaults index 73d84284854..8942978335d 100644 --- a/examples/bluetooth/ble_get_started/bluedroid/Bluedroid_GATT_Server/sdkconfig.defaults +++ b/examples/bluetooth/ble_get_started/bluedroid/Bluedroid_GATT_Server/sdkconfig.defaults @@ -6,3 +6,4 @@ CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y # CONFIG_BT_LE_50_FEATURE_SUPPORT is not used on ESP32, ESP32-C3 and ESP32-S3. # CONFIG_BT_LE_50_FEATURE_SUPPORT is not set +CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y diff --git a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults index ad218785e70..687939940a3 100644 --- a/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults +++ b/examples/bluetooth/bluedroid/ble/ble_spp_client/sdkconfig.defaults @@ -6,3 +6,4 @@ CONFIG_BT_ENABLED=y CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y # CONFIG_BT_LE_50_FEATURE_SUPPORT is not used on ESP32, ESP32-C3 and ESP32-S3. # CONFIG_BT_LE_50_FEATURE_SUPPORT is not set +CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y diff --git a/examples/bluetooth/esp_hid_host/partitions.csv b/examples/bluetooth/esp_hid_host/partitions.csv new file mode 100644 index 00000000000..411abe1fdc6 --- /dev/null +++ b/examples/bluetooth/esp_hid_host/partitions.csv @@ -0,0 +1,5 @@ +# Name, Type, SubType, Offset, Size, Flags +# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap +nvs, data, nvs, , 0x6000, +phy_init, data, phy, , 0x1000, +factory, app, factory, , 1700K, diff --git a/examples/bluetooth/esp_hid_host/sdkconfig.defaults b/examples/bluetooth/esp_hid_host/sdkconfig.defaults index d712b186d98..2accad5d7ec 100644 --- a/examples/bluetooth/esp_hid_host/sdkconfig.defaults +++ b/examples/bluetooth/esp_hid_host/sdkconfig.defaults @@ -7,4 +7,5 @@ CONFIG_BT_HID_ENABLED=y CONFIG_BT_HID_HOST_ENABLED=y CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y CONFIG_BT_GATTC_NOTIF_REG_MAX=16 -CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"