NRF52 PORTING DFU service to NUS提示NRF_ERROR_NO_MEM解决

NRF52 PORTING DFU service to NUS提示NRF_ERROR_NO_MEM,网上搜索,参考https://blog.csdn.net/weixin_38170065/article/details/101983585
https://www.cnblogs.com/yeshenmeng/p/11311030.html
我这里设置如下:
// NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
#ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
#define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 3096//1408
#endif
当改变了NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 后 JLINK RTT VIEWER print error : <00> warning> nrf_sdh_ble: RAM starts at 0x20002E68, can be adjusted to 0x20002E88.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD178.
怎么办,照着修改RAM 就成功了。
这样修改:
在这里插入图片描述
JLINK RTT VIEWER print 记录如下,最后一次是成功的
// NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
#ifndef NRF_SDH_BLE_VS_UUID_COUNT
#define NRF_SDH_BLE_VS_UUID_COUNT 10
#endif

<00> warning> nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002760.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD8A0.
<00> info> app: Setting vector table to bootloader: 0x00078000
<00> info> app: Setting vector table to main app: 0x00023000
<00> error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Gitspace\roger\\src\nordic_sdk\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_btless\boot_nrf.c:401
<00> warning> nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002CF0.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD310.
<00> error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<00> error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Gitspace\roger\\src\nordic_sdk\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_btless\main.c:466
<00> warning> nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002E88.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD178.
<00> error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<00> error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Gitspace\roger\\src\nordic_sdk\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_btless\main.c:466
<00> warning> nrf_sdh_ble: RAM starts at 0x20002A68, can be adjusted to 0x20002E88.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD178.
<00> error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<00> error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Gitspace\roger\\src\nordic_sdk\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_btless\main.c:466
<00> warning> nrf_sdh_ble: RAM starts at 0x20002E68, can be adjusted to 0x20002E88.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD178.
<00> error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<00> error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Gitspace\roger\\src\nordic_sdk\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_btless\main.c:466
<00> warning> nrf_sdh_ble: RAM starts at 0x20002E68, can be adjusted to 0x20002E88.
<00> warning> nrf_sdh_ble: RAM size can be adjusted to 0xD178.
<00> error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<00> error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Gitspace\roger\\src\nordic_sdk\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart_btless\main.c:466
<00> info> app: Setting vector table to bootloader: 0x00078000
<00> info> app: Setting vector table to main app: 0x00023000
<00> info> app: UART Start!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值