diff options
Diffstat (limited to 'examples/boot/bootloader')
| -rw-r--r-- | examples/boot/bootloader/rp/memory.x | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/boot/bootloader/rp/memory.x b/examples/boot/bootloader/rp/memory.x index d6ef38469..c3b54976e 100644 --- a/examples/boot/bootloader/rp/memory.x +++ b/examples/boot/bootloader/rp/memory.x | |||
| @@ -6,7 +6,19 @@ MEMORY | |||
| 6 | BOOTLOADER_STATE : ORIGIN = 0x10006000, LENGTH = 4K | 6 | BOOTLOADER_STATE : ORIGIN = 0x10006000, LENGTH = 4K |
| 7 | ACTIVE : ORIGIN = 0x10007000, LENGTH = 512K | 7 | ACTIVE : ORIGIN = 0x10007000, LENGTH = 512K |
| 8 | DFU : ORIGIN = 0x10087000, LENGTH = 516K | 8 | DFU : ORIGIN = 0x10087000, LENGTH = 516K |
| 9 | RAM : ORIGIN = 0x20000000, LENGTH = 256K | 9 | |
| 10 | /* Pick one of the two options for RAM layout */ | ||
| 11 | |||
| 12 | /* OPTION A: Use all RAM banks as one big block */ | ||
| 13 | /* Reasonable, unless you are doing something */ | ||
| 14 | /* really particular with DMA or other concurrent */ | ||
| 15 | /* access that would benefit from striping */ | ||
| 16 | RAM : ORIGIN = 0x20000000, LENGTH = 264K | ||
| 17 | |||
| 18 | /* OPTION B: Keep the unstriped sections separate */ | ||
| 19 | /* RAM: ORIGIN = 0x20000000, LENGTH = 256K */ | ||
| 20 | /* SCRATCH_A: ORIGIN = 0x20040000, LENGTH = 4K */ | ||
| 21 | /* SCRATCH_B: ORIGIN = 0x20041000, LENGTH = 4K */ | ||
| 10 | } | 22 | } |
| 11 | 23 | ||
| 12 | __bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOT2); | 24 | __bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOT2); |
