[nRF52833] NRF_ERROR_NO_MEM for sd_ble_gap_adv_start()

Hello Experts,

I am writing a code for nRF52833 using the SDK nRF5 version v16 using the Segger Embedded Studio as development environment.

In my code when sd_ble_gap_adv_start() is called, I get the error NRF_ERROR_NO_MEM.

i.e. SVCALL(SD_BLE_GAP_ADV_START, uint32_t, sd_ble_gap_adv_start(uint8_t adv_handle, uint8_t conn_cfg_tag));

/**@brief Function for starting advertising.
*/
static void advertising_start(void)
{
ret_code_t err_code;

err_code = sd_ble_gap_adv_start(m_adv_handle, APP_BLE_CONN_CFG_TAG);
APP_ERROR_CHECK(err_code);

err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
APP_ERROR_CHECK(err_code);
}

I have created the pca10100/s140 folder and modified the .emproject file.

Below are linker specifications

linker_section_placements_segments="FLASH RX 0x0 0x80000;RAM RWX 0x20000000 0x20000"

linker_section_placement_macros=
"FLASH_PH_START=0x0;
FLASH_PH_SIZE=0x80000;

RAM_PH_START=0x20000000;
RAM_PH_SIZE=0x20000;

FLASH_START=0x27000;
FLASH_SIZE=0x59000;

RAM_START=0x20002ae8;
RAM_SIZE=0x1d518"

Also I tried other values of RAM_START and RAM_SIZE from ble_app_hids_keyboard example but still the same error.

The project settings show the flash_placements.xml being used and the .emproject file values exported when seen through common settings 

Cannot understand what should be modified.

Thanks in advance for your support

Best Regards

AbhiAsh

Related