This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sd_ble_enable in debug mode

Hello Nordic Semi team, 

Need help with sd_enable call. 

I am using this code to set my MTU to 64. 

// Configure the gatt MTU size .
memset(&ble_cfg, 0, sizeof(ble_cfg));
ble_cfg.conn_cfg.conn_cfg_tag = APP_BLE_CONN_CFG_TAG;
ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = 64;
err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATT, &ble_cfg, *ptr );

When I compile code in release mode the sd_ble_enable call returns fine with 0

When I compile code in debug mode the sd_ble_enable call returns a 4, which is insufficient memory. NRF_ERROR_NO_MEM

However, if I change mtu to 32 bytes, the sd_enable call returns 0 even in debug mode. 

Does debug mode use more RAM resources on the NRF? 

As a solution, do I just give it more RAM to work in the debug mode? Why am I seeing this behavior?  Some insights would be much appreciated. 

Kind regards, 

Hari 

Parents Reply Children
Related