NRF52840运行代码报错:Insufficient RAM allocated for the SoftDevice

2024-05-18 09:25发布

 NRF52840运行代码报错:Insufficient RAM allocated for the SoftDevice


打印LOG如下:

00>  app_timer: RTC: initialized.
00> 
00>  nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
00> 
00>  nrf_sdh_ble: Change the RAM start location from 0x20002A38 to 0x20002BC8.
00> 
00>  nrf_sdh_ble: Maximum RAM size for application is 0x3D438.
00> 
00>  nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
00> 
00>  app: ERROR 4 [NRF_ERROR_NO_MEM] at ..\..\..\main.c:1617
00> 
00> PC at: 0x0002A1CF
00> 
00>  app: End of error report


2条回答
jackyyuwei
1楼 · 2024-05-20 16:35.采纳回答

将0x20002A38改为0x20002BC8,将RAM由0x3D5C8改为0x3D438。


再编译运行,OK了!


linda
2楼-- · 2024-05-20 17:48

内存RAM不足,增加一下就可以了

一周热门 更多>