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

Issue/Error while compiling Thingy Mesh Provisioning Demo v0.7 sdk project

Hello,

I want to test the Thingy Mesh Provisioning Demo v0.7 with the codes provided on the GitHub:

https://github.com/NordicPlayground/thingy52-mesh-provisioning-demo

I have encountered an error while compiling the codes of "thingy_provisioning_demo.emProject" in the folder <thingy_provisioning_demo> using SEGGER Embedded Studio for ARM.

1. Firstly I used the "Nordic nRF5 SDK for Mesh v3.2.0" provided on Github

Encountered Following Errors:

Building ‘Thingy52-mesh-provisioning-demo-v0.6’ from solution ‘Thingy52-mesh-provisioning’ in configuration ‘Debug’
Compiling ‘main.c’
implicit declaration of function 'support_func_configure_io_startup' [-Wimplicit-function-declaration]
'BUTTON_PULL' undeclared (first use in this function); did you mean 'BUTTON_BOARD'?
in expansion of macro 'BUTTON_PIN_CONFIG'
each undeclared identifier is reported only once for each function it appears in
in expansion of macro 'BUTTON_PIN_CONFIG'
Compiling ‘app_onoff.c’
Compiling ‘rtt_input.c’
Compiling ‘mesh_app_utils.c’
Build failed

2. Then I also tried using the latest version "nRF5 SDK for Mesh v4.1.0"

Encountered Following Error:

Building ‘Thingy52-mesh-provisioning-demo-v0.6’ from solution ‘Thingy52-mesh-provisioning’ in configuration ‘Debug’
Compiling ‘main.c’
main.c
"STATIC_AUTH_DATA" redefined
main.c
this is the location of the previous definition
macro "APP_ONOFF_SERVER_DEF" requires 6 arguments, but only 5 given
expected ';' before 'static'
main.c
'm_onoff_server_0' undeclared (first use in this function); did you mean 'app_onoff_server_t'?
in definition of macro 'ERROR_CHECK'
each undeclared identifier is reported only once for each function it appears in
in definition of macro 'ERROR_CHECK'
implicit declaration of function 'support_func_configure_io_startup' [-Wimplicit-function-declaration]
'BUTTON_PULL' undeclared (first use in this function); did you mean 'BUTTON_BOARD'?
in expansion of macro 'BUTTON_PIN_CONFIG'
Compiling ‘app_onoff.c’
Compiling ‘rtt_input.c’
Compiling ‘mesh_app_utils.c’
Build failed

I have followed the steps shown in the Demo-page. However when hitting "Build & Run", the error message is triggered.

I sincerely appreciate your effort and time for looking into this matter. I am looking forward to your reply.

Thank you.

Best regards

Parents
  • Hi.

    Did you follow and complete all the steps?

    Building the demo

    To run the demo, you can use the precompiled firmware, or use Segger Embedded Studio to compile the firmware.

    To compile the demo firmware and run the demo, please follow the steps:

    1. Download and extract nRF5 Mesh SDK v3.2.0
    2. Extract ThingySDKv2.1_mod.zip inside "external" in Mesh SDK. Should keep the "ThingySDKv2.1" folder name.
    3. Download and extract nRF5 SDK v15.3
    4. In SDK v15.3: \components\boards folder remove/rename file pca20020.h. It conflicts with the same file in Thingy SDK.
    5. Clone this repo into \examples\ (so that thingy_provisioning_demo.emProject is 2 levels under "examples" folder. )
    6. Connect the Thingy to the Debug port out on the DK or the Segger Jlink debugger.
    7. Do an erase all to remove the Thingy original firmware and bootloader
    8. Open Segger Embedded Studio, and install the "nRF CPU Support Package". You can check it by click the main tool bar "Tools" -> "Package Manager", and search "nRF CPU Support Package".
    9. Make sure you followed the SES.md guide in \doc\getting_started in nRF MESH SDK v3.2.0 of adding SDK_ROOT macro into SES, the same as when you started with Mesh examples.
    10. Compile one of the project provided in this repo and flash the firmware, the softdevice is flashed automatically.

    Have you made sure that you are using the correct version of the SDK's listed in the requirements?
    I have no issues building the demo.

    Best regards,
    Joakim

Reply
  • Hi.

    Did you follow and complete all the steps?

    Building the demo

    To run the demo, you can use the precompiled firmware, or use Segger Embedded Studio to compile the firmware.

    To compile the demo firmware and run the demo, please follow the steps:

    1. Download and extract nRF5 Mesh SDK v3.2.0
    2. Extract ThingySDKv2.1_mod.zip inside "external" in Mesh SDK. Should keep the "ThingySDKv2.1" folder name.
    3. Download and extract nRF5 SDK v15.3
    4. In SDK v15.3: \components\boards folder remove/rename file pca20020.h. It conflicts with the same file in Thingy SDK.
    5. Clone this repo into \examples\ (so that thingy_provisioning_demo.emProject is 2 levels under "examples" folder. )
    6. Connect the Thingy to the Debug port out on the DK or the Segger Jlink debugger.
    7. Do an erase all to remove the Thingy original firmware and bootloader
    8. Open Segger Embedded Studio, and install the "nRF CPU Support Package". You can check it by click the main tool bar "Tools" -> "Package Manager", and search "nRF CPU Support Package".
    9. Make sure you followed the SES.md guide in \doc\getting_started in nRF MESH SDK v3.2.0 of adding SDK_ROOT macro into SES, the same as when you started with Mesh examples.
    10. Compile one of the project provided in this repo and flash the firmware, the softdevice is flashed automatically.

    Have you made sure that you are using the correct version of the SDK's listed in the requirements?
    I have no issues building the demo.

    Best regards,
    Joakim

Children
Related