I have a new nRF52-DK (PCA10040) and I'm trying to make some examples using arm-gcc. With freshly downloaded nRF5_SDK_11.0.0_89a8197 and Makefile.posix modified to point to gcc-arm toolchain, I cant make the examples. With Blinky I get
Adityas-Mac-mini-12322:armgcc adityatannu$ make
rm -rf _build
echo Makefile
Makefile
mkdir _build
make: *** No rule to make target `_build/nRF5_SDK_11.0.0_89a8197', needed by `nrf52832_xxaa'. Stop.
Same thing with nRF51_SDK_10.0.0_dc26b5e and a board like PCA10036, works fine.
rm -rf _build
echo Makefile
Makefile
mkdir _build
Compiling file: system_nrf51.c
Compiling file: main.c
Compiling file: nrf_delay.c
Compiling file: gcc_startup_nrf51.s
Linking target: nrf51822_xxaa.out
Preparing: nrf51822_xxaa.bin
Preparing: nrf51822_xxaa.hex
text data bss dec hex filename
1076 104 28 1208 4b8 _build/nrf51822_xxaa.out