4 months, 1 week ago.
MBED crashes on reliable write (BLE)
Hi, we accidentaly used a wrong method to write data to one of our NRF52s, and that led to a crash of mbed. We can just use the right method and everything works as expected, but we dont want the program to crash on any case, even if somebody writes wrong data to us.
I created a very small program to reproduce the error and its very strange, because Im not using a single event, its all just stack / internal handling thats going on, but still MBED crashes. Maybe I found a bug in the BLE stack?
this is a sniff of the crashing write, mbed crashes right after packet 1373.
here a sniff of the working write procedure:
you can reproduce the problem, I will add sniffer screenshots as well as the test program. /media/uploads/Jwoerner/mbed_reliablewritecrashtest.cpp
4 months ago.
We had an issue related to BLE_GATTS_OP_EXEC_WRITE_REQ_NOW, which accesses an invalid memory address and may cause Hard Fault like what you have.
This issue has been fixed in Mbed OS 5.11.1 by below PR,
Could you verify if this solve you problem?
To post an answer, please log in.