2015-12-30 09:21:24 +11:00
|
|
|
/*
|
|
|
|
* Memory Spaces Definitions.
|
|
|
|
*
|
2016-04-24 16:17:37 +10:00
|
|
|
* Need modifying for a specific board.
|
2015-12-30 09:21:24 +11:00
|
|
|
* FLASH.ORIGIN: starting address of flash
|
|
|
|
* FLASH.LENGTH: length of flash
|
|
|
|
* RAM.ORIGIN: starting address of RAM bank 0
|
|
|
|
* RAM.LENGTH: length of RAM bank 0
|
|
|
|
*
|
|
|
|
* The values below can be addressed in further linker scripts
|
|
|
|
* using functions like 'ORIGIN(RAM)' or 'LENGTH(RAM)'.
|
|
|
|
*/
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
2016-04-24 16:17:37 +10:00
|
|
|
/*
|
|
|
|
* DTCM 64K, SRAM1 240K, SRAM2 16K
|
|
|
|
*/
|
|
|
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
|
|
|
|
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0
|
|
|
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
2015-12-30 09:21:24 +11:00
|
|
|
FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
|
|
EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
|
|
EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
|
|
EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
|
|
EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For external ram use something like:
|
|
|
|
|
|
|
|
RAM (xrw) : ORIGIN = 0x64000000, LENGTH = 2048K
|
|
|
|
|
|
|
|
*/
|