This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

SDK 6.1.0 and s120 v1.0.1 multilink peripheral example: compilation error

Hi community,

When I want to use the example multilink peripheral inside the s120 directory example of the SDK 6.1.0, I'm not able to compile the code.

The device_manager_peripheral.c file is not aligned with the header file ble_gap.h provided for s120 soft device ; some structure (ble_gap_evt_auth_status_t, ble_gap_sec_keys_t, ble_gap_evt_sec_info_request_t) don't contain the right element in the ble_gap.h in nrf51822/include/s120 directory and one function prototype (sd_ble_gap_sec_params_reply) is not the well one. If we take a look, inside s110 or s130 ble_gap.h file, everything is ok.

Why this mismatch exists or something is wrong in my setup ?

Thanks in advance

Parents
  • ble_gap.hHi Terje,

    This is the full path of the project example:

    /SDK/nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Board/nrf6310/s120/ble_app_multilink_peripheral

    These are the errors I got (not exhaustive):

    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2542:62: error: 'ble_gap_evt_auth_status_t' has no member named 'central_kex'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2544:62: error: 'ble_gap_evt_auth_status_t' has no member named 'periph_kex'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2466:115: error: 'ble_gap_evt_sec_info_request_t' has no member named 'div'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2483:24: error: too few arguments to function 'sd_ble_gap_sec_info_reply'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2499:24: error: too few arguments to function 'sd_ble_gap_sec_params_reply'

    I join the ble_gap.h which is provided with the soft device s120 v1.0.1 and I'm using to see the mismatch.

    Thanks

Reply
  • ble_gap.hHi Terje,

    This is the full path of the project example:

    /SDK/nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Board/nrf6310/s120/ble_app_multilink_peripheral

    These are the errors I got (not exhaustive):

    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2542:62: error: 'ble_gap_evt_auth_status_t' has no member named 'central_kex'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2544:62: error: 'ble_gap_evt_auth_status_t' has no member named 'periph_kex'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2466:115: error: 'ble_gap_evt_sec_info_request_t' has no member named 'div'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2483:24: error: too few arguments to function 'sd_ble_gap_sec_info_reply'
    • nRF51_SDK_v6.1.0.0/Nordic/nrf51822/Source/ble/device_manager/device_manager_peripheral.c:2499:24: error: too few arguments to function 'sd_ble_gap_sec_params_reply'

    I join the ble_gap.h which is provided with the soft device s120 v1.0.1 and I'm using to see the mismatch.

    Thanks

Children
No Data
Related