Skip to content

Fix S3 startup due to ble_gap_adv_active crash#10858

Merged
tannewt merged 1 commit into
adafruit:mainfrom
tannewt:fix_esp32s3_startup
Feb 26, 2026
Merged

Fix S3 startup due to ble_gap_adv_active crash#10858
tannewt merged 1 commit into
adafruit:mainfrom
tannewt:fix_esp32s3_startup

Conversation

@tannewt
Copy link
Copy Markdown
Member

@tannewt tannewt commented Feb 26, 2026

ble_gap_adv_active() crashes now when BLE hasn't been init. This is likely due to internal memory allocations in esp-nimble.

So, check enabled before calling into it.

Fixes #10849

ble_gap_adv_active() crashes now when BLE hasn't been init. This is
likely due to internal memory allocations in esp-nimble.

So, check enabled before calling into it.

Fixes micropython#10849
@tannewt tannewt requested a review from dhalbert February 26, 2026 20:21
Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@tannewt tannewt merged commit aff6e32 into adafruit:main Feb 26, 2026
199 checks passed
@grgrant
Copy link
Copy Markdown

grgrant commented Feb 27, 2026

Fixed the crash I mentioned in comment to PR10850.

#10840 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metro ESP32-S3 crashes in BLE startup after ESP-IDF 5.5.3 update and recent Zephyr BLE changes

3 participants