Skip to content

Commit 1e224c5

Browse files
author
Bogdan Marinescu
committed
Fix RAM size for LPC11C24 in ARM/uARM linker command files
1 parent 30907d7 commit 1e224c5

File tree

2 files changed

+30
-0
lines changed
  • libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX

2 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
LR_IROM1 0x00000000 0x8000 { ; load region size_region (32k)
3+
4+
ER_IROM1 0x00000000 0x8000 { ; load address = execution address
5+
*.o (RESET, +First)
6+
*(InRoot$$Sections)
7+
.ANY (+RO)
8+
}
9+
10+
; 48 vectors * 4 bytes = 0xC0 for remap
11+
RW_IRAM1 (0x10000000+0xC0) (0x2000-0xC0) {
12+
.ANY (+RW +ZI)
13+
}
14+
15+
}
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
LR_IROM1 0x00000000 0x8000 { ; load region size_region (32k)
3+
ER_IROM1 0x00000000 0x8000 { ; load address = execution address
4+
*.o (RESET, +First)
5+
*(InRoot$$Sections)
6+
.ANY (+RO)
7+
}
8+
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0
9+
; 8KB - 0xC0 = 0x1F40
10+
RW_IRAM1 0x100000C0 0x1F40 {
11+
.ANY (+RW +ZI)
12+
}
13+
}
14+

0 commit comments

Comments
 (0)