I combined the BLE UART and SPIS Peripheral example of SDK V17.0.2 to receive 251 bytes of data from a microcontroller using SPIS protocol. The microcontroller sends data every 32 milliseconds and the BLE sends it over to the master every 128 milliseconds intervals. I increased the hvn_tx_queue_size to 20. I am using the breakaway module of MBN52832 DK.
Before I enabled DCDC regulator, (using sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);) the device was working fine without any data loss.
However, after I enabled the DCDC regulator, the BLE connection is stable and works without data loss only when the DCDC regulator is enabled.
If I disable the DCDC regulator (using sd_power_dcdc_mode_set(NRF_POWER_DCDC_DISABLE);), or comment out the DCDC enable line, the connection drops after 5~10s with error code (0x8) GATT CONN TIMEOUT.
I increased the "Connection supervisory timeout" and found out that, if the slave does not send data within the defined supervisory time, the disconnection occurs.
Even if I erase all firmware and load the DCDC regulator disabled firmware, the connection keeps dropping and only becomes stable, if the DCDC regulator is enabled.
My query is, how can I go back to the part, where I had a stable connection with the DCDC regulator disabled.