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.

  • Please note the default path for the toolchain is "C:\Program Files (x86)\GNU Tools Arm Embedded\7 2018-q2-update" which is what I was referring to, but just in case that was clear..

  • I installed GNU Tools version 7 in Windows 7 32-bit here:

    C:\Program Files\GNU Tools Arm Embedded\7 2018-q2-update

    I then installed nRF5_SDK_12.3.0_d7731ad here:

    C:\BLE\external\nRF5_SDK_12.3.0

    In the following folder:

    C:\BLE\external\nRF5_SDK_12.3.0\components\toolchain\gcc

    I modified Makefile.windows as follows:

    GNU_INSTALL_ROOT := C:\Program Files\GNU Tools Arm Embedded\7 2018-q2-update
    GNU_VERSION := 7.3.1
    GNU_PREFIX := arm-none-eabi
    SHELL=cmd.exe

    When I run 'make' in:

    C:\BLE\external\nRF5_SDK_12.3.0\examples\ble_peripheral\ble_app_eddystone\pca10040\s132\armgcc

    it successfully executes to completion, and nrf52832_xxaa.hex is created.

    I then installed nRF5_SDK_15.1.0_a8c0c4d here:

    C:\BLE\external\nRF5_SDK_15.1.0

    When I configure the exact same Makefile.windows here:

    C:\BLE\external\nRF5_SDK_15.1.0\examples\ble_peripheral\ble_app_eddystone\pca10040\s132\armgcc

    the make command fails with:

    C:\BLE\external\nRF5_SDK_15.1.0\examples\ble_peripheral\ble_app_eddystone\pca10040\s132\armgcc>make
    process_begin: CreateProcess(NULL, "C:\Program Files\GNU Tools Arm Embedded\7 2018-q2-updatearm-none-eabi-gcc" --version, ...) failed.
    Cannot find: 'C:\Program Files\GNU Tools Arm Embedded\7 2018-q2-updatearm-none-eabi-gcc'.
    Please set values in: "C:/BLE/external/nRF5_SDK_15.1.0/components/toolchain/gcc/Makefile.windows"
    according to the actual configuration of your system.
    ../../../../../../components/toolchain/gcc/Makefile.common:129: *** Cannot continue. Stop.

    C:\BLE\external\nRF5_SDK_15.1.0\examples\ble_peripheral\ble_app_eddystone\pca10040\s132\armgcc>

    Why does the same makefile.windows works fine with nRF5_SDK_12.3.0_d7731ad but fails with nRF5_SDK_15.1.0_a8c0c4d?

    Thank you.

  • 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!

  • changing "/" at the end worked for me , thanks

  • This worked for me, now to deal with the endless other compilation errors:

    GNU_INSTALL_ROOT := "C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin/"
    GNU_VERSION := 9.2.1
    GNU_PREFIX := arm-none-eabi

Related