nrf_sdh_ble_default_cfg_set not printing in sagger studio

Hello,

I am building a product prototype based on nrf52810 with s112 7.0.1 with NRFDK16. So the problem is the memory allocation. I setup the FLASH and RAM as per specification. But as it's said in the tutorial I'm using, when you as Custom Service this need to me changed. You should get the info in terminal emulator printed by nrf_sdh_ble_default_cfg_set function. But in my case no such a print occurs. The only print is

app_timer: RTC: initialized.
 nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
 app: Fatal error
 app: System reset

Here is ble_stack_init function:

ret_code_t err_code;

    err_code = nrf_sdh_enable_request();
    APP_ERROR_CHECK(err_code);

    // Configure the BLE stack using the default settings.
    // Fetch the start address of the application RAM.
    uint32_t ram_start = 0;
    err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start);
    APP_ERROR_CHECK(err_code);

    // Enable BLE stack.
    err_code = nrf_sdh_ble_enable(&ram_start);
    APP_ERROR_CHECK(err_code);

    // Register a handler for BLE events.
    NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);


So, what should I do to see what are the exact FLASH and RAM setting I need so the app to start.

My current setting are:

FLASH_PH_START=0x0

FLASH_PH_SIZE=0x30000

RAM_PH_START=0x20000000

RAM_PH_SIZE=0x6000

FLASH_START=0x19000

FLASH_SIZE=0x17000

RAM_START=0x20001a40

RAM_SIZE=0x45c0

Thank you in advance!

Ivo




Parents Reply Children
No Data
Related