Using nRF52840 DK with SoftDevice s140 latest version.
I have a data array that I am sending over a characteristic in fragments via notifications. Given the peer platform, each fragment has to fit in the minimum MTU so is 20 bytes. The bulk of the data array is a waveform. When the waveform contains 800 bytes (plus about 48 bytes overhead) the data array is successfully fragmented and sent. When I increase the data array to 1000 bytes (the calloc call for the data does not fail so I assume there is memory enough in the heap to handle it). However, when it comes time to send it, the application just hangs. I don't know where and don't understand why. The only thing I can think of is that there is some overwrite or there is a memory shortage and the calloc is not telling me.
Note that I am not using the SDK but just SoftDevice and I am handling the events in the main() for loop.
In debug mode I do get a "SOFTDEVICE: ASSERTION FAILED" from a case statement NRF_FAULT_ID_SD_ASSERT. But I do not understand the meaning of it. Documenation is, as usual, useless. No text at all for what the possible causes of these assertions are.