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

Mesh SDK v2.2.0: Light Switch Build Fails on nrf_log.h & nrf_log_internal.h

Trying to build the unmodified light_switch_client_nrf52832_xxAA_s132_6_0_0.emProject from a fresh download of the Mesh SDK.

SDK_ROOT set & successfully tested as instructed.

app_error.c compile fails because it can't find nrf_log.h

so I added $(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/components/libraries/experimental_log to the Include Path

app_error.c compile then fails because it can't find nrf_log_internal.h

so I added $(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/components/libraries/experimental_log/src to the Include Path

Then it all builds OK.

So why was this missing from the Project??

Parents Reply
  • Ah, yes - the SDK installation has some changes. But the Mesh is "vanilla"

    The problem was the locations of the nrf_log.h and nrf_log_internal.h files

    They appear only in the components/libraries/experimental_log and components/libraries/experimental_log/src folders of my SDK.

    Those paths were not in the Mesh Projects.

    Pretty sure I haven't moved them, so do they also appear elsewhere in the "vanilla" SDK ?

    EDIT

    I should add that I was building the 'Debug' configuration.

    The same applies to the Server & Provisioner projects.

Children
Related