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

Eclipse Neon build error for blinky project.

I am trying to follow the tutorial given on this page:

devzone.nordicsemi.com/.../

However, my eclipse project does not build and created following log

13:55:03 **** Build of configuration Default for project blinky_blank_pca10040 ****
make VERBOSE=1 all 
rm -rf _build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f  Makefile -C ./  -e cleanobj
rm -rf _build/*.o
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f  Makefile -C ./  -e nrf52832_xxaa
echo  Makefile
Makefile
mkdir _build
Compiling file: system_nrf52.c
'/Users/bhaumik/mac-build/gcc-arm-none-eabi-4_9-2015q3//bin/arm-none-eabi-gcc' -DNRF52_PAN_12 -DNRF52_PAN_15 -DNRF52_PAN_58 -DNRF52_PAN_20 -DNRF52_PAN_54 -DNRF52_PAN_31 -DNRF52_PAN_30 -DNRF52_PAN_51 -DNRF52_PAN_36 -DNRF52_PAN_53 -DCONFIG_GPIO_AS_PINRESET -DNRF52_PAN_64 -DNRF52_PAN_55 -DNRF52_PAN_62 -DNRF52_PAN_63 -DBOARD_PCA10040 -DNRF52 -DBSP_DEFINES_ONLY -mcpu=cortex-m4 -mthumb -mabi=aapcs --std=gnu99 -Wall -Werror -O0 -g3 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums  -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain/gcc -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/examples/peripheral/blinky -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/examples/bsp -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/device -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/drivers_nrf/delay -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain/CMSIS/Include -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/drivers_nrf/hal -c -o _build/system_nrf52.o /Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain/system_nrf52.c
Compiling file: main.c
'/Users/bhaumik/mac-build/gcc-arm-none-eabi-4_9-2015q3//bin/arm-none-eabi-gcc' -DNRF52_PAN_12 -DNRF52_PAN_15 -DNRF52_PAN_58 -DNRF52_PAN_20 -DNRF52_PAN_54 -DNRF52_PAN_31 -DNRF52_PAN_30 -DNRF52_PAN_51 -DNRF52_PAN_36 -DNRF52_PAN_53 -DCONFIG_GPIO_AS_PINRESET -DNRF52_PAN_64 -DNRF52_PAN_55 -DNRF52_PAN_62 -DNRF52_PAN_63 -DBOARD_PCA10040 -DNRF52 -DBSP_DEFINES_ONLY -mcpu=cortex-m4 -mthumb -mabi=aapcs --std=gnu99 -Wall -Werror -O0 -g3 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums  -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain/gcc -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/examples/peripheral/blinky -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/examples/bsp -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/device -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/drivers_nrf/delay -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/toolchain/CMSIS/Include -I/Users/bhaumik/Downloads/nRF5_SDK_12-2/components/drivers_nrf/hal -c -o _build/main.o /Users/bhaumik/Downloads/nRF5_SDK_12-2/examples/peripheral/blinky/main.c
make[1]: *** No rule to make target `_build/nrf_delay.o', needed by `nrf52832_xxaa'.  Stop.
make: *** [all] Error 2

13:55:03 Build Finished (took 274ms)

I am wondering why, I am wondering if my paths have to do something with it.

Any help will be appreciated.

Makefile

Parents
  • To resolve the issue, it takes two key piece of information both provided by @butch

    To summarize:

    1. There is no nrf_delay.c file anymore, your makefile is actually looking for it. Remove line 42 of the makefile that was part of the template given in this tutorial.

      $(abspath ../../../../../../components/drivers_nrf/delay/nrf_delay.c) \

    or just add # in front of that line.

    1. There is SDK bug, there is inconsistencies in how the file names are in makefile and in actual idk folder (This might not be an issue on Windows but it will be on mac and linux). The corrections are:

    a) components/toolchain/gcc/*.S should be *.s For this I changed the file name in SDK

    b) components/toolchain/CMSIS/Include is now named ...cmsis/include. For this I changes the path in makefile line number 54 to match the correct letter case.

    This was a bug report from @butch more in depth description on this issue is found [here]. (devzone.nordicsemi.com/.../)

    Here is modified makefile for the blinky project Makefile

  • Thanks for taking the time to post the solution. However, it looks like you are using a Makefile from SDK 11 or earlier with SDK 12.0.0. This will not work out-of-the-box due to code changes.

    I will update the tutorial with SDK 12.0.0 examples when I get time.

Reply Children
No Data
Related