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

Fail to upload firmware containing ble_nus service via DFU

Hi,

I followed the example nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_buttonless_dfu to add DFU service into my 3 programs. One has HTS service, one has HRS service and the last one has NUS service. I modified the RAM_START address and RAM_SIZE in the nRF5_SDK_15.2.0_9412b96\examples\dfu\secure_bootloader\pca10056_ble example to get more space for the main program. The programs that have HTS or HRS service was uploaded successfully and run without any problem. But for the program with NUS service, I always receive the error:

<info> app: Setting vector table to bootloader: 0x000F8000
<info> app: Setting vector table to main app: 0x00026000
<warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
<warning> nrf_sdh_ble: Change the RAM start location from 0x20002200 to 0x20002AA8.
<warning> nrf_sdh_ble: Maximum RAM size for application is 0x3D558.
<error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
<error> app: ERROR 4 [NRF_ERROR_NO_MEM] at D:\Nordic-Embedded\bl<error> app: End of error report

I used version BLE SDK version 15.2.

I used the same memory config for the other two but they worked fine. Anyone know how to fix this or the cause of it? Please help me. 

Best regards,

     Duy

Related