In makefile.common 91:
Targets
debug: clean debug: CFLAGS += -DDEBUG -g3 -O0 debug: ASMFLAGS += -DDEBUG -g3 -O0 debug: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
.PHONY: release release: clean release: CFLAGS += -DNDEBUG -O3 release: ASMFLAGS += -DNDEBUG -O3 release: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
Should be
Targets
.PHONY: debug debug: clean debug: CFLAGS += -DDEBUG -g3 -O0 debug: ASMFLAGS += -DDEBUG -g3 -O0 debug: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
.PHONY: release release: clean release: CFLAGS += -DNDEBUG -O3 release: ASMFLAGS += -DNDEBUG -O3 release: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
Or the linker throws a fit when compiling without flash. This is from compiling from the command line (unfortunately I hate eclipse with a passion) and nRF51 SDK_v4.3.0.27417
Pretty sure this is from a virgin SDK install and maybe its been fixed but I tried to upgrade and got errors which Ill have to fix when I get some time (probably my PC)...
Just posted for others.