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

GPIO_init() and buttons_leds_init(&erase_bonds) can not work simultaneously

Hi,

I am using sample ble_hrs code in SDK12.0.0 over Rigado eval Kit for BMD300. After running original code as it is device doesn't advertise. After I commented out the following lines

    #if (NRF_SD_BLE_API_VERSION == 3)
    ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_GATT_MAX_MTU_SIZE;
#endif

in ble_stack_init(), device starts advertising. I want to understand why is it so?

Second thing when I am using buttons_leds_init(&erase_bonds) and GPIO_init() device does not advertise. It stops at gpio_init() function. I have configured button 0 as input in gpio_int() function. If I comment out any one of the above two function with their dependancies, advertising resumed. Why this strange behavior?

Any one has gone through this previously?

Related