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

s110 sdk 5 and higer examle ble not work

chip N51822QFAACO s110_nrf51822_5.2.1_softdevice.hex keli 5

\nrf51_sdk_v4_4_2_33551\nrf51822\Board\pca10001\ble\ble_app_proximity\

works fine

nrf51_sdk_v5_2_0_39364\nrf51822\Board\pca10001\s110\ble_app_proximity\

does not work.

All options target the same.

differences:


4.4

  static void ble_stack_init(void)
{
    BLE_STACK_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM,
                           BLE_L2CAP_MTU_DEF,
                           ble_evt_dispatch,
                           false);
}

5.2

static void ble_stack_init(void)
{
   
    // Initialize the SoftDevice handler module.
    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);

    // Register with the SoftDevice handler module for BLE events.
    softdevice_ble_evt_handler_set(ble_evt_dispatch);
    
    // Register with the SoftDevice handler module for BLE events.
    softdevice_sys_evt_handler_set(sys_evt_dispatch);
	
}

How to get to work on softdeviche examples higher the 4 SDK?

Related