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

NRF_ERROR_NO_MEM

   I am using nrf52832 to develop based on SDK14.2. I have defined a custom service. There are 7 characteristic in this service. The attribute of each characteristic is set to notify, read, write. Now I want every feature value to be in the air. A packet can transfer 240 bytes of data at a time. Now I have implemented this function in a single characteristic, but when I want to implement each feature with such a function, it will return an NRF_ERROR_NO_MEM error. Is this because of the protocol stack? Need less RAM space, how do I change settings? How big should be set to be appropriate?

Parents Reply
  • There is a set amount of memory dedicated for the attribute table (including the characteristic size) in the softdevice. If you exceed the size of it you will receive NRF_ERROR_NO_MEM . You can try increase the size by modifying NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE in the sdk_config.h 

    Make sure you reconfigure the RAM setting of the softdevice after you change that. 

     

Children
No Data
Related