I created a application that sometimes uses the BLE for 10 seconds. To turn on the BLE I'm using the function
ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);
and to turn off the BLE I'm using the function
ble_advertising_start(&m_advertising, BLE_ADV_MODE_IDLE);
I already had the issue when I turned on the BLE the device would completely reset it self. I found this topic and this topic but the debugger is not throwing an exception. On a other topic that I can not find any more someone suggested to change the APP_ADV_DURATION definition to 0 what looks like is working for the start of the BLE.
But every time I'm calling the idle mode the device will reset itself without showing something on the debugger. At the moment I'm totally lost on what the solution could be.