Skip to content

[3.3.7][ESP32-S3][BLE] TLSF assert on BLE startup (block_locate_free) on XIAO ESP32S3; 3.3.6 works #12357

Description

@TideGear

Board

XIAO_ESP32S3 (Seeed Studio XIAO ESP32S3)

Device Description

Seeed XIAO ESP32S3 running a BLE HID sketch (NimBLE + ESP32-BLE-CompositeHID).

Hardware Configuration

I2C devices attached: SSD1306 OLED on GPIO5/6 and LTR390 UV sensor on GPIO5/6. Push button on GPIO1. Optional battery sense divider on GPIO2.
Issue reproduces specifically when BLE is enabled.

Version

v3.3.7

Type

Bug

IDE Name

Arduino IDE 2.3.7

Operating System

Windows 10 (10.0.19045)

Flash frequency

80

PSRAM enabled

no

Upload speed

921600

Description

After updating Arduino ESP32 core from 3.3.6 to 3.3.7, BLE startup crashes reliably on Seeed XIAO ESP32S3 with:

assert failed: block_locate_free tlsf_control_functions.h:618 (block_size(block) >= *size)

Behavior is deterministic. Rolling back to 3.3.6 fixes the issue immediately with the same hardware, wiring, and sketch.

Expected:
BLE initializes normally and device runs.

Actual:
Device asserts/reboots during BLE bring-up.

Sketch

https://github.com/TideGear/BoktaiSensor

Debug Message

btdm: bss start 0x3fcef180, len 36
btdm: data start 0x3fcef174, data start rom 0x40057350, len 12
MAGIC fadebead VERSION 0001000a
MAGIC fadebead VERSION 00010001

assert failed: block_locate_free tlsf_control_functions.h:618 (block_size(block) >= *size)

Backtrace: 0x4038161d:0x3fcae150 0x403815e5:0x3fcae170 0x40387ba6:0x3fcae190 ...
ELF file SHA256: 7e6dd08ea
Rebooting...

Other Steps to Reproduce

  1. Install esp32 core 3.3.7 in Arduino IDE.
  2. Select XIAO_ESP32S3 and upload BLE-enabled sketch.
  3. Open Serial Monitor at 115200.
  4. Observe immediate TLSF assert during BLE startup.

Control test:

  • Same exact setup + core 3.3.6 -> no crash.

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions