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

nRF52832 BLE STK error

Hi everyone,

I am using nRF52832 chip and trying to use BLE on that. I flashed SoftDevice. When I flash the "ble_app_uart" example, error code 0x3001 occurs. the function "sd_ble_cfg_set" call return the error. I attached the header and the source file also. BLE_Drv.c BLE_Drv.h Can you help me please? Thanks!

Parents
  • memset(&ble_cfg, 0, sizeof(ble_cfg)); ble_cfg.gap_cfg.role_count_cfg.periph_role_count = BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT; ble_cfg.gap_cfg.role_count_cfg.central_role_count = 0; ble_cfg.gap_cfg.role_count_cfg.central_sec_count = 0; err_code = sd_ble_cfg_set(BLE_GAP_CFG_ROLE_COUNT, &ble_cfg, ram_start); APP_ERROR_CHECK(err_code);

  • Sorry, also my mistake. BLE_GAP_CFG_ROLE_COUNT is constant to distinguish which variant of sd_ble_cfg_set you are calling, that's defined in SD API. However you need to define BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT and you certainly have it in your project unless you couldn't compile it (and hence couldn't load it to chip and observe 0x3001 error code). If you don't know how many GAP Peripheral connection links you need to support in your FW then I cannot help you, that's something you need to decide;)

Reply
  • Sorry, also my mistake. BLE_GAP_CFG_ROLE_COUNT is constant to distinguish which variant of sd_ble_cfg_set you are calling, that's defined in SD API. However you need to define BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT and you certainly have it in your project unless you couldn't compile it (and hence couldn't load it to chip and observe 0x3001 error code). If you don't know how many GAP Peripheral connection links you need to support in your FW then I cannot help you, that's something you need to decide;)

Children
No Data
Related