Background:
- Custom boards
- SDK 15.2.0
- SoftDevice: s140_nrf52_6.1.0
Hello,
We recently updated our project to use 2M PHY instead of the default 1M PHY. Our device implements over-the-air (OTA) firmware updates and writes the received firmware image to the second half of the nRF52840 internal flash. Increasing the PHY to 2M not only increased the BLE throughput, it also increased the flash operation times, especially page erase. I am aware that flash operation times depend on the amount of BLE activity so I am not surprised by this result. Unfortunately, the flash operations are now a bottleneck and I either need to slow down the OTA file transfer or block the BLE task on a RX queue until flash operations complete.
Question: Is it safe to block the BLE task created in nrf_sdh_freertos.c without losing any RX packets? I assume this is not a good idea, but wanted to double check since I couldn't find any answers online.
Thanks!
Derek