This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5_SDK_14.0.0 NRF_SDH_BLE_GATT_MAX_MTU_SIZE issue

In "ble_app_hrs_freertos" project, I try to change NRF_SDH_BLE_GAP_EVENT_LENGTH to 320 and NRF_SDH_BLE_GATT_MAX_MTU_SIZE to 247.

And when I try to connect to the nrf52832 by iPhone 5s, the nrf52832 crash.

But when I use "ble_app_hrs" project, the NRF_SDH_BLE_GAP_EVENT_LENGTH and NRF_SDH_BLE_GATT_MAX_MTU_SIZE setting as same as above. I can use iPhone 5s establish connect normally.

If I want to use above setting in "ble_app_hrs_freertos" project, what should I do?

  • If you modify NRF_SDH_BLE_GATT_MAX_MTU_SIZE you should adjust RAM start and RAM size for your project. If you have some log output maybe it is reporting you some warnings like this:

    nrf_sdh_ble: RAM start should be adjusted to 0x20002968. nrf_sdh_ble: RAM size should be adjusted to 0xD698. nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM. app: Fatal

    If you are using, for example, Keil MDK it can be adjusted at Options for target -> Target

Related