hi, I currently stuck in the follow section:
static void gpiote_event_handler(uint32_t pins_low_to_high, uint32_t pins_high_to_low)
{
if (pins_high_to_low & (1 << BUTTON_0))
{
if(!is_advertising){
//NRF_TWI1->ENABLE = TWI_ENABLE_ENABLE_Disabled;
err_code = sd_ble_gap_adv_start(&m_adv_params);
is_advertising = ((err_code == 0) ? true : false);
}
}
}
where sd_ble_gap_adv_start(..) never turns back from
SVCALL(SD_BLE_GAP_ADV_START, uint32_t, sd_ble_gap_adv_start(ble_gap_adv_params_t const * const p_adv_params));
If I put err_code = sd_ble_gap_adv_start(&m_adv_params); in the main loop for the main "for" loop e.g. like in hrs sample is done, it is working fine.
Regards