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

Issue when build a new nRF52840 Mesh SDK. File mesh_adv.c run to some Errors.

Hi, I am new in Mesh using nRF52840, when I try to build the light_switch example, I link to all the libraries that project need and change the SDK_ROOT to the direction of the sdk folder, but when compling to the mesh_adv.c I have some error. The version of NRF_SD_BLE_API_VERSION is 6. Can someone please help me. Thank you!

Building ‘light_switch_provisioner_nrf52840_xxAA_s140_6.1.0’ from solution ‘light_switch_provisioner_nrf52840_xxAA_s140_6.1.0’ in configuration ‘Debug’
src/main.c (16.08.2019 09:00:12) is newer than build/light_switch_provisioner_nrf52840_xxAA_s140_6.1.0_Debug/obj/main.o (15.08.2019 20:04:17).
Compiling ‘main.c’
User Include Directories property has changed.
Compiling ‘provisioner_helper.c’
User Include Directories property has changed.
Compiling ‘node_setup.c’
User Include Directories property has changed.
Compiling ‘rtt_input.c’
User Include Directories property has changed.
Compiling ‘simple_hal.c’
e:/kltn/nrf5sdkformeshv310src/examples/light_switch/provisioner/include/sdk_config.h (15.08.2019 16:54:40) is newer than build/light_switch_provisioner_nrf52840_xxAA_s140_6.1.0_Debug/obj/mesh_adv.o (15.08.2019 14:01:46).
Compiling ‘mesh_adv.c’
'BLE_GAP_ADV_SET_HANDLE_NOT_SET' undeclared here (not in a function); did you mean 'BLE_GATT_HANDLE_START'?
unknown type name 'ble_gap_adv_data_t'
'ble_gap_adv_params_t' {aka 'struct <anonymous>'} has no member named 'properties'
braces around scalar initializer
(near initialization for 'm_adv_params.type')
field name not in record or union initializer
(near initialization for 'm_adv_params.type')
'BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED' undeclared here (not in a function); did you mean 'BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME'?
in definition of macro 'MESH_ADV_ADV_TYPE'
'ble_gap_adv_params_t' {aka 'struct <anonymous>'} has no member named 'duration'
'BLE_GAP_ADV_SET_DATA_SIZE_MAX' undeclared here (not in a function); did you mean 'MESH_ADV_DATA_SIZE_MAX'?
in expansion of macro 'MESH_ADV_DATA_SIZE_MAX'
request for member 'adv_data' in something not a structure or union
request for member 'scan_rsp_data' in something not a structure or union
request for member 'adv_data' in something not a structure or union
request for member 'scan_rsp_data' in something not a structure or union
mesh_adv.c
request for member 'adv_data' in something not a structure or union
in definition of macro 'APP_ERROR_CHECK'
request for member 'adv_data' in something not a structure or union
in definition of macro 'APP_ERROR_CHECK'
request for member 'scan_rsp_data' in something not a structure or union
in definition of macro 'APP_ERROR_CHECK'
request for member 'scan_rsp_data' in something not a structure or union
in definition of macro 'APP_ERROR_CHECK'
implicit declaration of function 'sd_ble_gap_adv_set_configure'; did you mean 'sd_ble_gap_adv_stop'? [-Wimplicit-function-declaration]
'ble_gap_adv_params_t' {aka 'struct <anonymous>'} has no member named 'duration'
'ble_gap_adv_params_t' {aka 'struct <anonymous>'} has no member named 'duration'
mesh_adv.c
passing argument 1 of 'sd_ble_gap_adv_start' makes pointer from integer without a cast [-Wint-conversion]
in definition of macro 'APP_ERROR_CHECK'
ble_gap.h
mesh_adv.h
mesh_adv.c
expected 'const ble_gap_adv_params_t *' {aka 'const struct <anonymous> *'} but argument is of type 'uint8_t' {aka 'unsigned char'}
in definition of macro 'SVCALL'
mesh_adv.c
too many arguments to function 'sd_ble_gap_adv_stop'
in definition of macro 'APP_ERROR_CHECK'
ble_gap.h
mesh_adv.h
mesh_adv.c
declared here
in definition of macro 'SVCALL'
User Include Directories property has changed.
Compiling ‘ble_softdevice_support.c’
User Include Directories property has changed.
Compiling ‘nrf_mesh_weak.c’
D:/SeggerStudio/include/stdint.h does not exist.
Compiling ‘app_error_weak.c’
Build failed

Parents
  • Hi. 

    To me, it seems like there is something wrong with the SDK setup. 

     

    using nRF52840, when I try to build the light_switch example

     Which version of the nRF5 SDK for Mesh are you using?

     

    and change the SDK_ROOT to the direction of the sdk

     Which version of the nRF5 SDK are you pointing to in the SDK_ROOT?

     

    I link to all the libraries that project need

     What do you mean by this?

    ______________________________________

    Did you make any other changes to the light_switch example? To the code to the project settings?

    We do have a Getting Started guide in our infocenter.  I suggest that you follow the steps in Building the mesh stack and examples.

    Best regards, 
    Joakim

Reply
  • Hi. 

    To me, it seems like there is something wrong with the SDK setup. 

     

    using nRF52840, when I try to build the light_switch example

     Which version of the nRF5 SDK for Mesh are you using?

     

    and change the SDK_ROOT to the direction of the sdk

     Which version of the nRF5 SDK are you pointing to in the SDK_ROOT?

     

    I link to all the libraries that project need

     What do you mean by this?

    ______________________________________

    Did you make any other changes to the light_switch example? To the code to the project settings?

    We do have a Getting Started guide in our infocenter.  I suggest that you follow the steps in Building the mesh stack and examples.

    Best regards, 
    Joakim

Children
Related