Context
We are working on a project that implies advertising and scanning extended advertised packets.
details :
- NRF52840
- Zephyr SDK 17.0
- Zephyr 4.0.99
- NRF SDK v3.0.0-preview1
Issue description
Our application freeze after a few seconds of scanning. The logs show that the bt hci driver generates a large number of BT_HCI_EVT_LE_EXT_ADVERTISING_REPORT (0x0d) events (the number of events before the crash is not constant) and then we get an error, either mpsl_init: MPSL ASSERT: 112, 1984, or bt_sdc_hci_driver: SoftDevice Controller ASSERT: 50. Both cases it leads to an OS Hard fault. We are working in an office with a lot of devices advertising, so we tried to put the device in a Faraday box and observed that the bug happens immediately when we open the box and not before.
Theory
We think this might be a configuration issue and we spent some time trying to play with different buffer sizes but no relevant results.
More contexts:
BLE related configuration :
Scan enable function (return 0, and bt_enable(NULL) has returned 0 before that)
Our scan cb is empty, proving that the issue do directly come from the application but from on of the lower layer.
Captured logs: