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

nRF52DK and SDK 11.0, cant make exmaples

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
Parents
  • I got the same issue when I migrated to sdk11. You will notice that the makefile now has abspath in front of every path to .c files and included folders. This means that if there are spaces or other characters that are unsupported in your path to the makefile, it will answer with ''no rule to make target''. Rename the path to your sdk such as there are no spaces. Example (windows but applicable to any OS): C:/users/firstname lastname/sdk will not work but C:/users/firstnamelastname/sdk will work. I hope this solves your issue.

Reply
  • I got the same issue when I migrated to sdk11. You will notice that the makefile now has abspath in front of every path to .c files and included folders. This means that if there are spaces or other characters that are unsupported in your path to the makefile, it will answer with ''no rule to make target''. Rename the path to your sdk such as there are no spaces. Example (windows but applicable to any OS): C:/users/firstname lastname/sdk will not work but C:/users/firstnamelastname/sdk will work. I hope this solves your issue.

Children
Related