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

error is observed in both sd_ble_evt_get and ble_ancs_c_init

for ble_app_ancs_c_s130_pca10028 example of sdk11,s130 version 2.0.0

The preferred RAM,ROM and UUID COUNT is shown below

FLASH (rx) : ORIGIN = 0x0001B000, LENGTH = 0x25000 RAM (rwx) : ORIGIN = 0x20002790, LENGTH = 0x2790

ble_enable_params.common_enable_params.vs_uuid_count = VENDOR_SPECIFIC_UUID_COUNT;

VENDOR_SPECIFIC_UUID_COUNT= 4;

with th above specifications i observed these things.

1)Advertising is not happening. 2)sd_ble_evt_get returns err_code 3001

for the below specifications,

FLASH (rx) : ORIGIN = 0x0001B000, LENGTH = 0x40000 RAM (rwx) : ORIGIN = 0x20002000, LENGTH = 0x4000

ble_enable_params.common_enable_params.vs_uuid_count = 2;

VENDOR_SPECIFIC_UUID_COUNT= 2;

with th above specifications i observed these things.

1)Advertising of the device name is happening. 2)ble_ancs_c_init returns err-code 4

The path of the project location is-> C:\Keil_v5\ARM1\NRF51_SDK\nRF5_SDK_11.0.0_89a8197 (4)\examples\ble_peripheral\ble_app_ancs_c - Copy\pca10028\s130\arm5_no_packs

please find,ble_app_ancs_c_s130_pca10028.uvprojx attached entire project

Related