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

GATT Services and Characteristics with NRF52810

Hi,

I tried to add 3 characteristics and 1 gatt service to my NRF52810 using with development board with 10040e (I am using gcc compiler). Then I got a error which is saying ram is not enough when gatt service initializing.

Later I researched and found a way by changing NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE, ram origin and ram length. After that, my project worked on development board.

But the same project didnt worked on the my hardware with NRF52810. I dont know why it didnt worked and how to fix this.

Thank you!

Parents
  • Hi

    We have examples for adding services and characteristics, please see this tutorial for example, but we do not have any specifically for the nRF52810. You'll have to keep in mind that the RAM is only 24kB on the nRF52810, so the total RAM usage of your application needs to be lower than this. I assume that changing NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE was changed to value(s) greater than 24kB, which causes it to work on the PCA10040 DK, which has an nRF52832 with more RAM on it, and not the actual nRF52810 chip.

    Best regards,

    Simon

Reply
  • Hi

    We have examples for adding services and characteristics, please see this tutorial for example, but we do not have any specifically for the nRF52810. You'll have to keep in mind that the RAM is only 24kB on the nRF52810, so the total RAM usage of your application needs to be lower than this. I assume that changing NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE was changed to value(s) greater than 24kB, which causes it to work on the PCA10040 DK, which has an nRF52832 with more RAM on it, and not the actual nRF52810 chip.

    Best regards,

    Simon

Children
Related