I'm trying to remove the debugging UART statements to reduce power consumption, however, not initializing the UART seems to hang the system right after advertising start, sometimes I don't even pick up the initial advertisement.
My code is loosely based off app_hrs. nRF52, SDK11 + s132_2.01
I haven't been using the NRF_LOG (I have had the DEBUG_NRF_USER define commented out during my entire development) instead I have a custom debug_uart_print I have been using. All my code calls this debug_print instead of printf and debug_print only prints if my DEBUG_UART_ENABLED is true.
The issue arises now if I set this DEBUG_UART_ENABLED to false, because now it doesn't initialize the UART at all. I have been through all my custom code, and am almost convinced the issue is not there (everything there calls my custom print that doesn't even try to print if not enabled).
I have changed the define to NRF_LOG_USES_UART=0 in the makefile (using gcc) instead of just commenting it out. I've tried commenting out the log prints in ble_advertising.c I have an LED toggle in a timer handler so I can see if we are still running.
Ideas?