I am using an NRF8001 with the ble_uart_project_with_dfu_template and programmed an ATMEGA328P with it. The code works great and I can scan and communicate with the ATMEGA328P via bluetooth using the Nordic Semi nRF UART v2.0 app for Android.
I leave the device on and notice that after a long period of time, hours, the unit stops showing up on the Scans and the only way to fix this is to power cycle the device. There's other code on the ATMEGA328P, reading a button, LEDs and those behavior are still working properly, it's just the bluetooth portion that seem to stop working properly.
Thank you for your time and help.
Edit 8/2 to add code attachment.