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

NRF52840 DK "long range" test problem when building.

Hi! Please, excuse the probably stupid question but I'm a real newbie. I'm trying to perform a long range coverage test. I got two NRF52840 DK. Got to install both Segger and SDK and all other demos would  run with no problems. But I tried to run the "nRF52-ble-long-range-demo" from GitHub and: first tried to dump the "hex" files but no result...no terminal debug output and no RTT...then I tried to debug and run the solution from segger but I got these errors:

Building ‘central_long_range_demo_pca10056_s140’ from solution ‘central_long_range_demo_pca10056_s140’ in configuration ‘Debug’
1> Compiling ‘nrf_log_backend_serial.c’
2> Compiling ‘nrf_log_backend_rtt.c’
3> Compiling ‘nrf_log_backend_uart.c’
4> Compiling ‘nrf_log_default_backends.c’
1> cc1: fatal error: C:\Nordic\components\libraries\experimental_log\src\nrf_log_backend_serial.c: No such file or directory
1> compilation terminated.
2> cc1: fatal error: C:\Nordic\components\libraries\experimental_log\src\nrf_log_backend_rtt.c: No such file or directory
2> compilation terminated.
3> cc1: fatal error: C:\Nordic\components\libraries\experimental_log\src\nrf_log_backend_uart.c: No such file or directory
3> compilation terminated.
4> cc1: fatal error: C:\Nordic\components\libraries\experimental_log\src\nrf_log_default_backends.c: No such file or directory
4> compilation terminated.
Build failed

Any hint would be greatly appreciated.
Carlos

  • To make it easy you need to compile those examples under the same SDK as they were created. 

    The problem is those target files. nrf_log_backend_serial.. are not located in that directory anymore. Most of them are located here:

    ..\components\libraries\log\src

    And so you need to redirect the compiler.

    I do also wish there was a long range example under the 15.3 SDK.

  • Hi Jacky4566.  Thanks por your help. So you mean that replacing the installed SDK 15.3.. for the 15.0 should do the trick ?

  • I'm replying to myself.. I changed to SDK 15.0 AND solutions should be in the "experimental" folder instead of the ": ..\nRF5_SDK_15.0.0_a53641a\examples\ble_central_and_peripheral\" as stated in the GitHub. Doing so, both versions (peripheral and central) compile and work correctly. 

    Thanks to all of you!

  • HI!

    I just tried your solution. Central is compiling now. but with peripheral I get following errors:

    ebuilding ‘peripheral_long_range_demo_pca10056_s140’ from solution ‘peripheral_long_range_demo_pca10056_s140’ in configuration ‘Debug’
    1> Assembling ‘thumb_crt0.s’
    2> Compiling ‘nrf_log_backend_rtt.c’
    3> Compiling ‘nrf_log_backend_serial.c’
    4> Compiling ‘nrf_log_backend_uart.c’
    5> Compiling ‘nrf_log_default_backends.c’
    6> Compiling ‘nrf_log_frontend.c’
    7> Compiling ‘nrf_log_str_formatter.c’
    8> Compiling ‘app_button.c’
    5> cc1: fatal error: can't open 'D:/Entwicklung/nRF5/nRF5_SDK_15.0.0_a53641a/nRF5_SDK_15.0.0_a53641a/examples/ble_central_and_peripheral/experimental/peripheral_long_range_demo_kit/pca10056/s140/ses/Output/peripheral_long_range_demo_pca10056_s140 Debug/Obj/nrf_log_default_backends.asm' for writing: No such file or directory
    5> compilation terminated.
    2> In file included from D:\Entwicklung\nRF5\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_rtt.c:42:0:
    2> ../../../../../../../components/libraries/experimental_log/nrf_log_backend_rtt.h:52:10: fatal error: nrf_log_backend_interface.h: No such file or directory
    2> compilation terminated.
    3> In file included from D:\Entwicklung\nRF5\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_serial.c:42:0:
    3> D:\Entwicklung\nRF5\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_serial.h:53:10: fatal error: nrf_log_backend_interface.h: No such file or directory
    3> compilation terminated.
    4> In file included from D:\Entwicklung\nRF5\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_uart.c:42:0:
    4> ../../../../../../../components/libraries/experimental_log/nrf_log_backend_uart.h:52:10: fatal error: nrf_log_backend_interface.h: No such file or directory
    4> compilation terminated.
    7> In file included from ../../../../../../../components/libraries/experimental_log/nrf_log_str_formatter.h:53:0,
    7> from D:\Entwicklung\nRF5\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_str_formatter.c:42:
    7> ../../../../../../../components/libraries/experimental_log/nrf_log_ctrl.h:58:10: fatal error: nrf_log_ctrl_internal.h: No such file or directory
    7> compilation terminated.
    6> In file included from D:\Entwicklung\nRF5\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_frontend.c:46:0:
    6> ../../../../../../../components/libraries/experimental_log/nrf_log_ctrl.h:58:10: fatal error: nrf_log_ctrl_internal.h: No such file or directory
    6> compilation terminated.
    Build failed

    What do I have to change?

  • Hi

    Windows doesn't like very deep folder trees, and I think that might be the issue in your case.

    Rather than putting the SDK inside D:/Entwicklung/nRF5/nRF5_SDK_15.0.0_a53641a/nRF5_SDK_15.0.0_a53641a/, could you try moving it further up in the tree so that it can be found under D:/Entwicklung/nRF5_SDK_15.0.0_a53641a/ only?

    Best regards
    Torbjørn

Related