This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MPSL and timeslots using the radio fails with assert on nrf5340

Using latest master from NCS (61ed35f76bce079948aabb5bc752d7e0fd3a74b0).

I've modified the peripheral_lbs sample to request timeslots using mpsl (copied the example from samples/mpsl/timeslot) and changed the ble controller from zephyr to nordic ble_controller. The timeslot requests appears to work fine, but whenever I actually start the radio in my timeslot start event (TASKS_START= 1) I get an assert afterwards from the ble_controller:

BT_ERR("BleCtlr ASSERT: %s, %d", log_strdup(file), line);

where file is "../stack/libs/hal/src/hal_rcs.c" and line is 1543. 

As the mpsl is a binary, and the documentation is quite slim on how to actually implement this I would very much appreciate some help on how to proceed using the radio while in a MPSL timeslot - as well as what the assert above is actually complaining about.  The MPSL example in NCS is helpful in requesting timeslots, but it does not show any use of the radio peripheral. A simple skeleton show what needs to be done before the timeslot is closed etc would be very much appreciated. 

Related