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

  • (If you don't think my previous comment solved the issue, then for the benefit of others, you should describe what you did to fix the issue.) The new problem is probably unrelated. My guess is capitalization error .S => .s as already reported in this forum. When you ask questions, please report your environment i.e. platform.

  • @Butch, it did not solve the issue I am using OS X El capitan with Eclipse neon and GCCv4.9

    @Vidar: Here is my make version output GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    I hope this tells us whats going on.

  • I think you mean: "it did not get me to my goal of a clean compile". But you have reported two problems: 1)nrf_delay.o and 2)gcc_startup_nrf52.o. I assume you have solved the first problem. The second problem might have been reported here: devzone.nordicsemi.com/.../. You probably need to change the suffix on that file in the SDK from .S to .s. Before you post a question, please search the answers using the symptom string for your problem. If you had done that, you would have found that post.

  • 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

Related