首页 > 其他 > 详细

NORDIC 出现NRF_ERROR_NO_MEM错误

时间:2019-08-06 18:59:33      阅读:743      评论:0      收藏:0      [点我收藏+]

Which SDK version are you using, is it SDK v12.x.x? Which function returns NRF_ERROR_NO_MEM? Is it sd_ble_gatts_service_add() or sd_ble_gatts_characteristic_add()?

If it is one of those two functions then you need to increase the size of the GATT table by setting the .attr_tab_size field of ble_enable_params.gatts_enable_params in ble_stack_init(), e.g.

ble_enable_params.gatts_enable_params.attr_tab_size = 0x1000;

Otherwise if will be set equal to SOFTDEVICE_GATTS_ATTR_TAB_SIZE == BLE_GATTS_ATTR_TAB_SIZE_DEFAULT == 0x000 which causes the SoftDevice to use the default GATT table size which is 0x580 bytes for S130 v2.x.x.

即修改GATT属性列表大小:

技术分享图片

 

NORDIC 出现NRF_ERROR_NO_MEM错误

原文:https://www.cnblogs.com/yeshenmeng/p/11311030.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!