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

Undeclared Variable in Thingy 52 Mesh Provisioning Demo

Hello,

I want to test the mesh provisioning demo 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 "light_switch_proxy_server_nrf52832_xxAA_s132_6_0_0.emProject"  in the folder <thingy_provisioning_demo_generic_OnOff_BLINK> using Embedded Studio for ARM.

The error is as shown below:

Building ‘thingy52-mesh-provisioning-demo’ from solution ‘thingy52-mesh-provisioning-demo’ in configuration ‘Debug’
  Compiling ‘main.c’
    m_ble.h
    m_ui.h
    main.c
    "SLAVE_LATENCY" redefined
    main.c
    this is the location of the previous definition
    m_ble.h
    m_ui.h
    main.c
    "FIRST_CONN_PARAMS_UPDATE_DELAY" redefined
    main.c
    this is the location of the previous definition
    m_ble.h
    m_ui.h
    main.c
    "NEXT_CONN_PARAMS_UPDATE_DELAY" redefined
    main.c
    this is the location of the previous definition
    "MIN_CONN_INTERVAL" redefined
    main.c
    this is the location of the previous definition
    "MAX_CONN_INTERVAL" redefined
    main.c
    this is the location of the previous definition
    "SLAVE_LATENCY" redefined
    m_ble.h
    m_ui.h
    main.c
    this is the location of the previous definition
    'DEV_BOARD_LF_CLK_CFG' undeclared (first use in this function); did you mean 'NRF_RADIO_HFCLK_CFG'?
    each undeclared identifier is reported only once for each function it appears in
    implicit declaration of function 'execution_start' [-Wimplicit-function-declaration]
  Compiling ‘rtt_input.c’
  Compiling ‘mesh_app_utils.c’
  Compiling ‘nrf_mesh_weak.c’
Build failed

Completed

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,

    I have tested the demo and it seems to compile with no errors. You might have forgotten to rename the file pca20020.h in SDKv15. Have a look at step 4 under "Building the demo" on Github. After you changed the name, do a clean before you build again and it should compile fine I think.

  • Hi Mttrinh,

    Thank you for your reply. I have actually remove the file pca20020.h in nRF5_SDK_15.2.0_9412b96\components\boards instead of renaming it. It should do the same right? My folders look like this:

    Nordic

    • nRF MESH SDK v3.0.0
      • bin
      • CMake
      • doc
      • examples
        • beaconing
        • common
        • etc ... ...
        • light_switch
          • thingy_provisioning_demo_generic_OnOff_BLINK
            • light_switch_proxy_server_nrf52832_xxAA_s132_6_0_0.emProject
            • etc ... ...
      • external
        • app_timer
        • etc ... ...
      • mesh
      • models
      • scripts
      • tools
      • CMakeLists.txt
      • etc ... ...
    • nRF5_SDK_15.2.0_9412b96
      • components
      • config
      • documentation
      • examples
      • external
      • external_tools
      • etc ... ...

    I couldn't find the declaration of the variable 'DEV_BOARD_LF_CLK_CFG'. Thanks again for your attention!

    Best regards,

Reply
  • Hi Mttrinh,

    Thank you for your reply. I have actually remove the file pca20020.h in nRF5_SDK_15.2.0_9412b96\components\boards instead of renaming it. It should do the same right? My folders look like this:

    Nordic

    • nRF MESH SDK v3.0.0
      • bin
      • CMake
      • doc
      • examples
        • beaconing
        • common
        • etc ... ...
        • light_switch
          • thingy_provisioning_demo_generic_OnOff_BLINK
            • light_switch_proxy_server_nrf52832_xxAA_s132_6_0_0.emProject
            • etc ... ...
      • external
        • app_timer
        • etc ... ...
      • mesh
      • models
      • scripts
      • tools
      • CMakeLists.txt
      • etc ... ...
    • nRF5_SDK_15.2.0_9412b96
      • components
      • config
      • documentation
      • examples
      • external
      • external_tools
      • etc ... ...

    I couldn't find the declaration of the variable 'DEV_BOARD_LF_CLK_CFG'. Thanks again for your attention!

    Best regards,

Children
No Data
Related