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

GCC Build w/sdk9 (no rule to make target)

Hi there!

I've followed the guide to Eclipse GCC (using OSX) from here:devzone.nordicsemi.com/.../

I had to add some stuff to main.c to have it built (e.g. BSP_LED_APP_TIMERS_NUMBER).

Apart from that it seems like everything goes well, until I need to build the app using the make file.

I get the following error:

make[1]: *** No rule to make target _build/app_button.o, needed by nrf51422_xxac_s110.  Stop.

Please help, I've spent a lot of hours trying to get this to work.

Thanks! Henrik

Parents
  • Some things to check off the top of my head:

    First open a command prompt and type: arm-none-eabi-gcc -v It should print a bunch of info & version number. This will tell you the compiler is installed correctly and in your path variables.

    Also I had to modify the makefile a bit to get it to work. Namely: GNU_INSTALL_ROOT := /usr/arm-none-eabi and all of the toolchain commands: CC := '$(GNU_PREFIX)-gcc' So double check your paths and make sure they are correctly defined in the Makefile.

    Last make sure your make target is set as nrf52832_xxaa_s132 or one of the valid targets.

    If none of that works this tutorial should get you there: www.hertaville.com/gcc-arm-toolchain-stm32f0discovery.html

Reply
  • Some things to check off the top of my head:

    First open a command prompt and type: arm-none-eabi-gcc -v It should print a bunch of info & version number. This will tell you the compiler is installed correctly and in your path variables.

    Also I had to modify the makefile a bit to get it to work. Namely: GNU_INSTALL_ROOT := /usr/arm-none-eabi and all of the toolchain commands: CC := '$(GNU_PREFIX)-gcc' So double check your paths and make sure they are correctly defined in the Makefile.

    Last make sure your make target is set as nrf52832_xxaa_s132 or one of the valid targets.

    If none of that works this tutorial should get you there: www.hertaville.com/gcc-arm-toolchain-stm32f0discovery.html

Children
Related