Hi everyone,
I have a really weird problem. I created a makefile based on Nordic's example from the app_template and created 2 additional targets, one called "debug" and another one called "test" to set different preprocessor macros based on what I want to specifically test. (E.g. one starts the BLE stack, the other only runs tests independent from that.)
Whenever I make the target "debug" it outputs a kind of random error at the end, although the hex file works just fine:
'/usr/local/gcc-arm-none-eabi/bin/arm-none-eabi-size' ../../_build/naga_nrf51822_xxac_s110.out
text data bss dec hex filename
40500 520 3176 44196 aca4 ../../_build/naga_nrf51822_xxac_s110.out
'/usr/local/gcc-arm-none-eabi/bin/arm-none-eabi-gcc' -DBOARD04 -DSOFTDEVICE_PRESENT -DNRF51 -DS110 -DBLE_STACK_SUPPORT_REQD -DSWI_DISABLE0 -mcpu=cortex-m0 -mthumb -mabi=aapcs -Wall -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums -Wformat=0 -std=gnu11 -Og -g3 -DDEBUG -DDEBUG_ENABLED=1 -Xlinker -Map=../../_build/.map -mthumb -mabi=aapcs -L . -T -mcpu=cortex-m0 -Wl,--gc-sections --specs=nano.specs -lc -lnosys /Users/raph/code/naga/naga_nrf51/src/service/debug.c nrf51822_xxac_s110 -o debug
arm-none-eabi-gcc: error: nrf51822_xxac_s110: No such file or directory
make: *** [debug] Error 1
That does not happen when making the "test" target and I can't see why, especially since it does not seem to be an issue regarding the resulting .hex file.
What could be the cause of that strange error message?
I am running GCC 4.9.3 and Apple's tools including GNU make on OSX 10.10.
I attached the complete makefile here: