After updating from THREAD SDK 2.0 to SDK 3.1 I am getting NRF_ERROR_NO_MEM in nrf_sdh.c.
The project is based from the multiprotocol BLE thread dynamic example.
The code will run for hours then after a reboot during initialization when calling the otThreadSetEnabled function;
I get the message from line 391 in nrf_sdh.c NRF_ERROR_NO_MEM error;
Looking in the app_sched_event_put function it seems that the event_index value is not being changed from the default value.
I have increased the SCHED_QUEUE_SIZE define from 32 to 48 but the issue is still happening.
The BLE DFU is enabled in this code.
Once this happens the radio is bricked.
What would cause the app queue to be full so early in startup