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

Eclipse build failed for Blinky w/ SDK 14 - Make Error 2

Hello!

I experienced the same errors as here and here when following the Eclipse gcc tutorial (7), but the solutions did not solve my problem.

I suspect this is related to my using SDK 14 instead of 13, as the project Makefile was tested with, but I did copy the attached Makefile.common to the directory, and it had no effect one way or the other. As for the general Makefile for the project, the following suggestions from other answers were individually then jointly applied without success after the build initially failed:

  1. CFLAGS += -O0 -g3 # was already in the Makefile
  2. changed components/toolchain/gcc/*.S to *.s (lower case) and changed "/Include" in Makefile line 54 to "/include"
  3. rebuilt c++ index
  4. commented Line 42 of Makefile (which referenced the non-existent nrf_delay.c)

Other important information:

  1. Here attached is my Makefile.
  2. I'm using Windows 10 pro.
  3. The Console error indicates a missing file - the I manually checked all of the includes and there is one that does not exist - there is no bsp folder in examples. I don't know if this is related, but it's all I could find
  4. Here attached is the verbose error from the Console.
  5. Everything in the tutorials works fine with nrfjprog.
  6. Make the folder utils are added to path and work readily in CMD - i.e. "where make" and "where mkdir" both point to the properly referenced GNU ARM Eclipse build tools folder.
  7. I did see something about spaces in the tools path, but there are no paths with spaces referenced in the Makefile. Should I move the build tools and toolchain to a path without spaces and tell Eclipse to look for such?
  8. The following lines show up with errors in Eclipse:

Makefile

  • Line 127 under all: clean: $(NO_ECHO)$(MAKE) -f $(MAKEFILE_NAME) -C $(MAKEFILE_DIR) -e cleanobj

  • Line 163 under $(OBJECT_DIRECTORY)/%.o: %.c: @echo Compiling file: $(notdir $<)

main.c

  • Lines 51, 52, 54: Unresolved inclusions for <stdbool.h>, <stdint.h> and "boards.h"

  • Line 65, while (true): symbol "true" could not be resolved

  • Line 67, for (int i = 0; i < LEDS_NUMBER; i++): symbol LEDS_NUMBER could not be resolved

Thanks for your help!

Parents
  • Hi, Seems like I've been having the same with Eclipse not recognize the board-specific definitions as yourself... I have just managed to solve it (on my system anyway!) here is what I have done.. I downloaded the armgcc file supplied by Vidar in his answer - I followed his instructions.. I then changed the Compiler command pattern that Vidar used to "(g?cc)|([gc]++)|(clang)|(.*gcc)" I then changed the following in the make file - Line 13: Change the "S" to a "s" for the gcc_startup_nrf52.s Add the following two include folders after Line 24; $(SDK_ROOT)/components/drivers_nrf/delay
    $(SDK_ROOT)/components/boards \

    I hope this helps! I'm now having all the same issues trying to get the ble->UART example running! Nordic really need to get this sorted - getting these examples running should be easy if they are going to support Eclipse they need to get examples that work

    G'luck, Paul P

  • So does anyone have a MakeFile for ble_uart for SDK14 ?

  • You can use the Makefile included in the SDK (\examples\ble_peripheral\ble_app_hrs\<board>\<softdevice>\armgcc, and create a new eclipse Makefile managed project.  

Reply Children
No Data
Related