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

  • When I define BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT in my code, I get an error that it is redefined, because BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT is defined in ble_gap.h, which is in the following sequence: BLE_Drv.h -> ble_advertising.h -> ble.h -> ble_gap.h .This is the reason why I can compile my code without error and flash the hex file to the chip. But unfortunately, the error 0x3001 is still there :(((( after searching, I get an information that wrong Softdevice version can cause that error. In the example in the Software_development_kit, it uses the version 4.0.2 and I am using the version 5.0.0-1.alpha. But when I try to flash the version 4.0.2 into the nRF52832 chip, nothing works :(((( I am searching for another solution

Reply
  • When I define BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT in my code, I get an error that it is redefined, because BLE_GAP_ROLE_COUNT_PERIPH_DEFAULT is defined in ble_gap.h, which is in the following sequence: BLE_Drv.h -> ble_advertising.h -> ble.h -> ble_gap.h .This is the reason why I can compile my code without error and flash the hex file to the chip. But unfortunately, the error 0x3001 is still there :(((( after searching, I get an information that wrong Softdevice version can cause that error. In the example in the Software_development_kit, it uses the version 4.0.2 and I am using the version 5.0.0-1.alpha. But when I try to flash the version 4.0.2 into the nRF52832 chip, nothing works :(((( I am searching for another solution

Children
No Data
Related