Closed jori-nordic closed 7 months ago
I am not able to reproduce the assertion on nRF52833DK (not sure if nRF5240DK would be different).
Multiple advertising sets with chaining will have overlapping auxiliary chains due to missing implementation of timing reservations for the chains. (advertising chains is experimental in Zephyr Controller).
Here is a workaround to have non-overlapping auxiliary chain PDUs for your updates to broadcaster_multiple: 0001-Bluetooth-Controller-WA-for-chain-PDU-time-reservati.patch.txt
I use the additional kconfig options below for the samples/bluetooth/observer
sample to scan for the multiple extended advertising broadcasters as shown in the screenshot above:
CONFIG_BT_EXT_ADV=y
CONFIG_BT_BUF_EVT_RX_COUNT=10
CONFIG_BT_BUF_EVT_RX_SIZE=255
CONFIG_BT_EXT_SCAN_BUF_SIZE=1650
CONFIG_BT_CTLR_RX_BUFFERS=9
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=1650
Advertising PDU chaining is not supported, hence lowering the bug priority.
@jori-nordic Can you verify if #59824 fixes this?
@kruithofa not reproducible on today's master, closing.
@kruithofa spoke too soon:
Exiting main thread.
ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_aux.c:326
prepare_cb: Actual EVENT_OVERHEAD_START_US = 305
[00:42:10.265,045] <err> os: r0/a1: 0x00000003 r1/a2: 0x00000000 r2/a3: 0x00000002
[00:42:10.265,045] <err> os: r3/a4: 0x200006e8 r12/ip: 0x00000010 r14/lr: 0x00001503
[00:42:10.265,075] <err> os: xpsr: 0x41000011
[00:42:10.265,075] <err> os: Faulting instruction address (r15/pc): 0x0000150e
[00:42:10.265,106] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[00:42:10.265,136] <err> os: Fault during interrupt handling
[00:42:10.265,167] <err> os: Current thread: 0x20000df8 (unknown)
[00:42:10.671,997] <err> os: Halting system
so went from ~10s to assert to ~40mins
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
zephyr-v3.5.0
ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c:1044
prepare_cb: Actual EVENT_OVERHEAD_START_US = 65521
E: r0/a1: 0x00000003 r1/a2: 0x0000000f r2/a3: 0x00000020
E: r3/a4: 0x0003b879 r12/ip: 0x00000000 r14/lr: 0x00002263
E: xpsr: 0x61000028
E: Faulting instruction address (r15/pc): 0x0000226e
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
E: Fault during interrupt handling
@Oleh-Kravchenko could you provide details on how to reproduce?
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Describe the bug LL assert when controller uses aux adv chains. Happens after ~10s on real HW, not able to reproduce using BSIM. Note that the bsim test also has a bunch of problems:
To Reproduce Check out this commit https://github.com/jori-nordic/zephyr/tree/e4300c62c9181f8d540fa64fd3933955510f5b34/./ Build and run on a nRF52840 DK.
Logs and console output