8000 ESP32-S3 crashes when a client subscribes to the Notify characteristic of the AccelerationService · Issue #9304 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
ESP32-S3 crashes when a client subscribes to the Notify characteristic of the AccelerationService #9304
Closed
@tyeth

Description

@tyeth

Sorry @tannewt I've not managed to get a good debug output as it goes straight to safemode, but when a debug build I didn't see that it just stalled and serial eventually disconnected.

I was testing on the LilyGo T-Display-S3 (as the 4mb flash builds dont have BLEIO), and then eventually on the ESP32v2 Feather (8mb Flash / 2mb PSRAM).
Testing against the Web Bluetooth Dashboard https://adafruit.github.io/Adafruit_WebBluetooth_Dashboard/ with an SHT3x (sht30/31/35 temp+humidity sensor but not required) or BMP280 worked fine, but not with an accelerometer.

The code example linked below has been adapted to optionally ignore all non-present sensors, and accept one of 3 accelerometers (lsm9ds1 or lsm303 or lsm6ds33)

Copied from discord #:
It's a reliable hard-fault 😄 Using an LSM303AGR (accelerometer) with the BLE Web Dashboard, hard fault as soon as it tries to start notifications from the AccelerationService, although I'm also seeing a console message claiming the web dashboard is attempting to update the measurement period which happens before notify start (I set it to 500 ms period instead of 100 in code so shouldn't be required, but maybe not part of broadcast info so writes desired value rather than read then write if incorrect).
Modified example to skip non-available sensors and have 3 Accelerometer options, https://github.com/tyeth/Adafruit_CircuitPython_BLE/blob/web-bluetooth-dashboard/examples/ble_bluefruit_web_dashboard.py, I'll try to capture more details before filing an issue.
BLE Web Dashboard: https://kind-decisive-paw.glitch.me/

Original learn guide: https://learn.adafruit.com/bluefruit-dashboard-web-bluetooth-chrome

Adafruit BLE Web Dashboard: https://adafruit.github.io/Adafruit_WebBluetooth_Dashboard/

Metadata

Metadata

Labels

blecrashespressifapplies to multiple Espressif chips

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0