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

Migrating to SDK15, crashing at advertising_init()

I'm trying to migrate from SDK12 to SDK15, but my code always crashes at advertising_init() and goes to NRF_BREAKPOINT_COND. Even when I directly use the example from the service tutorial https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial. I'm wondering what's the issue in this case?

Also how do I define DEBUG here? I added CFLAGS += DDEBUG in makefile, but it didn't trigger the switch error ID part in app_error_default_handler function in app_error_weak.c.

I'm using Eclipse with both DK52 and DK52840. Any help is appreciated. Thanks.

Parents Reply
  • I changed NRF_SDH_BLE_VS_UUID_COUNT to 1.

    NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE is 1408 by itself. What size should I use for it?

    Here is the error message I see now.

    0> <warning> nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
    0> <warning> nrf_sdh_ble: Change the RAM start location from 0x20002218 to 0x20002220.
    0> <warning> nrf_sdh_ble: Maximum RAM size for application is 0xDDE0.
    0> <error> nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
    0> <error> app: ERROR 4 [NRF_ERROR_NO_MEM] at ../../../main.c:570
    0> PC at: 0x00030D29
    0> <error> app: End of error report

Children
Related