humpback-dds/memory.x

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-08-07 13:36:00 +08:00
MEMORY
{
/* FLASH and RAM are mandatory memory regions */
2020-09-07 14:07:39 +08:00
FLASH : ORIGIN = 0x08000000, LENGTH = 2M
2020-08-07 13:36:00 +08:00
RAM : ORIGIN = 0x20000000, LENGTH = 128K
/* AXISRAM */
AXISRAM : ORIGIN = 0x24000000, LENGTH = 512K
/* SRAM */
SRAM1 : ORIGIN = 0x30000000, LENGTH = 128K
SRAM2 : ORIGIN = 0x30020000, LENGTH = 128K
2020-09-07 14:07:39 +08:00
SRAM3 (rwx) : ORIGIN = 0x30040000, LENGTH = 32K
2020-08-07 13:36:00 +08:00
SRAM4 : ORIGIN = 0x38000000, LENGTH = 64K
/* Backup SRAM */
BSRAM : ORIGIN = 0x38800000, LENGTH = 4K
/* Instruction TCM */
ITCM : ORIGIN = 0x00000000, LENGTH = 64K
}
/* The location of the stack can be overridden using the
`_stack_start` symbol. Place the stack at the end of RAM */
_stack_start = ORIGIN(RAM) + LENGTH(RAM);
/* The location of the .text section can be overridden using the
`_stext` symbol. By default it will place after .vector_table */
/* _stext = ORIGIN(FLASH) + 0x40c; */
SECTIONS {
.axisram : ALIGN(8) {
*(.axisram .axisram.*);
. = ALIGN(8);
} > AXISRAM
.sram3 (NOLOAD) : ALIGN(4) {
*(.sram3 .sram3.*);
. = ALIGN(4);
} > SRAM3
} INSERT AFTER .bss;