This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF_ERROR_NO_MEM

Hi,

I'm developing a FW with a lot of services and characteristics. Since I added the ANCS service, I have the "NRF_ERROR_NO_MEM".

Configuration : NRF51822_XXAC / S130 V2 / custom secure bootloader + DFU / Segger embedded studio / bootloader setting file to allow programing without DFU.

Section placement macro (Embedded studio) : FLASH_START=0x1b000 SRAM_START=0x20002008

I read a lot of things about this error : increase the size of the gatt table, adding "BLE_GATTS_VLOC_USER"...

Like explained on the migration guide, I checked the expected RAM size. The debug result is described below :

SDH:DEBUG:sd_ble_enable: RAM start at 0x20002008 SDH:DEBUG:RAM size should be adjusted to 0x5ff8 SDH:DEBUG:sd_ble_enable: RAM start should be adjusted to 0x20002008 :INFO:running nrf_dfu_settings_init APP:INFO:app_error_fault_handler : id=0x00004001, pc=0x00000000, info=0x20007f64 APP:INFO:err_code 00000004 in line 298 of XXXANCS/ble/ble_services.c APP:INFO:-> NRF_ERROR_BASE_NUM

I changed the SRAM size and attr_tab_size but after that, the application doesn't start like if the bootloader doesn't know where to find the application start address. Do I have to change something in the bootloader or something else that I missed?

Thank you

  • Yes, I'm able to debug when I keep the default configuration of our project.

    VS_UUID count : 3 Default table size (0x600)

    But when I change table size / SRAM start / VS_UUID, I have nothing on my RTT like if the app was not started.

    By adding ANCS I should change VS_UUID to at least 7 and adjust the table size but I'm stuck with this "starting issue".

    I just compiled a new bootloader in debug mode to have NRF_LOG but now I have a merging conflict (overlap)...

  • I found the issue. By changing the VS_UUID to 10 and adjust SRAM_START to 0x20002078 it's know OK. Thank you for your help

Related