aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/memory.x
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2023-11-19 23:09:53 +0100
committerJames Munns <[email protected]>2023-11-19 23:10:11 +0100
commitf3c77e59c43b04e1002374fd91185cdee3883160 (patch)
tree708b326b651d257eb1ef17daa79cb0b19f3c9a91 /examples/rp/memory.x
parent30424d83ff127506cff088a9b8a6e9079ca5d3e9 (diff)
Add docs, touch all linker fragments
Diffstat (limited to 'examples/rp/memory.x')
-rw-r--r--examples/rp/memory.x12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/rp/memory.x b/examples/rp/memory.x
index 6ed984938..ef19dffe8 100644
--- a/examples/rp/memory.x
+++ b/examples/rp/memory.x
@@ -1,5 +1,17 @@
1MEMORY { 1MEMORY {
2 BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100 2 BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100
3 FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100 3 FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100
4
5 /* Pick one of the two options for RAM layout */
6
7 /* OPTION A: Use all RAM banks as one big block */
8 /* Reasonable, unless you are doing something */
9 /* really particular with DMA or other concurrent */
10 /* access that would benefit from striping */
4 RAM : ORIGIN = 0x20000000, LENGTH = 264K 11 RAM : ORIGIN = 0x20000000, LENGTH = 264K
12
13 /* OPTION B: Keep the unstriped sections separate */
14 /* RAM: ORIGIN = 0x20000000, LENGTH = 256K */
15 /* SCRATCH_A: ORIGIN = 0x20040000, LENGTH = 4K */
16 /* SCRATCH_B: ORIGIN = 0x20041000, LENGTH = 4K */
5} 17}