cortex-m-llvm icon indicating copy to clipboard operation
cortex-m-llvm copied to clipboard

lib/mem.ld not included to the list of LD scripts

Open ammaaim opened this issue 6 years ago • 1 comments

Hi! I think there is somthing wrong with mem.ld script. I get your project and change scripts for my arm chip but it's still not working. Problem has been in mem.ld that not been included to the list of LD scripts in Makefile. Thanks

ammaaim avatar Jan 31 '19 12:01 ammaaim

The mem.ld file may be in linker PATH (like another library) for include in link.ld file.

You can specify this using the flag -L like this part in the Makefile:

LDFLAGS += --Map $(TARGET_MAP)
LDFLAGS += --script $(LDSCRIPT)
LDFLAGS += -Llib

From: https://github.com/ammaaim/cortex-m-llvm/blob/master/Makefile#L32

¿You can paste the error here? Or better, in pastebin-like sites

martinribelotta avatar Feb 01 '19 15:02 martinribelotta