diff --git a/cpu/lpc1768/Makefile.include b/cpu/lpc1768/Makefile.include index ea1a0f256b..00d062d717 100644 --- a/cpu/lpc1768/Makefile.include +++ b/cpu/lpc1768/Makefile.include @@ -1 +1,7 @@ +ROM_START_ADDR ?= 0x0 +RAM_START_ADDR ?= 0x100000C8 + +ROM_LEN ?= 0x80000 +RAM_LEN ?= 0x7f38 # 32K - 0xC8 + include $(RIOTMAKE)/arch/cortexm.inc.mk diff --git a/cpu/lpc1768/ldscripts/lpc1768.ld b/cpu/lpc1768/ldscripts/lpc1768.ld index e954ee0c11..5381a6ac83 100644 --- a/cpu/lpc1768/ldscripts/lpc1768.ld +++ b/cpu/lpc1768/ldscripts/lpc1768.ld @@ -20,10 +20,8 @@ MEMORY { - rom (rx) : ORIGIN = 0x00000000, LENGTH = 512K - ram (w!rx) : ORIGIN = 0x100000C8, LENGTH = (32K - 0xC8) usb_ram : ORIGIN = 0x2007C000, LENGTH = 16K eth_ram : ORIGIN = 0x20080000, LENGTH = 16K } -INCLUDE cortexm_base.ld +INCLUDE cortexm.ld