When I change ATT_MTU size and add the following code: #define CONN_CFG_TAG 1
// Configure the maximum ATT MTU.
memset(&ble_cfg, 0x00, sizeof(ble_cfg));
ble_cfg.conn_cfg.conn_cfg_tag = CONN_CFG_TAG;
ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = NRF_BLE_GATT_MAX_MTU_SIZE;
err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATT, &ble_cfg, ram_start);
APP_ERROR_CHECK(err_code);
My program crash, and the call stack tell me: when I call advertising_start(erase_bonds) function, the erase_bonds not equal to 0. when I comment the up code, the program work normally. And I have change the ram to suit for the ATT_MTU size. So I don't know how to fix this program.