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

'Make' issue with nRF5_SDK_15.1.0_a8c0c4d

Apologies if this is a duplicate post:

I am successfully making nRF example apps in nRF5_SDK_12.3.0_d7731ad using GNU Tools Arm Embedded version 7 2018-q2-update in Windows 7 32-bit.

However, making the same apps within nRF5_SDK_15.1.0_a8c0c4d fails (similar issue reported in other posts), even with exactly the same makefile.windows that I use in 12.3.0.

When I compare the following 2 folders w.r.t. number of files:

..\nRF5_SDK_12.3.0\components\toolchain\gcc
..\nRF5_SDK_15.1.0\components\toolchain\gcc

I notice there are 16 files in the former, but only 5 files in the latter - why is that?

Then, when I copy the following 2 files from the 12.3.0 gcc folder to the 15.1.0 gcc folder, the make is successful:

Makefile.common (overwriting the original)
file_list.mk (does not exist in gcc folder of 15.1.0)

Any ideas?

Thank you

Parents
  • Thank you for the update Jorgen, apologies I should have been more clear on the error message.

    I used your makefile.windows in my folder:

    C:\BLE\external\nRF5_SDK_15.1.0\components\toolchain\gcc

    When I run make in:

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

    I get the following:


    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 (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/arm-none-eabi-gcc" --version, ...) failed.
    Cannot find: 'C:/Program Files (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/arm-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>

    Thank you

Reply
  • Thank you for the update Jorgen, apologies I should have been more clear on the error message.

    I used your makefile.windows in my folder:

    C:\BLE\external\nRF5_SDK_15.1.0\components\toolchain\gcc

    When I run make in:

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

    I get the following:


    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 (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/arm-none-eabi-gcc" --version, ...) failed.
    Cannot find: 'C:/Program Files (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/arm-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>

    Thank you

Children
  • It's complaining that it cannot find GCC. Are you sure that the path is correct, and that the file is available in the path?

  • 4530.Makefile.zip

    I attached the makefile.windows file that I use to make with SDK 12.3.0.  The make is successful:


    C:\BLE\external\nRF5_SDK_12.3.0\examples\peripheral\blinky\pca10040\blank\armgcc>make
    mkdir _build
    Compiling file: nrf_log_backend_serial.c
    Compiling file: nrf_log_frontend.c
    Compiling file: app_error.c
    Compiling file: app_error_weak.c
    Compiling file: app_timer.c
    Compiling file: app_util_platform.c
    Compiling file: hardfault_implementation.c
    Compiling file: nrf_assert.c
    Compiling file: sdk_errors.c
    Compiling file: boards.c
    Compiling file: nrf_drv_clock.c
    Compiling file: nrf_drv_common.c
    Compiling file: nrf_drv_uart.c
    Compiling file: nrf_nvic.c
    Compiling file: nrf_soc.c
    Compiling file: main.c
    Compiling file: RTT_Syscalls_GCC.c
    Compiling file: SEGGER_RTT.c
    Compiling file: SEGGER_RTT_printf.c
    Assembling file: gcc_startup_nrf52.S
    Compiling file: system_nrf52.c
    Linking target: _build/nrf52832_xxaa.out
    ''
    text data bss dec hex filename
    5136 108 116 5360 14f0 _build/nrf52832_xxaa.out
    ''
    Preparing: _build/nrf52832_xxaa.hex
    Preparing: _build/nrf52832_xxaa.bin

    C:\BLE\external\nRF5_SDK_12.3.0\examples\peripheral\blinky\pca10040\blank\armgcc>

    When I make using the makefile.windows you proposed, with SDK 15.1.0 it fails:


    C:\BLE\external\nRF5_SDK_15.1.0\examples\peripheral\blinky\pca10040\blank\armgcc>make
    process_begin: CreateProcess(NULL, "C:/Program Files (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/arm-none-eabi-gcc" --version, ...) failed.
    Cannot find: 'C:/Program Files (x86)/GNU Tools ARM Embedded/7 2018-q2-update/bin/arm-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.

    Surely if the path to my gcc was not correct, making with 12.3.0 would have failed too?

    I do notice you use forward slash "/" in your proposed makefile.windows file. As per attached file for 12.3.0, my makefile.windows references a backslash "\"...

  • SDK 12.3.0 Makefile did not require the path to include /bin/ at the end of the path. This is required in SDK 15.1.0. I guess you tried my Makefile.windows with the Makefile.common you copied from SDK 12.3.0? Please also check that the files are available in the path.

  • Problem solved.  I used the following in the makefile.windows on my 32-bit Win7 OS:

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

    I had to add the SHELL line, without it I got a  make error 128, followed by countless error 2's.

    The 'make' was successful, also with SDK 15.2.0 using the same makefile.windows.

    Case closed, thank you Jorgen.

Related