Here i am attaching the my working code of the application.in my application i am using the two peripherals one is TWI and onther one is UART.i interface some sensors with TWI communication.it is working fine when ever i am configuring the uart in blocking mode the device it self not advertising.if i comment the UART init() function in my code it is advertising properly.please give me the reason for why the device is stopped the advertisement when ever i intialize the UART.
int main(void)
{
uint32_t err_code;
bool erase_bonds = false;
// /***************NRF external HF clock 32MHZ configration********************/
// NRF_CLOCK->LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal;
// NRF_CLOCK->INTENSET = CLOCK_INTENSET_HFCLKSTARTED_Enabled;
// NRF_CLOCK->XTALFREQ = 0xFFFFFF00;
// /***************************************************************************/
// Initialize.
nrf_gpio_cfg_output(12);
nrf_gpio_pin_clear(12);
timers_init();
uart_init();
ble_stack_init();
device_manager_init(erase_bonds);
gap_params_init();
advertising_init();
services_init();
conn_params_init();
// Start execution.
application_timers_start();
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
if(err_code!=NRF_SUCCESS)
{
APP_ERROR_CHECK(err_code);
}
}