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

building ESB example in nrf51822 SDK w/GCC

When running the makefiles found in the esb/gcc_rx and esb/gcc_tx folders I get the following errors:

base:gcc_tx jnoble$ make
mkdir _build
"/Users/jnoble/hardware/nrf51822/gcc-arm-none-eabi-4_8-2014q2/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -mabi=aapcs -DNRF51 -DBOARD_NRF6310 -DNRF51822_QFAA_CA --std=gnu99 -Wall -Werror -mfloat-abi=soft -DDEBUG -g3 -O0 -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include/esb" -I"../" -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include" -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include/gcc" -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include/ext_sensors" -M ../main_esb_ptx_ack_payload.c -MF "_build/main_esb_ptx_ack_payload.d" -MT _build/main_esb_ptx_ack_payload.o
"/Users/jnoble/hardware/nrf51822/gcc-arm-none-eabi-4_8-2014q2/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -mabi=aapcs -DNRF51 -DBOARD_NRF6310 -DNRF51822_QFAA_CA --std=gnu99 -Wall -Werror -mfloat-abi=soft -DDEBUG -g3 -O0 -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include/esb" -I"../" -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include" -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include/gcc" -I"/Users/jnoble/hardware/nrf51822/nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Include/ext_sensors" -c -o _build/main_esb_ptx_ack_payload.o ../main_esb_ptx_ack_payload.c
make: *** No rule to make target `_build/system_nrf51.o', needed by `_build/esb_ptx_ack_payload_gcc_xxaa.out'.  Stop.
base:gcc_tx jnoble$ 

The paths all look right and the Makefile.common is configured correctly for other examples (i.e. the compile and work fine) so I'm not sure what's missing in these. Any suggestions? Thanks!

edit - this is for nrf51_sdk_v6_1_0_b2ec2e6 for the nrf6310, unedited by myself. I'm compiling on OSX 10.9, gcc -v gives me:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Related