eclipse build error

PerryJ gravatar image

asked 2016-03-21 17:13:42 +0100

updated 2016-03-21 19:27:19 +0100

I am having an issue with running the initial blinky example that came with the nRF51 PCA10028 SDK in the Eclipse IDEimage description. I will include screenshots of the issue. I believe my paths in the project properties are set correctly, and I also believe that I have installed all elements of the setup guide appropriately.

Error: make[1]: Leaving directory `C:/Users/Perry/Desktop/SDK/examples/peripheral/blinky/pca10028/blank/armgcc' make (e=2): The system cannot find the file specified.

make[1]: * [_build/system_nrf51.o] Error 2 make: * [all] Error

image description

edit retag flag offensive close delete report spam


Hi Perry, Have you checked you have correct version of GNU Tools ARM Embedded ? It should be v4.9 2015q1 as shown in your screenshot. If you don't have the same version, you can modify the configuration file Makefile.windows to match. It's located in SDK folder\components\toolchain\gcc\

Hung Bui ( 2016-03-22 13:48:57 +0100 )editconvert to answer

I installed the GNU Tools ARM Embedded v4.92015q3, I have updated this in my Makefile.windows to be "GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools ARM Embedded/4.9 2015q3"

PerryJ ( 2016-03-22 22:09:36 +0100 )editconvert to answer

2 answers

Sort by ยป oldest newest most voted
js-carlos gravatar image

answered 2016-03-23 20:38:31 +0100

PerryJ gravatar image

updated 2016-03-23 21:27:15 +0100

The PATH in the windows environment variables, this is a tutorial on how to do it. You have to add C:\Program Files (x86)\GnuWin32\bin and C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q3\bin if its not there.

edit flag offensive delete publish link more
js-carlos gravatar image

answered 2016-03-22 18:25:11 +0100

Hi Perry, this usually means that the GNU toolchain path is set incorrectly, make sure that you have put the correct path in the file called makefile.windows/posix inside <SDK>/components/toolchain/gcc, the extension of the makefile depends on the platform you are using (Windows or OSX/Linux). Good luck.

edit flag offensive delete publish link more


Is the tool chain I should be referencing in the C/C++ General/Paths and Symbols/Includes/GNU C?

I made this change as listed above, and I now have a new error as listed below.

Error: Program "make" not found in PATH PATH=[C:\Users\Perry\Desktop\SDK\components\toolchain\gcc;C:\Users\Perry\Desktop\SDK\components\toolchain\gcc;C:/Program Files/Java/jre1.8.0_74/bin/server;C:/Program Files/Java/jre1.8.0_74/bin;C:/Program Files/Java/jre1.8.0_74/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\;C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q3\bin;C:\Users\Perry\Desktop\Eclipse Install Extraction\eclipse]

PerryJ ( 2016-03-22 19:56:33 +0100 )editconvert to answer

@PerryJ: Have you installed Make for Windows ? I haven't seen GnuWin32 in the list in your PATH. Please follow the tutorial here.

Hung Bui ( 2016-03-23 12:55:18 +0100 )editconvert to answer

I have followed the tutorial you linked to, and installed Make for Windows already.

PerryJ ( 2016-03-23 20:11:07 +0100 )editconvert to answer

Add C:\Program Files (x86)\GnuWin32\bin to your PATH variable (both administrator and user), also you have to install coreutils. Also make sure that in your project properties in C/C++ Build then Builder Settings tab then Build command you have make VERBOSE=1

Carlos ( 2016-03-23 20:19:12 +0100 )editconvert to answer

I have installed coreutils, and set the Build command to "make VERBOSE=1". Which PATH variable are you referring to?

PerryJ ( 2016-03-23 20:35:25 +0100 )editconvert to answer


Thank you Carlos!

PerryJ ( 2016-03-23 20:49:07 +0100 )editconvert to answer

I've done all of those steps and that still doesn't manage to see the nrf related code.

MikeLemon ( 2017-04-18 01:55:50 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower


Asked: 2016-03-21 17:13:42 +0100

Seen: 166 times

Last updated: mars 22 '16