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

  • I have updated my answer with a ble_app_uart project where HRS is added. Extract it to

    <SDK_InstallFolder>\examples\ble_peripheral\
    

    Quickly summarized on how the HRS was added:

    1. Go through the project files for HRS. Add the relevant files to the ble_app_uart project.

    2. Include new header files

    3. add all new defines and functions

    4. update the sdk_config.h

Reply Children
No Data
Related