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

Compiler can't find nrf_mbr.h when compiling nrf_log modules

When I compile one of the nfr_log modules (e.x. nrf_log_frontend.c) I get the following error.

1> Compiling ‘nrf_log_frontend.c’
1> In file included from ../../SDKs/nRF_SDK/components/libraries/util/sdk_common.h:61,
1>                  from C:\nerv-code\Lancelot_Dev\SDKs\nRF_SDK\components\libraries\log\src\nrf_log_frontend.c:40:
1> ../../SDKs/nRF_SDK/components/libraries/util/app_util.h:133:10: fatal error: nrf_mbr.h: No such file or directory
1> compilation terminated.

I do include ../components/softdevice/s132/headers/nfr52 in my User Include Directories which contains the nfr_mbr.h header file, but the compiler still complains. At first I thought it could be because I have another path in my User Include Directories which also had the nfr_mbr.h but that was not the case - ..\components\softdevice\mbr\nrf52832\headers is not included.

How can I fix this?

Parents Reply
  • Hi, I actually figured what the problem was. I had a typo in the path to this header file in my preprocessor include directories.
    But the source of this problem is that we wanted to have our source code outside the SDK directory which requires manually adding all the header files dependencies. This problem was more apparent when I was trying to integrate an example (a BLE example in my case) from the SDK into my source code which was started from a different example (a gpio example).

Children
No Data
Related