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 exact problem with the current version of the GNU ARM Embedded toolchain (Version 7-2018-q2-update *as of this posting*)

    I solved the issue by manually modifying the path of the toolchain to the following: 

    "C:\Program Files (x86)\GNU Tools Arm Embedded\7 2018-q2"

    It appears that whatever portion of Makefile.common, does not appropriately parse the "-update" portion of the path. 

    My current Makefile.windows is the following: 

    PROGFILES=C:/Program Files (x86)
    GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools Arm Embedded/7 2018-q2/bin/
    GNU_VERSION := 7.3.1
    GNU_PREFIX := arm-none-eabi

    Verified working output within an nRF52 example: 

    C:\Nordic\nRF5_SDK_15.0.0_a53641a\external\micro-ecc\nrf52hf_armgcc\armgcc>make
    mkdir _build
    cd _build && mkdir micro_ecc_lib
    Compiling file: uECC.c
    Creating library: ../../nrf52hf_armgcc/armgcc/micro_ecc_lib_nrf52.a
    C:/Program Files (x86)/GNU Tools Arm Embedded/7 2018-q2/bin/arm-none-eabi-ar: creating ../../nrf52hf_armgcc/armgcc/micro_ecc_lib_nrf52.a
    Done

    Hopefully this helps you, I was also struggling with this forever... 

  • I am +1 for the solution by seggles.

    I am using SDK15.2.0 and I have my GNU tools installed in: C:\Program Files (x86)\GNU Tools ARM Embedded\7 2018-q2u.

    ( because of other attempts to fix, I truncated the '7 2018-q2-update' to the shown '7 2018-q2u'. I doubt this changes anything).

     I changed the makefile.windows as suggested by seggles and it fixed how the (x86) was being parsed, which was the most likely root of my problem.  I didnt have any need of modifying my makefile.common file either.

    Cheers!

Reply
  • I am +1 for the solution by seggles.

    I am using SDK15.2.0 and I have my GNU tools installed in: C:\Program Files (x86)\GNU Tools ARM Embedded\7 2018-q2u.

    ( because of other attempts to fix, I truncated the '7 2018-q2-update' to the shown '7 2018-q2u'. I doubt this changes anything).

     I changed the makefile.windows as suggested by seggles and it fixed how the (x86) was being parsed, which was the most likely root of my problem.  I didnt have any need of modifying my makefile.common file either.

    Cheers!

Children
No Data
Related