I found strange slowdown in SEGGER_RTT_printf() output which I use for reporting RSSI value at t BLE_GAP_EVT_RSSI_CHANGED event.
My sample code for nRF52832 is based on SDK v15 ble_app_blinky_c, it reports RSSI in the following manner:
.....
case BLE_GAP_EVT_RSSI_CHANGED:
{
err_code = sd_ble_gap_rssi_get(p_gap_evt->conn_handle, &rssi_val, &rssi_chan);
APP_ERROR_CHECK(err_code);
SEGGER_RTT_printf(0, "RSSI: %d\n", rssi_val); // -Dzz: Output RSSI value
} break;
.....
It works correctly, but RTT output becomes slower and slower aftes 10-15 seconds after pair connection. At start it writes about 10 lines per second, but after a time JLinkRTTClient (Linux version if matters) shows only one or two. After reconnection to peripheral, RTT output becomes fast again and slows down in the same manner after some seconds.
Is the problem in RTT or in event processing?