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

SDK7.2.0 to SDK8.1.0 migration problems

Hi

I thought: let us quickly migrate to the latest SDK. But that seems to be harder than anticipated. I run into a number issues when compiling with the new code:

  • too few arguments in sd_ble_gatts_sys_attr_set : which flag should I use? I use this function call on a connect event, because I previously got a BLE_ERROR_GATTS_SYS_ATTR_MISSING error;

  • too few arguments in sd_ble_gap_sec_params_reply

  • ble_gap_evt_auth_status_t has no member perish_keys

  • ble_gap_enc_info_t has no member div

  • too few arguments in sd_ble_gap_sec_info_reply

  • BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT undeclared

Is there some guide explaining all these differences?

Parents
  • Please read the migration documents of SD8.0 version. All the answers to your questions are clearly explained there. For your convenience, I am attaching them here.

    s110_nrf51_8.0.0_migration-document.pdf

  • ok, clear;

    Some additional questions, things that are not covered by the migration document: the button en gpiote libraries also seem to have changed. What is then philosophy there? See also devzone.nordicsemi.com/.../

    I get following linker errors:

    In function `buttons_init': 
        undefined reference to `APP_BUTTON_INIT'
    In function `detection_delay_timeout_handler':
        undefined reference to `nrf_drv_gpiote_in_is_set'
    In function `gpiote_event_handler':
        undefined reference to `nrf_drv_gpiote_in_is_set'
    In function `app_button_init':
        undefined reference to `nrf_drv_gpiote_is_init'
        undefined reference to `nrf_drv_gpiote_init'
        undefined reference to `nrf_drv_gpiote_in_init'
    In function `app_button_enable':
        undefined reference to `nrf_drv_gpiote_in_event_enable'
    In function `app_button_disable':
        undefined reference to `nrf_drv_gpiote_in_event_disable'
    In function `app_button_is_pushed':
        undefined reference to `nrf_drv_gpiote_in_is_set'
    

    I then tried to add nrf_drive_gpiote.c to my project, but then I get lots of other errors. Please help

Reply
  • ok, clear;

    Some additional questions, things that are not covered by the migration document: the button en gpiote libraries also seem to have changed. What is then philosophy there? See also devzone.nordicsemi.com/.../

    I get following linker errors:

    In function `buttons_init': 
        undefined reference to `APP_BUTTON_INIT'
    In function `detection_delay_timeout_handler':
        undefined reference to `nrf_drv_gpiote_in_is_set'
    In function `gpiote_event_handler':
        undefined reference to `nrf_drv_gpiote_in_is_set'
    In function `app_button_init':
        undefined reference to `nrf_drv_gpiote_is_init'
        undefined reference to `nrf_drv_gpiote_init'
        undefined reference to `nrf_drv_gpiote_in_init'
    In function `app_button_enable':
        undefined reference to `nrf_drv_gpiote_in_event_enable'
    In function `app_button_disable':
        undefined reference to `nrf_drv_gpiote_in_event_disable'
    In function `app_button_is_pushed':
        undefined reference to `nrf_drv_gpiote_in_is_set'
    

    I then tried to add nrf_drive_gpiote.c to my project, but then I get lots of other errors. Please help

Children
No Data
Related