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

Compiling GitHub examples

Hi!,

I'm trying to compile GitHub examples, for example this github.com/.../nrf51-ble-tutorial-service

I cloned it into nRF5_SDK_12.1.0_0d23e2a/examples/peripheral. But I get a compilation error.

 javi@PC:~/Development/Nordic/nRF5_SDK_12.1.0_0d23e2a/examples/peripheral/nrf51-ble-tutorial-service/SDK11.0.0/nrf5-ble-tutorial-service/pca10028/s130/armgcc$

 make 

 rm -rf _build 

 echo  Makefile

 Makefile 

 mkdir _build 

 make: *** There is no rule to build the target  '_build/app_button.o', neccesary for 'nrf51422_xxac_s130'. 

 Stop.

I changed this line in Makefile TEMPLATE_PATH = ../../../../../../components/toolchain/gcc by this other TEMPLATE_PATH = ../../../../../../../../components/toolchain/gcc

I have the same error with other examples. I have to use SDK_11.0 to compile these examples?

Best regards

Parents
  • Hi,

    The GitHub example is written for SDK 11 and will not work with SDK 12.1 without being rewritten. Some of the module APIs in SDK have changed between version 11 and 12 and some modules have been added/deprecated. See the SDK 12.1 Introduction page on the infocenter for details about changes.

    SDK 12 also use a different method of configuring the modules used in each example. This might be the main reason for your error appearing.

    If you just want to learn the basics in the tutorials, it is no problem using SDK 11. You can then implement the functionality in your SDK 12 application afterwards.

    Best regards,

    Jørgen

  • Hi,

    Thanks for the reply,

    I just try now with nRF5_SDK_11.0.0_89a8197 but I get the same error.

    Best regards

    javi@PC:~/Development/Nordic/nRF5_SDK_11.0.0_89a8197/examples/ble_peripheral/nrf51-ble-tutorial-service/SDK 11.0.0/nrf5-ble-tutorial-service/pca10028/s130/armgcc$ make
    rm -rf _build
    echo  Makefile
    Makefile
    mkdir _build
    make: *** No hay ninguna regla para construir el objetivo '_build/app_button.o', necesario para 'nrf51422_xxac_s130'.  Alto.
    
Reply
  • Hi,

    Thanks for the reply,

    I just try now with nRF5_SDK_11.0.0_89a8197 but I get the same error.

    Best regards

    javi@PC:~/Development/Nordic/nRF5_SDK_11.0.0_89a8197/examples/ble_peripheral/nrf51-ble-tutorial-service/SDK 11.0.0/nrf5-ble-tutorial-service/pca10028/s130/armgcc$ make
    rm -rf _build
    echo  Makefile
    Makefile
    mkdir _build
    make: *** No hay ninguna regla para construir el objetivo '_build/app_button.o', necesario para 'nrf51422_xxac_s130'.  Alto.
    
Children
No Data
Related