Skip to content

Commit

Permalink
cpu/lpc1768: make use of cortexm.ld
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Sep 18, 2022
1 parent d51ad04 commit 32c0f0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions cpu/lpc1768/Makefile.include
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions cpu/lpc1768/ldscripts/lpc1768.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 32c0f0e

Please sign in to comment.