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

ble_app_hrs_freertos Increassing MTU Fatal error

Hi,

Using SDK 15.3.0 , example "ble_app_hrs_freertos", pca10040 with armgcc.

I want to increase MTU and GAP data length.

I started with MTU to 247, and when I try to connect, on log :

The modifications I have done to the code are :

I also modified "nrf_sdh_freertos.c" :

#define NRF_BLE_FREERTOS_SDH_TASK_STACK 256 to 512

(not sur it is useful ?)

I also have seen normal ble_app_hrs is with 247 MTU and 251 GAP data lenth, and it works !

Regards,

Parents
  • Hi,

    Seems to work with any other Bluetooth services. I tried with : BAS, CSCS, and NUS.

    Even without modifying any default parameters :
      - NRF_BLE_FREERTOS_SDH_TASK_STACK = 256
      - configTOTAL_HEAP_SIZE = 496
      - NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE = 1408

    What happens with HRS ?

    Regards,

  • Hi. 

    I made the exact same modifications to the ble_app_hrs_freertos example as you listed in your question. 

    Although I'm not seeing any errors. Are you sure you haven't made any other changes to the code that could cause this?

    Best regards, 
    Joakim

  • Hi,

    Did you connect to the kit ?

    • I restarted with a fresh SDK (extracted all the SDK to a new repertory)
    • Did all the modifications
    • did : "make flash"
    • Before connecting, there is no problem :
    • After connecting with android nRF Toolbox :

    Regards,

  • Yes, I tried connecting to the kit. Still no errors (See screenshot of the output below). 

    I'll go back and try again, maybe I missed one of the changes you made. 

    Regards, 
    Joakim

  • Hi,

    I restarted with nothing else modified than :

    NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247

    And I get :

    Regards,

Reply
  • Hi,

    I restarted with nothing else modified than :

    NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247

    And I get :

    Regards,

Children