Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

the newest sdk build wit S313

sdk17.1.0 build with ANT_s313_nrf52_7.0.1 has error, because S313 MACRO is removed form sdk17.1.0

..\sdk_bases\components\ble\ble_advertising\ble_advertising.c(242): error:  #20: identifier "BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_DIRECTED" is undefined
          p_adv_params->properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_DIRECTED;
..\sdk_bases\components\ble\ble_advertising\ble_advertising.c(316): error:  #20: identifier "BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED" is undefined
          p_advertising->adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED;
..\sdk_bases\components\ble\ble_advertising\ble_advertising.c(363): error:  #20: identifier "BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED" is undefined
          p_advertising->adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED;
..\sdk_bases\components\ble\ble_advertising\ble_advertising.c: 0 warnings, 3 errors
compiling nrf_ble_gatt.c...
..\sdk_bases\components\ble\nrf_ble_gatt\nrf_ble_gatt.c(141): error:  #20: identifier "BLE_GAP_ROLE_CENTRAL" is undefined
          case BLE_GAP_ROLE_CENTRAL:
..\sdk_bases\components\ble\nrf_ble_gatt\nrf_ble_gatt.c: 0 warnings, 1 error
compiling nrf_sdh_ble.c...
..\sdk_bases\components\softdevice\common\nrf_sdh_ble.c(143): error:  #136: struct "<unnamed>"  has no field "central_role_count"
      ble_cfg.gap_cfg.role_count_cfg.central_role_count = NRF_SDH_BLE_CENTRAL_LINK_COUNT;
..\sdk_bases\components\softdevice\common\nrf_sdh_ble.c(144): error:  #136: struct "<unnamed>"  has no field "central_sec_count"
      ble_cfg.gap_cfg.role_count_cfg.central_sec_count  = MIN(NRF_SDH_BLE_CENTRAL_LINK_COUNT,
..\sdk_bases\components\softdevice\common\nrf_sdh_ble.c(144): error:  #20: identifier "BLE_GAP_ROLE_COUNT_CENTRAL_SEC_DEFAULT" is undefined
      ble_cfg.gap_cfg.role_count_cfg.central_sec_count  = MIN(NRF_SDH_BLE_CENTRAL_LINK_COUNT,
..\sdk_bases\components\softdevice\common\nrf_sdh_ble.c: 0 warnings, 3 errors

Parents
  • The S313 is an S113 with an ANT stack. I guess the problem in this case is that the S313 is not defined in many of the ble components in the nRF5 SDK, I can see that both S112, S312, and S113 is for instance checked in specific, e.g. on line 141:

    #if !defined (S112) && !defined(S312) && !defined(S113)

    I suggest that you add S113 to your project preprocessor defines as a workaround.

    Best regards,
    Kenneth

Reply
  • The S313 is an S113 with an ANT stack. I guess the problem in this case is that the S313 is not defined in many of the ble components in the nRF5 SDK, I can see that both S112, S312, and S113 is for instance checked in specific, e.g. on line 141:

    #if !defined (S112) && !defined(S312) && !defined(S113)

    I suggest that you add S113 to your project preprocessor defines as a workaround.

    Best regards,
    Kenneth

Children
No Data
Related