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

Unable to build project (nRF5_SDK_14.2.0_17b948a) from windows cmd

Hello, I have followed the tutorial to run the examples from SDK14.2.0 for my nRF52840 Dev board on eclipse. I have everything set and updated including the components>toolchain>gcc>makefile.windows for my SDK with:

GNU_INSTALL_ROOT := C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major
GNU_VERSION := 7 
GNU_PREFIX :=arm-none-eabi

I have tried to run "make" from the cmd (....\nRF5_SDK_14.2.0_17b948a\examples\peripheral\blinky\pca10056\blank\armgcc) and this is what I ended up getting this:

process_begin: CreateProcess(NULL, "C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major\arm-none-eabi-gcc" --version, ...) failed.
make: ../../../../../../components/toolchain/gcc/Makefile.common:129: pipe: No error
Cannot find: 'C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major\arm-none-eabi-gcc'.
Please set values in: "D:/Akhil/Development/Development_SDK/nRF5_SDK_14.2.0_17b948a/nRF5_SDK_14.2.0_17b948a/components/toolchain/gcc/Makefile.windows"
according to the actual configuration of your system.
../../../../../../components/toolchain/gcc/Makefile.common:129: *** Cannot continue.  Stop.

I have changed and tried a lot of stuff in the makefile.windows, but I wasn't successful. Anyone out there who could help me understand what I am doing wrong here.

Thanks.

Parents
  • I too had this problem. I am using version 10.2.1 of GNU arm toolchain. It worked after these two changes in the Makefile.windows file. 
    1) Having '/' instead of '\" in the path. 
    2) Having /bin/ at the end. 

    This is how my Makefile.windows file look like. 
    GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/
    GNU_VERSION := 10.2.1
    GNU_PREFIX := arm-none-eabi

    NOTE: I am not sure how installing "the GNU ARM Eclipse plug-in project." affects the error. Because I don't remember my error disappeared after I reinstalled this plug in or not. 

Reply
  • I too had this problem. I am using version 10.2.1 of GNU arm toolchain. It worked after these two changes in the Makefile.windows file. 
    1) Having '/' instead of '\" in the path. 
    2) Having /bin/ at the end. 

    This is how my Makefile.windows file look like. 
    GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/
    GNU_VERSION := 10.2.1
    GNU_PREFIX := arm-none-eabi

    NOTE: I am not sure how installing "the GNU ARM Eclipse plug-in project." affects the error. Because I don't remember my error disappeared after I reinstalled this plug in or not. 

Children
No Data
Related