I am using
- nRF52840
- SDK 15.3.0
- Keil IDE
- The soft device is S140
- JLinkRTTViewer for debug
I changed the device name while not connected.
but, The device made a connection with the smartphone.
and I tried to change the device name using the same function as above.
a fatal error occurs when executing the function.
please advice
-----------
void re_device_name(void)
{
uint32_t err_code;
ble_advertising_t * const p_advertising = NULL;
*p_advertising = m_advertising;
(void) sd_ble_gap_adv_stop(p_advertising->adv_handle);
bluetooth_update_name(m_system_data.equip_name);
advertising_init();
err_code = ble_advertising_restart_without_whitelist(&m_advertising);
}

