diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-19 22:17:27 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-19 22:17:27 +0000 |
| commit | ff2f1049b1124bf419d4344da99fa4087efeeca6 (patch) | |
| tree | 708b326b651d257eb1ef17daa79cb0b19f3c9a91 | |
| parent | e3be0b957a88a4ce1e2d9b696657c8d6186e3116 (diff) | |
| parent | f3c77e59c43b04e1002374fd91185cdee3883160 (diff) | |
Merge pull request #2139 from jamesmunns/patch-1
Update RP2040 memory.x
| -rw-r--r-- | examples/boot/application/rp/memory.x | 14 | ||||
| -rw-r--r-- | examples/boot/bootloader/rp/memory.x | 14 | ||||
| -rw-r--r-- | examples/rp/memory.x | 16 |
3 files changed, 40 insertions, 4 deletions
diff --git a/examples/boot/application/rp/memory.x b/examples/boot/application/rp/memory.x index c19473114..2f8434b8a 100644 --- a/examples/boot/application/rp/memory.x +++ b/examples/boot/application/rp/memory.x | |||
| @@ -5,7 +5,19 @@ MEMORY | |||
| 5 | BOOTLOADER_STATE : ORIGIN = 0x10006000, LENGTH = 4K | 5 | BOOTLOADER_STATE : ORIGIN = 0x10006000, LENGTH = 4K |
| 6 | FLASH : ORIGIN = 0x10007000, LENGTH = 512K | 6 | FLASH : ORIGIN = 0x10007000, LENGTH = 512K |
| 7 | DFU : ORIGIN = 0x10087000, LENGTH = 516K | 7 | DFU : ORIGIN = 0x10087000, LENGTH = 516K |
| 8 | RAM : ORIGIN = 0x20000000, LENGTH = 256K | 8 | |
| 9 | /* Pick one of the two options for RAM layout */ | ||
| 10 | |||
| 11 | /* OPTION A: Use all RAM banks as one big block */ | ||
| 12 | /* Reasonable, unless you are doing something */ | ||
| 13 | /* really particular with DMA or other concurrent */ | ||
| 14 | /* access that would benefit from striping */ | ||
| 15 | RAM : ORIGIN = 0x20000000, LENGTH = 264K | ||
| 16 | |||
| 17 | /* OPTION B: Keep the unstriped sections separate */ | ||
| 18 | /* RAM: ORIGIN = 0x20000000, LENGTH = 256K */ | ||
| 19 | /* SCRATCH_A: ORIGIN = 0x20040000, LENGTH = 4K */ | ||
| 20 | /* SCRATCH_B: ORIGIN = 0x20041000, LENGTH = 4K */ | ||
| 9 | } | 21 | } |
| 10 | 22 | ||
| 11 | __bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOT2); | 23 | __bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOT2); |
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); |
diff --git a/examples/rp/memory.x b/examples/rp/memory.x index aba861aae..ef19dffe8 100644 --- a/examples/rp/memory.x +++ b/examples/rp/memory.x | |||
| @@ -1,5 +1,17 @@ | |||
| 1 | MEMORY { | 1 | MEMORY { |
| 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 | RAM : ORIGIN = 0x20000000, LENGTH = 256K | 4 | |
| 5 | } \ No newline at end of file | 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 */ | ||
| 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 */ | ||
| 17 | } | ||
