This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BL652-SA-01-T/R module crashes whenever " ble_stack_init();" is initialized

Hello 

I'm very new with nRF modules and currently struggling with BL652-SA-01-T/R module to run Bluetooth. 

I have developed small pcb to test this module, PCB includes LEDs, pull up resistors for SDA/SCL and external crystal, Crystal is not necessary but i added just in case I would like to use it (I have attached picture of a schematic). On the side I have PCA10040 development kit that have same nrf52832 module and i'm using this dev kit for programming BL652 module. 

To test BL652 module I'm using nRF5 SDK version 16.0 examples together with Segger Embedded Studio. For a begging I have tested modules GPIOs by with a simple blinky example and it works wonderfully on both development board and BL652 module. However when i initialize Bluetooth (launching blinky example with Bluetooth) BL652 stop working while it still draws power and development boards runs smoothly. 

At this point I have noticed that I can't even debug BL652 module even if i run simple LED test. Every time I click debug module stop working and in Segger windows Call Stack, Output and Disassembly are just stays empty, no error. 

So i striped with code just to find out where it starts to crash and it starts when "ble_stack_init();" is initialized in main loop of main.c. I have took ble_blinky example and made no changes to while code besides main.c main loop (I have attached the code). I uploaded same code to the PCA10040 development board and it works fine, however BL652 crashes. 

Have any idea what could cause this and potential workaround? I think it could be due to softdevice, but not sure, I'm using s132 for both development kit and BL652 module.

-Jonas

int main(void)
{
    //log_init();
    leds_init();
    timers_init();
    ble_stack_init();
    //gap_params_init();
    //gatt_init();
    //services_init();
    //advertising_init();
    //conn_params_init();
    //buttons_init();
    //power_management_init();
    //NRF_LOG_INFO("Blinky example started.");
    //advertising_start();
    for (;;)
    {
     //   idle_state_handle();
       bsp_board_led_on(BSP_BOARD_LED_0);
       nrf_delay_ms(300);
       bsp_board_led_on(BSP_BOARD_LED_2);
      // nrf_delay_ms(300); 
       bsp_board_led_off(BSP_BOARD_LED_0);
     //  bsp_board_led_off(BSP_BOARD_LED_2);
       nrf_delay_ms(300);
    }
}

Related