-
Notifications
You must be signed in to change notification settings - Fork 911
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2139 from jamesmunns/patch-1
Update RP2040 memory.x
- Loading branch information
Showing
3 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
MEMORY { | ||
BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100 | ||
FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100 | ||
RAM : ORIGIN = 0x20000000, LENGTH = 256K | ||
} | ||
|
||
/* Pick one of the two options for RAM layout */ | ||
|
||
/* OPTION A: Use all RAM banks as one big block */ | ||
/* Reasonable, unless you are doing something */ | ||
/* really particular with DMA or other concurrent */ | ||
/* access that would benefit from striping */ | ||
RAM : ORIGIN = 0x20000000, LENGTH = 264K | ||
|
||
/* OPTION B: Keep the unstriped sections separate */ | ||
/* RAM: ORIGIN = 0x20000000, LENGTH = 256K */ | ||
/* SCRATCH_A: ORIGIN = 0x20040000, LENGTH = 4K */ | ||
/* SCRATCH_B: ORIGIN = 0x20041000, LENGTH = 4K */ | ||
} |