46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
|
/*
|
||
|
Copyright (c) Embassy project contributors
|
||
|
|
||
|
Permission is hereby granted, free of charge, to any
|
||
|
person obtaining a copy of this software and associated
|
||
|
documentation files (the "Software"), to deal in the
|
||
|
Software without restriction, including without
|
||
|
limitation the rights to use, copy, modify, merge,
|
||
|
publish, distribute, sublicense, and/or sell copies of
|
||
|
the Software, and to permit persons to whom the Software
|
||
|
is furnished to do so, subject to the following
|
||
|
conditions:
|
||
|
|
||
|
The above copyright notice and this permission notice
|
||
|
shall be included in all copies or substantial portions
|
||
|
of the Software.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||
|
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||
|
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||
|
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
||
|
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||
|
DEALINGS IN THE SOFTWARE.
|
||
|
*/
|
||
|
|
||
|
MEMORY {
|
||
|
BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100
|
||
|
FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100
|
||
|
|
||
|
/* 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 */
|
||
|
}
|