Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Increasing MTU size

Hi, 

I've added NUS service to my app (nRF52832, peripheral, FreeRTOS based, SDK 15.2, SD132). everything works great with MTU size = 23 bytes.

Now I try to increase the MTU size to 247 like in the example: 

- increased NRF_SDH_BLE_GATT_MAX_MTU_SIZE  23 -->247

- increased NRF_SDH_BLE_GAP_DATA_LENGTH  27-->251

- increased IRAM1 according to ram_start returned in nrf_sdh_ble_enable()

Now I keep failing in ble_nus_init() on the first call to characteristic_add() . It return error NRF_ERROR_NO_MEM .

I tried to increase IRAM1 start address even more, adding another 1300+ bytes to the start address (until my linker start yelling) but I can't get it to work.

Is it a matter of a further increase of the ram start address or am I missing here something (maybe another setting in sdk_config.h....??)

Thanks

 

Parents Reply Children
Related