Skip to content

Commit

Permalink
Added layout.ld for lpc, based on lpc1114 values
Browse files Browse the repository at this point in the history
Proper way to do it discussed in hackndev#329
  • Loading branch information
farcaller committed Jul 9, 2015
1 parent 539584a commit 2e78f9a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/hal/lpc11xx/layout.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
__STACK_BASE = 0x10002000;

isr_reserved_1 = 0 - (__STACK_BASE + main + 1 + isr_nmi + 1 + isr_hardfault + 1);

_data_load = LOADADDR(.data);

ENTRY(main)

MEMORY
{
rom(RX) : ORIGIN = 0x00000000, LENGTH = 32K
ram(WAIL) : ORIGIN = 0x10000000, LENGTH = 4K
}

REGION_ALIAS("vectors", rom);

INCLUDE layout_common.ld

0 comments on commit 2e78f9a

Please sign in to comment.