bool erase_bonds;
// Initialize.
uart_init();
log_init();
timers_init();
//buttons_leds_init(&erase_bonds);
// power_management_init();
ble_stack_init();
gap_params_init();
gatt_init();
services_init();
advertising_init();
conn_params_init();
// Start execution.
// printf("\r\nUART started.\r\n");
// NRF_LOG_INFO("Debug logging for UART over RTT started.");
advertising_start();
log init (); And then it gets stuck
Comment out log init (); The program will get stuck in ble_stack_init(); uart_init(); Be commented out
uart_init() needs to be commented out during this process; And log_init(); Then ble initialization succeeds