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);

  • Oh you are mixing different API and SD versions? That will most probably fail terribly;) Why you don't stick with the SD which is recommended with (delivered in) SDK version you use (especially if you don't know how to migrate to different one yourself)? Basically you need SD HEX file version on the chip in sync with ROM/RAM regions' setting in your project (typically LD script for GCC or project settings in Keil/IAR) and SD API headers which match the version. There is hardly any different solution to this basic set-up;)

Reply
  • Oh you are mixing different API and SD versions? That will most probably fail terribly;) Why you don't stick with the SD which is recommended with (delivered in) SDK version you use (especially if you don't know how to migrate to different one yourself)? Basically you need SD HEX file version on the chip in sync with ROM/RAM regions' setting in your project (typically LD script for GCC or project settings in Keil/IAR) and SD API headers which match the version. There is hardly any different solution to this basic set-up;)

Children
No Data
Related