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

nRF52832-DK ble_app_uart ble_app_hrs 32K-byte problem

I am trying to add the heart_rate_meas function to the ble_app_uart project. Is this plan possible? However, it does not go well. Why are you concerned with this method because the ble_app_hrs project is close to the KEIL-IDE 32 kbyte limit. Is there any good plan?

Parents
  • Hi,

    Yes, it is possible to add the heart rate service to the ble_app_uart project.

    But, if you originally wanted to use the ble_app_hrs project, you could disable the peer manager in order to reduce the code size. This will reduce the code size with about 12kB. Comment out line 1010 peer_manager_init(erase_bonds); and line 785 pm_on_ble_evt(p_ble_evt);.

    Note: You cannot do pairing and bonding when not using the peer manager. The peer manager is not used in the ble_app_uart project.

    Edit: Added ble_app_uart project with HRS.

    ble_app_uart_with_hrs.zip

Reply
  • Hi,

    Yes, it is possible to add the heart rate service to the ble_app_uart project.

    But, if you originally wanted to use the ble_app_hrs project, you could disable the peer manager in order to reduce the code size. This will reduce the code size with about 12kB. Comment out line 1010 peer_manager_init(erase_bonds); and line 785 pm_on_ble_evt(p_ble_evt);.

    Note: You cannot do pairing and bonding when not using the peer manager. The peer manager is not used in the ble_app_uart project.

    Edit: Added ble_app_uart project with HRS.

    ble_app_uart_with_hrs.zip

Children
Related