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

NRF52832 GCC Makefile help

Hello.

I'm using a nrf52 dk (nrf52832) + GCC 9.2.1 (9 2019 q4 major) + WIN10 + CLION and I'm trying to build an example project using GCC.

I get the following error:

"C:\Program Files (x86)\GnuWin32\bin\make.exe" --just-print --print-directory --keep-going all
Cannot find: "C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc".
process_begin: CreateProcess(NULL, "", ...) failed.
../NRF52_SDK/components/toolchain/gcc/Makefile.common:130: *** Cannot continue. Stop.
Please set values in: "B:/WORK_DEV/NRF52_SDK/components/toolchain/gcc/Makefile.windows"
according to the actual configuration of your system.
make: Entering directory `B:/WORK_DEV/RELAY'
make: Leaving directory `B:/WORK_DEV/RELAY'

Process finished with exit code 2
Make execution failed with exit code = 2

Which is weird, because, firing up cmd and inputing the same "cannot find" command, yields

C:\Users\Master>"C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc"
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

(however, "C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc" --version = Access is denied ?!)

Anyway, I noticed that in the Makefile.common, the quote macro replaces , with single quotes. I modified it to include double quotes (for paths with spaces, on windows).

As per your documentation, I set the compiler location in Makefile.windows 

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
SHELL := cmd.exe

but still no dice.

Thank you for your time.

UPDATE:

"C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc" --version

now returns 9.2.1, instead of Access denied. It was a windows defender issue (switched it off).

---

Parents Reply Children
Related