Skip to content

Bluetooth: Controller: fix split central crash and conn param update assert - #58

Merged
petejohanson merged 2 commits into
zmkfirmware:v4.1.0+zmk-fixesfrom
carrefinho:3370-split-ble-crash-fix
Aug 14, 2026
Merged

Bluetooth: Controller: fix split central crash and conn param update assert#58
petejohanson merged 2 commits into
zmkfirmware:v4.1.0+zmk-fixesfrom
carrefinho:3370-split-ble-crash-fix

Conversation

@carrefinho

@carrefinho carrefinho commented Aug 14, 2026

Copy link
Copy Markdown

Fixes the split central crash zmkfirmware/zmk#3370 was opened to diagnose (and thanks to the core dumps that made fixing this possible). Additionally cherry-picks upstream commit that fixes zmkfirmware/zmk#3331 since I ran into that crash also when trying to reproduce the former and the fix was tested with both commits.

Supersedes #51, same cherry-pick.

The bug has been possibly resolved upstream by a prepare deferred feature, so the solution here has no upstream value, and should be replaced by the prepare deferred feature when ZMK upgrades to Zephyr 4.4.

cvinayak and others added 2 commits August 12, 2026 08:30
Fix peripheral role assertion during connection update and
simultaneous flash operations.

prepare_cb: Actual EVENT_OVERHEAD_START_US = 6149

This happens due to instant latency at connection update
where the ticks_at_expire was in the past.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
(cherry picked from commit c4171be)
Fixes ZMK split central lockups caused by controller prepare pipeline overflow
@petejohanson
petejohanson merged commit 10ba6d0 into zmkfirmware:v4.1.0+zmk-fixes Aug 14, 2026
5 of 8 checks passed
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.

[Bug] BLE: Intermittent crash (lll_peripheral.c assertion) during Bluetooth re-pairing

3 participants