This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

makefile errors ld unknown architecture arm, cannot find symbol

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.

Parents
  • I can't say I've seen this error, and to be honest, it doesn't make much sense to me. It seems as if ld is trying to use the hex file as an input to something, but that shouldn't happen as the hex should be the file made.

    Also, I'm not able to see the difference between your snippets. Could you please expand a little on exactly what kind of problem you saw, the error you got and the fix you did?

Reply
  • I can't say I've seen this error, and to be honest, it doesn't make much sense to me. It seems as if ld is trying to use the hex file as an input to something, but that shouldn't happen as the hex should be the file made.

    Also, I'm not able to see the difference between your snippets. Could you please expand a little on exactly what kind of problem you saw, the error you got and the fix you did?

Children
No Data
Related